[Insight-users] ScalarImageToHistogramGenerator frequency container overflow

Melanie Uks meluks2010 at googlemail.com
Tue Jul 19 05:49:09 EDT 2011


Hi all,

I found the command to ignore zeros for the histogram:
 histogramGenerator->SetHistogramMin(0.5);
histogramGenerator->SetHistogramMax(minimumMaximumImageFilter->GetMaximum());

But I could not solve the general problem. Can somebody give me a hint?

Thanks a lot!
melanie

2011/7/18 Melanie Uks <meluks2010 at googlemail.com>

> Hi all,
>
> I have the same problem explained and propably solved here:
> http://permalink.gmane.org/gmane.comp.lib.itk.user/30004
> I was running cmake again and was changing
>
> ITK_USE_REVIEW:BOOL=ON
> ITK_USE_REVIEW_STATISTICS:BOOL=ON
>
> in CMakeCache.txt
> Then I was generating the itk toolkit.
> Then I opened the sln file (VC 2008) and was running itk.
> Nevertheless in my program the error did not disappear. Did I made a
> mistake?
> I guess my Image contains to many zeros. Is there a method to exclude zeros
> in the histogram?
>
> Thanks for your help!
> melanie
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110719/feaaa483/attachment.htm>


More information about the Insight-users mailing list