[vtkusers] How read stack of TIF images
Carl Trapani
carl at skytopsoftware.com
Tue Oct 7 11:10:26 EDT 2008
Ah ... Excellent! Thank you very much Amy.
Also, for any other newbies out there, check out the ImageSlicing.cxx
example
VTK/Examples/ImageProcessing/Cxx/ImageSlice.cxx
or
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/ImageProcessing/Cxx/ImageSlicing.cxx?root=VTK&content-type=text/plain)
for how to load series of images and render them as volume using a
look-up table.
Thanks again,
Carl
Amy Squillacote wrote:
> Hi Carl,
>
> You should be able to use either vtkTIFFReader
> (http://www.vtk.org/doc/release/5.2/html/a01392.html) or vtkPNGReader
> (http://www.vtk.org/doc/release/5.2/html/a01039.html). You can specify
> the file names using either the SetFileNames or
> SetFilePrefix/SetFilePattern methods in vtkImageReader2 (superclass of
> both vtkTIFFReader and vtkPNGReader). vtkImageReader2 also has methods
> for specifying the spacing, origin, etc. Also, make sure to set the
> file dimensionality to 2 since you're reading slices.
>
> - Amy
>
> Carl Trapani wrote:
>> Hi All,
>>
>> I'm trying to display a stack of 10 RGB cross section images as a
>> volume. The images are in-situ hybridization cross sections of the
>> mouse cerebellum that have been manually segmented and thresholded.
>> You can see them here:
>>
>> http://www.skytopsoftware.com/grits/ish/PAX6_P05/
>>
>> The files are TIF or PNG or I can convert to some other standard format.
>>
>> 1) vtkVolume16Reader doesn't seem appropriate, is it? Are there any
>> other vtkVolumeReader sub-classes that I might use?
>> 2) What format are the images in VTKData/Data/headsq/quarter?
>> 3) Any suggestions on classes to use or example to look at?
>>
>> I'm using VTK 5.2.
>>
>> Thanks,
>> Carl
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
--
Carl Trapani (carl at skytopsoftware.com)
Skytop Software (http://www.skytopsoftware.com)
32 Washington St., Suite 222
Camden ME 04843
(207) 975-1685
More information about the vtkusers
mailing list