<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
&nbsp;<BR>Hi, all<BR>&nbsp;<BR>I'm trying to read TIFF image which contains the pixel value of only 1 and 0 and use it as a binary image. But I found the pixel&nbsp; value&nbsp;is&nbsp;changed&nbsp;from 1 and 0 to 198 and 160&nbsp;after I read it. Is there anybody who can tell me how to fix this problem? below is the code.<BR><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>
&nbsp;<BR>
typedef</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> itk::ImageFileReader&lt; ImageType &gt; ReaderType;<BR>
ReaderType::Pointer reader = ReaderType::New();<BR>
std::string filename = inputDirectoryName;<BR>
reader-&gt;SetFileName( filename );<BR>
reader-&gt;Update();<BR>
</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>return</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> reader-&gt;GetOutput();;<BR></FONT></FONT>
&nbsp;<BR>
Thanks,<BR>
Xiu<BR><BR>                                               </body>
</html>