<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Hi,<BR>
Using GDCM I have loaded up the raw byte array but the problem is when<BR>I show the image the really white areas seem to be corrupted and have<BR>turned black.  Is there a setting that I havent set or something.<BR>
Here is the code i have wrote:<BR>
       f = GDCM_NAME_SPACE::File::New();<BR>
       f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ);<BR>       f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSHADOW);<BR>       f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ | GDCM_NAME_SPACE::LD_NOSHADOW);<BR>       f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSHADOWSEQ);<BR>
       f->SetFileName( filename );<BR>
       bool res = f->Load();<BR>       if ( !res ) {<BR>               f->Delete();<BR>               MessageBox( NULL, "DICOM NOT LOADED", NULL, MB_OK );<BR>               f = NULL;<BR>       }<BR>
       if (!f->IsReadable()) {<BR>               MessageBox( NULL, "Sorry, not a Readable DICOM / ACR File", NULL, MB_OK  );<BR>               f->Delete();<BR>               f = NULL;<BR>               return;<BR>       }<BR>
       fh = GDCM_NAME_SPACE::FileHelper::New(f);<BR>       fh->SetKeepOverlays(false);<BR>
       int nZ, sPP, planarConfig;<BR>       std::string pixelType;<BR>
       imageWidth = f->GetXSize();<BR>       imageHeight = f->GetYSize();<BR>       nZ = f->GetZSize();<BR>
       pixelType    = f->GetPixelType();<BR>       sPP          = f->GetSamplesPerPixel();<BR>       planarConfig = f->GetPlanarConfiguration();<BR>
       int numberOfScalarComponents=f->GetNumberOfScalarComponents();<BR>
       dataSize  = fh->GetImageDataRawSize();<BR>   imageData = fh->GetImageDataRaw();  // somewhat important : Loads<BR>the Pixels in memory !<BR>
       if ( imageData == 0 ) {<BR>     MessageBox( NULL, "Was unable to read pixels ", NULL, MB_OK );<BR>         f = NULL;<BR>         return;<BR>  }<BR>
 <BR>
Any help would be greatly appreciated.<BR>
 <BR>
Thanks<BR>
 <BR>
Neerav<BR><br /><hr /> <a href='' target='_new'></a></body>
</html>