<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Hi,</FONT></DIV>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>I¢m trying to extract the histogram of a dicom image. The result is different to what I achieve from MATLAB. There is something wrong in itk because total pixels are fix and 512*512=262144 but in my code it¢s variable when I change the bins, &nbsp;and the shape of histogram is different comparing with MATLAB output. I work on a 512*512 dicom uint12 image. I tried the Examples/Statistics/ImageHistogram1.cxx &amp; Examples/Statistics/ImageHistogram2.cxx.</FONT></DIV>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></DIV>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Yours truly,</FONT></DIV>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Hossein</FONT></DIV></td></tr></table><br>