<br><br>On Thursday, July 10, 2014,  <<a href="mailto:ahmed@mufradat.com">ahmed@mufradat.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Everyone,<br>

I am using vtkImageReslice in connection with vtkImageViewer2 to view 2D slice of a 3d Dicomm image. Everything works great, Also when I try to change the slice thickness by doing :<br>
m_reslice-><u></u>SetOutputDimensionality(2);<br>
m_reslice->SetBackgroundLevel(<u></u>-1000);<br>
m_reslice-><u></u>SetInterpolationModeToCubic();<br>
        m_reslice->SetSlabModeToMean()<u></u>;<br>
m_reslice-><u></u>SetSlabNumberOfSlices(m_<u></u>thickness);<br>
the code can be found here:<br>
<a href="https://github.com/CardiacImagingCharite/CardiacPerfusion/blob/directions/vtkwidgets/multiplanarreformatwidget.cpp" target="_blank">https://github.com/<u></u>CardiacImagingCharite/<u></u>CardiacPerfusion/blob/<u></u>directions/vtkwidgets/<u></u>multiplanarreformatwidget.cpp</a><br>

<br>
Everything is working as expected. The only problem I face appears when I compile VTK (5.10.1) in release mode.<br>
<br>
In release mode, the program works fine, until i use a GUI slicer to change the value of m_thickness at this point i get a black screen in the viewer widget which does not happen if VTK was compiled in Debug mode.<br>
<br>
Please help me as I have been fighting with this for several weeks now and I have ran out of ideas after played a lot with VTK cmake flags and even installed a graphic card (Nvidia).<br>
<br>
<br>
Best Regards,<br>
Ahmed<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/vtkusers</a><br>
</blockquote>