[Insight-users] Histogram number of bins automatic

Jose Ignacio Prieto joseignacio.prieto at gmail.com
Wed Mar 5 12:52:25 EST 2014


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.

I am sure that there is a smarter way than just deleting the zeroes from
the hist and keeping them in a dictionary.

Thanks

Ignacio

-- 
Jose Ignacio Prieto
Software Developer
Biomedical Imaging Center
Pontificia Universidad Catolica de Chile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140305/889e902a/attachment.html>


More information about the Insight-users mailing list