Lines Matching defs:histogram

48 %    o Build a histogram, one for each color component of the image.
50 % o For each histogram, successively apply the scale-space filter and
53 % determine which peaks and valleys in the histogram are most
56 % o The fingerprint defines intervals on the axis of the histogram.
64 % assigned to one of the classes discovered in the histogram analysis
176 histogram[256];
237 % represent the peaks and valleys of the histogram for each color
817 % represent the peaks and valleys of the histogram for each color
863 % DerivativeHistogram() determines the derivative of the histogram using
868 % DerivativeHistogram(const double *histogram,
873 % o histogram: Specifies an array of doubles representing the number
877 % DerivativeHistogram to the derivative of the histogram using central
881 static void DerivativeHistogram(const double *histogram,
892 derivative[0]=(-1.5*histogram[0]+2.0*histogram[1]-0.5*histogram[2]);
893 derivative[n]=(0.5*histogram[n-2]-2.0*histogram[n-1]+1.5*histogram[n]);
898 derivative[i]=(histogram[i+1]-histogram[i-1])/2.0;
931 % derivative of the histogram. As the value is increased, you can expect a
974 *histogram[MaxDimension],
978 Allocate histogram and extrema.
987 histogram[i]=(ssize_t *) AcquireQuantumMemory(256UL,sizeof(**histogram));
988 extrema[i]=(short *) AcquireQuantumMemory(256UL,sizeof(**histogram));
989 if ((histogram[i] == (ssize_t *) NULL) || (extrema[i] == (short *) NULL))
994 histogram[i]=(ssize_t *) RelinquishMagickMemory(histogram[i]);
1002 Initialize histogram.
1004 InitializeHistogram(image,histogram,exception);
1005 (void) OptimalTau(histogram[Red],Tau,0.2f,DeltaTau,
1007 (void) OptimalTau(histogram[Green],Tau,0.2f,DeltaTau,
1009 (void) OptimalTau(histogram[Blue],Tau,0.2f,DeltaTau,
1200 histogram[i]=(ssize_t *) RelinquishMagickMemory(histogram[i]);
1217 % InitializeHistogram() computes the histogram for an image.
1221 % InitializeHistogram(const Image *image,ssize_t **histogram)
1228 % o histogram: Specifies an array of integers representing the number
1232 static void InitializeHistogram(const Image *image,ssize_t **histogram,
1246 Initialize histogram.
1250 histogram[Red][i]=0;
1251 histogram[Green][i]=0;
1252 histogram[Blue][i]=0;
1261 histogram[Red][(ssize_t) ScaleQuantumToChar(GetPixelRed(image,p))]++;
1262 histogram[Green][(ssize_t) ScaleQuantumToChar(GetPixelGreen(image,p))]++;
1263 histogram[Blue][(ssize_t) ScaleQuantumToChar(GetPixelBlue(image,p))]++;
1377 The root is the entire histogram.
1458 % OptimalTau() finds the optimal tau for each band of the histogram.
1462 % double OptimalTau(const ssize_t *histogram,const double max_tau,
1468 % o histogram: Specifies an array of integers representing the number
1472 % represent the peaks and valleys of the histogram for each color
1503 static double OptimalTau(const ssize_t *histogram,const double max_tau,
1570 ScaleSpace(histogram,tau,zero_crossing[i].histogram);
1571 DerivativeHistogram(zero_crossing[i].histogram,derivative);
1578 Add an entry for the original histogram.
1582 zero_crossing[i].histogram[j]=(double) histogram[j];
1583 DerivativeHistogram(zero_crossing[i].histogram,derivative);
1642 value=zero_crossing[k].histogram[index];
1647 if (zero_crossing[k].histogram[x] > value)
1649 value=zero_crossing[k].histogram[x];
1654 if (zero_crossing[k].histogram[x] < value)
1656 value=zero_crossing[k].histogram[x];
1698 % ScaleSpace() performs a scale-space filter on the 1D histogram.
1702 % ScaleSpace(const ssize_t *histogram,const double tau,
1707 % o histogram: Specifies an array of doubles representing the number
1712 static void ScaleSpace(const ssize_t *histogram,const double tau,
1743 sum+=(double) histogram[u]*gamma[MagickAbsoluteValue(x-u)];
1786 % derivative of the histogram. As the value is increased, you can expect a
1810 *histogram[MaxDimension];
1813 Allocate histogram and extrema.
1821 histogram[i]=(ssize_t *) AcquireQuantumMemory(256,sizeof(**histogram));
1823 if ((histogram[i] == (ssize_t *) NULL) || (extrema[i] == (short *) NULL))
1828 histogram[i]=(ssize_t *) RelinquishMagickMemory(histogram[i]);
1835 Initialize histogram.
1839 InitializeHistogram(image,histogram,exception);
1840 (void) OptimalTau(histogram[Red],Tau,0.2,DeltaTau,
1842 (void) OptimalTau(histogram[Green],Tau,0.2,DeltaTau,
1844 (void) OptimalTau(histogram[Blue],Tau,0.2,DeltaTau,
1858 histogram[i]=(ssize_t *) RelinquishMagickMemory(histogram[i]);
1875 % ZeroCrossHistogram() find the zero crossings in a histogram and marks
1887 % second derivative of the histogram of a particular color component.