[vtkusers] VTK Model and ITKImageBase itkImage_UC3

David Gobbi david.gobbi at gmail.com
Sat Nov 20 21:18:33 EST 2010


Hi Sam,

The vtkDICOMImageReader is definitely getting the coordinate system wrong
(not many people use the vtkDICOMImageReader, most people use other dicom
readers like gdcm).  If you can, you should save your image in metafile
format or .vtk format.

If you are still getting access violations, then I can't say why, because
your pipeline looks fine.  You would have to run your program inside a
debugger and get a stack trace.

  David


On Sat, Nov 20, 2010 at 6:41 PM, Sam <sistephan at gmail.com> wrote:

>
> David,
>
> Update on the accumulator works but this still errors:
>            modelStencilPolyData.SetOutputWholeExtent(extent);
>
>            //modelStencilPolyData.Update();//  causes access violation
> error
>
> Also, here are the outputs in question.  What should I try?
>
> dicomImage.GetDataExtent();
>
>                [0]     0
>                [1]     255
>                [2]     0
>                [3]     255
>                [4]     0
>                [5]     159
>
> dicomImage.GetOutput().GetBounds();
>                [0]     0.0
>                [1]     119.54400211572647
>                [2]     0.0
>                [3]     119.54400211572647
>                [4]     0.0
>                [5]     25440.0
>
> model.GetBounds();
>                [0]     -76.913497924804688
>                [1]     62.542499542236328
>                [2]     -26.292299270629883
>                [3]     75.544601440429688
>                [4]     -53.995601654052734
>                [5]     27.033700942993164
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/VTK-Model-and-ITKImageBase-itkImage-UC3-tp3273888p3274033.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101120/c56487ee/attachment.htm>


More information about the vtkusers mailing list