[Insight-users] Histogram bug with maximum possible value ?

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jun 7 09:23:53 EDT 2006


Hi,

I am the only one to have this problem ?
Should I file a bug report ?

Gaetan


On Fri, 02 Jun 2006 17:11:45 +0200, Gaetan Lehmann  
<gaetan.lehmann at jouy.inra.fr> wrote:

>
> I forgot to say I'm using ITK 2.6.0 with gcc 4.0
>
> On Fri, 02 Jun 2006 16:23:25 +0200, Gaetan Lehmann  
> <gaetan.lehmann at jouy.inra.fr> wrote:
>
>>
>> Hi,
>>
>> I'm trying to manipulate histograms, with itk::Histogram. I'm generating
>> the histogram from an image with the ScalarImageToHistogramGenerator
>> class. The pixel type of the input image is unsigned char.
>> Everything seems to work, as long as there is no pixel value = 255 in  
>> the
>> image.
>> All the pixels with an intensity of 255 are not counted in the  
>> histogram.
>> For example, the attached image (a 10x10 black image with 4 white (255)
>> pixels) produce an histogram with 96 pixels according to the
>> GetTotalFrequency() result.
>>
>> Is it a bug ?
>> Or I have missed something ?
>>
>> Regards,
>>
>> Gaetan
>>
>
>
>



-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr


More information about the Insight-users mailing list