Home | History | Annotate | Download | only in coders

Lines Matching refs:histogram

13 %                          Write A Histogram Image.                           %
54 #include "MagickCore/histogram.h"
91 % RegisterHISTOGRAMImage() adds attributes for the Histogram image format
108 entry=AcquireMagickInfo("HISTOGRAM","HISTOGRAM","Histogram of the image");
129 % HISTOGRAM module from the list of supported formats.
138 (void) UnregisterMagickInfo("HISTOGRAM");
153 % WriteHISTOGRAMImage() writes an image to a file in Histogram format.
154 % The image shows a histogram of the color (or gray) values in the image. The
198 *histogram;
224 Allocate histogram image.
244 Allocate histogram count arrays.
248 histogram=(PixelInfo *) AcquireQuantumMemory(length,sizeof(*histogram));
249 if (histogram == (PixelInfo *) NULL)
255 Initialize histogram count arrays.
257 (void) ResetMagickMemory(histogram,0,length*sizeof(*histogram));
266 histogram[ScaleQuantumToChar(GetPixelRed(image,p))].red++;
268 histogram[ScaleQuantumToChar(GetPixelGreen(image,p))].green++;
270 histogram[ScaleQuantumToChar(GetPixelBlue(image,p))].blue++;
274 maximum=histogram[0].red;
278 (maximum < histogram[x].red))
279 maximum=histogram[x].red;
281 (maximum < histogram[x].green))
282 maximum=histogram[x].green;
284 (maximum < histogram[x].blue))
285 maximum=histogram[x].blue;
291 Initialize histogram image.
303 y=(ssize_t) ceil(histogram_image->rows-scale*histogram[x].red-0.5);
313 y=(ssize_t) ceil(histogram_image->rows-scale*histogram[x].green-0.5);
323 y=(ssize_t) ceil(histogram_image->rows-scale*histogram[x].blue-0.5);
337 histogram=(PixelInfo *) RelinquishMagickMemory(histogram);
338 option=GetImageOption(image_info,"histogram:unique-colors");
372 Write Histogram image.
380 (LocaleCompare(write_info->magick,"HISTOGRAM") == 0))