<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">Thanks a lot!!! Solved my problem
:)<br>
<br>
- John E<br>
</font></font><br>
Mathieu Malaterre wrote:
<blockquote
 cite="mid:bf0c3b3f0903160917g706a7114h71279b8aefcfa56f@mail.gmail.com"
 type="cite">
  <pre wrap="">See:

<a class="moz-txt-link-freetext" href="http://www.vtk.org/pipermail/vtk-developers/2007-August/004687.html">http://www.vtk.org/pipermail/vtk-developers/2007-August/004687.html</a>

You can find a 'color' version of vtkImageMapToWindowLevelColors
within gdcm itself: vtkImageMapToWindowLevelColors2

Ref:
<a class="moz-txt-link-freetext" href="http://gdcm.sf.net">http://gdcm.sf.net</a>



On Mon, Mar 16, 2009 at 2:41 PM, John Eke <a class="moz-txt-link-rfc2396E" href="mailto:johne@annidis.com">&lt;johne@annidis.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

I am currently calculating window-level values of an image actor from user
selected brightness and contrast levels. I pass these values to
vtkImageMapToWindowLevelColors::SetWindow and
vtkImageMapToWindowLevelColors::SetLevel methods. The brightness and
contrast works, but it always outputs a greyscale image. How can I get it to
do the window-level modifications and still output a color image? (Just like
in vtkImageViewer but I noticed it uses vtkImageMapper which does
vtkImageMapper::SetColorWindow - is there a difference?)

Am I not setting up my lookup table properly? Not sure what the problem is.

Thanks

John E


-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> on behalf of Miguel Angel Rodriguez Florido
Sent: Mon 3/16/2009 9:13 AM
To: Mathieu Malaterre
Cc: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Subject: Re: [vtkusers] vtkDICOMImageReader and an extrange error,..

        Hi Mathieu,

        You were right. The dicom file was compressed. I have used the
gdcmconv
cmd to uncompress it.

        Thank you very much for your useful information.

        Best.

Mathieu Malaterre wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Did you read the documentation ?
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkDICOMImageReader.html">http://www.vtk.org/doc/nightly/html/classvtkDICOMImageReader.html</a>

If you can read it with Slicer, this means this is a proper DICOM file
but vtkDICOMImageReader only handles:

...
Warning:
    This reader might eventually handle ACR-NEMA file (predecessor of
the DICOM format for medical images). This reader does not handle
encapsulated format, only plain raw file are handled. This reader also
does not handle multi-frames DICOM datasets.
...

Have a look at vtkGDCMImageReader which will handle you file (I would
bet this is a compressed data).

<a class="moz-txt-link-freetext" href="http://gdcm.sourceforge.net/html/classvtkGDCMImageReader.html">http://gdcm.sourceforge.net/html/classvtkGDCMImageReader.html</a>

ref:

<a class="moz-txt-link-freetext" href="http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=GDCM_Release_2.0">http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=GDCM_Release_2.0</a>

If you cannot integrate gdcm into your project you can use gdcmconv
--raw to decompress the image and make it compatible with
vtkDICOMImageReader

<a class="moz-txt-link-freetext" href="http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=Gdcmconv">http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=Gdcmconv</a>

2cts
      </pre>
    </blockquote>
    <pre wrap="">
--
Miguel Angel Rodr&iacute;guez Florido
Departamento de Ingenier&iacute;a del Software
Divisi&oacute;n de Investigaci&oacute;n y Desarrollo Tecnol&oacute;gico
INSTITUTO TECNOLOGICO DE CANARIAS, S.A. - GOBIERNO DE CANARIAS
URL: <a class="moz-txt-link-abbreviated" href="http://www.itccanarias.org">www.itccanarias.org</a> Tlfno: +34 928 727548, Fax: +34 928 727517

--------------------------------------------------------------------------
AVISO LEGAL:
Este mensaje y los ficheros adjuntos si los hubiere, se dirigen
exclusivamente a su destinatario y puede contener informaci&oacute;n
privilegiada o confidencial. La transmisi&oacute;n err&oacute;nea del presente mensaje
en ning&uacute;n momento supone renuncia a su confidencialidad. Si no es vd. el
destinatario indicado, queda notificado de que la utilizaci&oacute;n,
divulgaci&oacute;n y/o copia sin autorizaci&oacute;n est&aacute; prohibida en virtud de la
legislaci&oacute;n vigente. Si ha recibido este mensaje por error, le rogamos
que nos lo comunique inmediatamente por esta misma v&iacute;a y proceda a su
destrucci&oacute;n.

LEGAL WARNING:
This message and the files attached if there were any, are intended
exclusively for its addressee and may contain information that is
CONFIDENTIAL and protected by professional privilege. A wrong
transmission to this message don't suppose we relinquished to It's
confidential. If you are not the intended recipient you are hereby
notified that any dissemination, copy or disclosure of this
communication is strictly prohibited by law. If this message has been
received in error, please immediately notify us via e-mail and delete it.









_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
INFORMAL COMMUNICATION - The statements within this email and attachments if any, may be founded on partial knowledge, incorrect information, or incomplete understanding of the issues and should not be accorded the probity or status of a formal evidentiary deposition.

 

CONFIDENTIALITY STATEMENT - This e-mail and  attachments if any, may contain confidential or privileged information. If you are not the intended recipient, please delete it, notify me immediately by reply e-mail, and be advised that you are not permitted to read, use, disclose, copy, or distribute it or its contents.
</pre>
</body>
</html>