Home | History | Annotate | Download | only in MagickCore

Lines Matching refs:pixel

80 #include "MagickCore/pixel-accessor.h"
227 static double ApplyEvaluateOperator(RandomInfo *random_info,const Quantum pixel,
240 result=(double) fabs((double) (pixel+value));
245 result=(double) (pixel+value);
256 result=pixel+value;
262 result=(double) ((size_t) pixel & (size_t) (value+0.5));
268 QuantumScale*pixel*value))+0.5));
273 result=pixel/(value == 0.0 ? 1.0 : value);
278 result=(double) (QuantumRange*exp((double) (value*QuantumScale*pixel)));
283 result=(double) GenerateDifferentialNoise(random_info,pixel,
289 result=(double) GenerateDifferentialNoise(random_info,pixel,ImpulseNoise,
295 result=(double) GenerateDifferentialNoise(random_info,pixel,
301 result=(double) ((size_t) pixel << (size_t) (value+0.5));
306 if ((QuantumScale*pixel) >= MagickEpsilon)
307 result=(double) (QuantumRange*log((double) (QuantumScale*value*pixel+
313 result=(double) EvaluateMax((double) pixel,value);
318 result=(double) (pixel+value);
323 result=(double) (pixel+value);
328 result=(double) MagickMin((double) pixel,value);
333 result=(double) GenerateDifferentialNoise(random_info,pixel,
339 result=(double) (value*pixel);
344 result=(double) ((size_t) pixel | (size_t) (value+0.5));
349 result=(double) GenerateDifferentialNoise(random_info,pixel,PoissonNoise,
355 result=(double) (QuantumRange*pow((double) (QuantumScale*pixel),(double)
361 result=(double) ((size_t) pixel >> (size_t) (value+0.5));
366 result=(double) (pixel*pixel+value);
377 QuantumScale*pixel*value))+0.5));
382 result=(double) (pixel-value);
387 result=(double) (pixel+value);
392 result=(double) (((double) pixel <= value) ? 0 : QuantumRange);
397 result=(double) (((double) pixel <= value) ? 0 : pixel);
402 result=(double) (((double) pixel > value) ? QuantumRange : pixel);
407 result=(double) GenerateDifferentialNoise(random_info,pixel,UniformNoise,
413 result=(double) ((size_t) pixel ^ (size_t) (value+0.5));
895 static Quantum ApplyFunction(Quantum pixel,const MagickFunction function,
917 result=result*QuantumScale*pixel+parameters[i];
937 MagickPI*(frequency*QuantumScale*pixel+phase/360.0)))+bias));
956 result=2.0/width*(QuantumScale*pixel-center);
982 result=(double) (MagickPI*slope*(QuantumScale*pixel-center));
2264 % PolynomialImage() returns a new image where each pixel is the sum of the
2490 % StatisticImage() makes each pixel the min / max / median / mode / etc. of
2504 % o width: the width of the pixel neighborhood.
2506 pixel neighborhood.
2672 static inline void GetMaximumPixelList(PixelList *pixel_list,Quantum *pixel)
2698 *pixel=ScaleShortToQuantum((unsigned short) maximum);
2701 static inline void GetMeanPixelList(PixelList *pixel_list,Quantum *pixel)
2729 *pixel=ScaleShortToQuantum((unsigned short) sum);
2732 static inline void GetMedianPixelList(PixelList *pixel_list,Quantum *pixel)
2754 *pixel=ScaleShortToQuantum((unsigned short) color);
2757 static inline void GetMinimumPixelList(PixelList *pixel_list,Quantum *pixel)
2783 *pixel=ScaleShortToQuantum((unsigned short) minimum);
2786 static inline void GetModePixelList(PixelList *pixel_list,Quantum *pixel)
2800 Make each pixel the 'predominant color' of the specified neighborhood.
2817 *pixel=ScaleShortToQuantum((unsigned short) mode);
2820 static inline void GetNonpeakPixelList(PixelList *pixel_list,Quantum *pixel)
2852 *pixel=ScaleShortToQuantum((unsigned short) color);
2856 Quantum *pixel)
2884 *pixel=ScaleShortToQuantum((unsigned short) sqrt(sum));
2888 Quantum *pixel)
2924 *pixel=ScaleShortToQuantum((unsigned short) sqrt(sum_squared-(sum*sum)));
2927 static inline void InsertPixelList(const Quantum pixel,PixelList *pixel_list)
2935 index=ScaleQuantumToShort(pixel);
3018 Make each pixel the min / max / median / mode / etc. of the neighborhood.
3063 pixel;
3106 GetMinimumPixelList(pixel_list[id],&pixel);
3107 minimum=(double) pixel;
3108 GetMaximumPixelList(pixel_list[id],&pixel);
3109 maximum=(double) pixel;
3110 pixel=ClampToQuantum(MagickAbsoluteValue(maximum-minimum));
3115 GetMaximumPixelList(pixel_list[id],&pixel);
3120 GetMeanPixelList(pixel_list[id],&pixel);
3126 GetMedianPixelList(pixel_list[id],&pixel);
3131 GetMinimumPixelList(pixel_list[id],&pixel);
3136 GetModePixelList(pixel_list[id],&pixel);
3141 GetNonpeakPixelList(pixel_list[id],&pixel);
3146 GetRootMeanSquarePixelList(pixel_list[id],&pixel);
3151 GetStandardDeviationPixelList(pixel_list[id],&pixel);
3155 SetPixelChannel(statistic_image,channel,pixel,q);