Hi Luis, <br><br>Thanks for the reply.  I&#39;ve created a minimal example and filed a bug report (<a href="http://public.kitware.com/Bug/view.php?id=9259">http://public.kitware.com/Bug/view.php?id=9259</a>).  I&#39;m looking at the Min/Max values using vtkImage-&gt;GetScalarRange(), and I am then using the resulting values for automatic window/leveling.<br>

<br>Hope this helps,<br><br>Charlotte<br><br><div class="gmail_quote">On Tue, Jun 30, 2009 at 11:51 AM, Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Charlotte,<br><br>Thanks for the report.<br><br>This actually looks like a bug.<br><br>

Could you please clarify how you are looking at the Min / Max<br>values of the resulting vtkImageData  ?<br><br><br>Also, could you please create a bug report at:<br>
<a href="http://public.kitware.com/Bug/my_view_page.php" target="_blank">http://public.kitware.com/Bug/my_view_page.php</a><br><br><br>Providing a minimal example that illustrates <br>the incorrect behavior will be ideal.<br>

<br><br>    Thanks<br>
<br><br>         Luis<br><br><br>----------------------------------------------------------------------------------------<br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Jun 25, 2009 at 12:35 PM, Charlotte Curtis <span dir="ltr">&lt;<a href="mailto:c.f.curtis@gmail.com" target="_blank">c.f.curtis@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">There seems to be a bit of an issue with itkImageToVTKImageFilter: the<br>


image information isn&#39;t entirely being updated when &quot;Update&quot; is called<br>
downstream.  The image data itself does get updated, but (for example)<br>
the min/max intensity values do not.  The odd thing is, it will update<br>
the third time (I&#39;m running my pipeline from a GUI and if I click the<br>
&quot;run&quot; button 3 times, the image finally displays properly).<br>
<br>
This behaviour seems to have been reported several years ago<br>
(<a href="http://www.itk.org/pipermail/insight-users/2003-March/003110.html" target="_blank">http://www.itk.org/pipermail/insight-users/2003-March/003110.html</a>),<br>
but it doesn&#39;t look to have been resolved.  I took a look at the<br>
source code for the filter, and it seems that the &quot;Update&quot; method just<br>
calls Update on the importer component.  If I copy and paste exactly<br>
the code from the filter, as follows:<br>
<br>
vtkImageImport *importer = vtkImageImport::New();<br>
itk::VTKImageExport&lt; ImageType2D &gt;::Pointer exporter =<br>
itk::VTKImageExport&lt; ImageType2D &gt;::New();<br>
<br>
importer-&gt;SetUpdateInformationCallback(exporter-&gt;GetUpdateInformationCallback());<br>
importer-&gt;SetPipelineModifiedCallback(exporter-&gt;GetPipelineModifiedCallback());<br>
importer-&gt;SetWholeExtentCallback(exporter-&gt;GetWholeExtentCallback());<br>
importer-&gt;SetSpacingCallback(exporter-&gt;GetSpacingCallback());<br>
importer-&gt;SetOriginCallback(exporter-&gt;GetOriginCallback());<br>
importer-&gt;SetScalarTypeCallback(exporter-&gt;GetScalarTypeCallback());<br>
importer-&gt;SetNumberOfComponentsCallback(exporter-&gt;GetNumberOfComponentsCallback());<br>
importer-&gt;SetPropagateUpdateExtentCallback(exporter-&gt;GetPropagateUpdateExtentCallback());<br>
importer-&gt;SetUpdateDataCallback(exporter-&gt;GetUpdateDataCallback());<br>
importer-&gt;SetDataExtentCallback(exporter-&gt;GetDataExtentCallback());<br>
importer-&gt;SetBufferPointerCallback(exporter-&gt;GetBufferPointerCallback());<br>
importer-&gt;SetCallbackUserData(exporter-&gt;GetCallbackUserData());<br>
<br>
exporter-&gt;SetInput(image);<br>
exporter-&gt;Update();<br>
<br>
and then explicitly call Update on the importer as well:<br>
<br>
importer-&gt;Update();<br>
<br>
Everything works properly.  I&#39;m fine with just using this code in my<br>
program, but perhaps something should be fixed in<br>
itkImageToVTKImageFilter?  I don&#39;t know if adding &quot;importer-&gt;Update()&quot;<br>
to the source would be the proper way of doing things (seems kind of<br>
like a workaround), or if the UpdateDataCallback method needs to be<br>
changed.<br>
<br>
Thanks,<br>
<br>
Charlotte<br></div></div>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>
</blockquote></div><br>