<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [Insight-users] absolute value</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText69350 dir=ltr>
<DIV dir=ltr><FONT size=2>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. </FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>How should I get the image (pixel) type into the
BinaryMask3DMEshSOurce class ?? </FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>Robert</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV></DIV>
</BODY>
</HTML>