[vtkusers] 3D Volume of 2D JPEG slices

Bill Lorensen bill.lorensen at gmail.com
Thu Sep 5 12:51:17 EDT 2013


itkImageToVTKImageFilter handles RGB Images. Look at the ITKv4's VtkGlue module:
http://itk.org/gitweb?p=ITK.git;a=tree;f=Modules/Bridge/VtkGlue;h=495846dbaf6dc9a11b9f4f8c5238d560774cd248;hb=HEAD

You can see how RGB images are handled in QuickView.cxx


On Thu, Sep 5, 2013 at 12:29 PM, Christian Lackas <lackas at invicro.com> wrote:
> Hi Everybody,
>
> I was wondering what the most efficient way to handle this problem:
> We have a large stack of 2D JPEG images (RGB data, not just gray level)
> and we would like to show slices along the XY, XZ and YZ planes like you
> can easily do this for gray-level valued volume data.
>
> I have searched the VTK and ITK archives a bit and could not find a
> solution that does not just fall back to gray level or color mapped
> data, however, keeps the RGB data intact.
>
> E.g. see for instance (with the same issue):
>
>     http://vtk.1045678.n5.nabble.com/Combining-2D-jpeg-files-into-a-3D-image-tt4881674.html#none
>
> or, converting to gray level data:
>
>     http://itk.org/Wiki/ITK/Examples/IO/VolumeFromSlices
>
> Based on this ITK example, I am wondering if using an
> itk::ImageSeriesReader<ImageType> with an RGB<ushort> PixelType for the
> image is the way to go?
> However, how can I get from there back to VTK? It seems like
> itkImageToVTKImageFilter does not support more complex pixel types.
> And VTKImageExport explicitly say it does not support RGBPixel either.
> Are there any other ways to do this efficiently?
>
> Any hints are highly appreciated.
>
> Thanks,
>  Christian
>
> --
> Dr. Christian Lackas, Managing Partner
> inviCRO, LLC -- In Imaging Yours
> http://www.invicro.com/  http://www.spect-ct.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



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list