[Insight-users] Isosurface using a different image pixel type?
Baffled by generic programming.
Atwood, Robert C
r.atwood at imperial.ac.uk
Wed May 25 14:08:27 EDT 2005
This should be easy. I only wanted to change the example Examples/Filtering/IsoSurfaceExtraction.cxx , as described in Section 6.10.1 of the Users Guide (draft), so that the input image is a different type. Since it seems like everything is templated from PixelType, I would have thought that through the mechanism of Generic Programming , I could change this eg. to unsigned char, and recompile. However, this does not work, seemingly because BinaryMask3DMeshSource is not templated over the image type, but has a built in image type of <unsigned short , 3>. I don't see this mentioned in the User Guide or in the code for the example. Only the collaboration diagram from the Doxygen clarifies why my program (derived from the example by changing one line) does not compile.
How should I get the image (pixel) type into the BinaryMask3DMEshSOurce class ??
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050525/92318874/attachment-0001.htm
More information about the Insight-users
mailing list