[vtkusers] VTK shows blank screen when compiled in Release mode

Arun Retheesan arun.retheesan at gmail.com
Thu Jul 10 23:02:22 EDT 2014


On Thursday, July 10, 2014, <ahmed at mufradat.com> wrote:

> Hello Everyone,
> 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 :
> m_reslice->SetOutputDimensionality(2);
> m_reslice->SetBackgroundLevel(-1000);
> m_reslice->SetInterpolationModeToCubic();
>         m_reslice->SetSlabModeToMean();
> m_reslice->SetSlabNumberOfSlices(m_thickness);
> the code can be found here:
> https://github.com/CardiacImagingCharite/CardiacPerfusion/blob/
> directions/vtkwidgets/multiplanarreformatwidget.cpp
>
> Everything is working as expected. The only problem I face appears when I
> compile VTK (5.10.1) in release mode.
>
> 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.
>
> 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).
>
>
> Best Regards,
> Ahmed
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140711/e25037a5/attachment.html>


More information about the vtkusers mailing list