<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<BR>Hi, all<BR> <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 value is changed from 1 and 0 to 198 and 160 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>
<BR>
typedef</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> itk::ImageFileReader< ImageType > ReaderType;<BR>
ReaderType::Pointer reader = ReaderType::New();<BR>
std::string filename = inputDirectoryName;<BR>
reader->SetFileName( filename );<BR>
reader->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->GetOutput();;<BR></FONT></FONT>
<BR>
Thanks,<BR>
Xiu<BR><BR>                                            </body>
</html>