[vtkusers] 3D volume camera clipping help

David Gobbi david.gobbi at gmail.com
Wed Jun 27 15:50:14 EDT 2018


Hi Mark,

One possible cause of this issue is that the background (or air) value in
CT is -1000 while the default background value for vtkImageReslice is
zero.  Try using SetBackgroundLevel(-1000.0) when you reslice the data to
see if that fixes the problem.

 - David


On Wed, Jun 27, 2018 at 1:39 PM, <mark.ostroot at lickenbrocktech.com> wrote:

> Hello,
>
> I have a 3D volume of some CT Data that works fine at the original aspect
> Ratio. I have some code that adjusts the aspect ratio of the volume by
> using the VtkReSlicer. Which works well for applying a new aspect ratio. My
> issue is that whenever my aspect ratio is non-Cubic I get some clipping of
> my volume at certain angles when it is being rotated around. I have tried
> using the "ResetCameraClippingRange" function, but this seems to have no
> effect on my Rendered volume. I know that the clipping range bounds are
> computed from the actor dimensions and they don't seem to change when I
> change the aspect ratio. Does anyone have any ideas on what I may be
> missing?
>
>
> Some noteworthy information:
> C++ application
> VTK version 8.1.1
> Render window is a QT openGL Widget
>
> Thanks in advance,
> Mark O
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180627/dbbc3618/attachment.html>


More information about the vtkusers mailing list