<div dir="ltr">Hi all, I am having a problem trying to show a histogram of a MR image. I would like to set the number of bins by getting all the samples that at least have a frequency of one. Images have the slope/intercept multiplier, so I cannot set the number of bins as max-min because there are lots of empty bins. I don't want them because after the histogram I run a derivative signum change detector to localize the peaks, and this zeros get me a lot of noise.<div>
<br></div><div>I am sure that there is a smarter way than just deleting the zeroes from the hist and keeping them in a dictionary.</div><div><br></div><div>Thanks</div><div><br></div><div>Ignacio</div><div><br></div><div>
-- <br></div><div>Jose Ignacio Prieto</div><div>Software Developer</div><div>Biomedical Imaging Center</div><div>Pontificia Universidad Catolica de Chile</div></div>