[Insight-users] Fast Image Conversion-
David Doria
daviddoria at gmail.com
Tue Feb 8 16:55:31 EST 2011
On Tue, Feb 8, 2011 at 4:52 PM, Ryan L. Smith <ryans09 at gmail.com> wrote:
>
> Hi-
> I am reading in an image stream in unsigned char vector format from a camera in real-time. I have some code setup to display the image using VTK/ITK, but the latencies are high. Is there a method to directly convert this vector to a VTK image? I am currently looping through and setting the image pixels in an ITK image using the following example:
> http://www.vtk.org/Wiki/ITK/Examples/SimpleOperations/SetPixels
> I then connect the pipeline using itk::ImageToVTKImageFilter and display the image. I recognize this is an inefficient way of doing things, but came up blank in looking for an optimized function to do it for me. Thanks in advance-
> -Ryan
Have you seen the ImportImageFilter ?
http://www.itk.org/Wiki/ITK/Examples/IO/ImportImageFilter
David
More information about the Insight-users
mailing list