[Insight-users] VectorDistanceMap Image Viewer
Luis Ibanez
luis.ibanez@kitware.com
Thu, 09 Jan 2003 18:06:16 -0500
Hi Raluca,
Well, the question is
How would you like to visualize an image of offsets ?
Every pixel is an array of integers representing the
distance to the object you provided as input to the
DanielssonDistanceFilter.
Some options are:
1) You can choose to visualize each component
independently like generating three images
of scalars. Each image containing the one of
the Offset components.
2) You could go in other direction and use
VTK for creating a set of vectors in 3D space.
That will probably show a large number of
lines filling the space of the dataset.
It depends on what you want to analyze from this
image of offsets...
If you decide to go with option (1), the easiest
way is to take advantage of the filter:
itk::VectorIndexSelectionCastImageFilter
http://www.itk.org/Doxygen/html/classitk_1_1VectorIndexSelectionCastImageFilter.html
You connect the image of Offsets as input to this
filter, then select the index you want to extract,
and the output of the filter will be composed by
pixels who are the 'index'-th component of the
input pixels.
This output image can then be visualized with
standard methods.
Please let us know if you have further questions.
Thanks
Luis
-------------------
Raluca wrote:
> Hi Luis
>
> Thank you for your answear ... it's been very helpful. I made the changes
> and the file writer works very well.
> The problem I have now is for viewing the image. I've chosen the file format
> .mha and I've tried viewing the image with the example MetaImageViewer but
> it didn't work. I looked at the implemantation and tried changing the Image
> PixelType from float to Offset<3>. The problem is that the example uses FLTK
> and the PixelType doesn't seem to be implemented in many of the depending
> files.
> Is there another way I can view the Image?
>
> Thanks
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
>