AdaptiveThresholdImage() selects an individual threshold for each pixel based on the range of intensity values in its local neighborhood. This allows for thresholding of an image whose global intensity histogram doesn't contain distinctive peaks.
The format of the AdaptiveThresholdImage method is:
Image *AdaptiveThresholdImage(const Image *image,const size_t width, const size_t height,const double bias,ExceptionInfo *exception)
A description of each parameter follows:
AutoThresholdImage() automatically performs image thresholding dependent on which method you specify.
The format of the AutoThresholdImage method is:
MagickBooleanType AutoThresholdImage(Image *image, const AutoThresholdMethod method,ExceptionInfo *exception)
A description of each parameter follows:
BilevelImage() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.
More precisely each channel value of the image is 'thresholded' so that if it is equal to or less than the given value it is set to zero, while any value greater than that give is set to it maximum or QuantumRange.
This function is what is used to implement the "-threshold" operator for the command line API.
If the default channel setting is given the image is thresholded using just the gray 'intensity' of the image, rather than the individual channels.
The format of the BilevelImage method is:
MagickBooleanType BilevelImage(Image *image,const double threshold, ExceptionInfo *exception)
A description of each parameter follows:
BlackThresholdImage() is like ThresholdImage() but forces all pixels below the threshold into black while leaving all pixels at or above the threshold unchanged.
The format of the BlackThresholdImage method is:
MagickBooleanType BlackThresholdImage(Image *image, const char *threshold,ExceptionInfo *exception)
A description of each parameter follows:
ClampImage() set each pixel whose value is below zero to zero and any the pixel whose value is above the quantum range to the quantum range (e.g. 65535) otherwise the pixel value remains unchanged.
The format of the ClampImage method is:
MagickBooleanType ClampImage(Image *image,ExceptionInfo *exception)
A description of each parameter follows:
ColorThresholdImage() forces all pixels in the color range to white otherwise black.
The format of the ColorThresholdImage method is:
MagickBooleanType ColorThresholdImage(Image *image, const PixelInfo *start_color,const PixelInfo *stop_color, ExceptionInfo *exception)
A description of each parameter follows:
DestroyThresholdMap() de-allocate the given ThresholdMap
The format of the ListThresholdMaps method is:
ThresholdMap *DestroyThresholdMap(Threshold *map)
A description of each parameter follows.
Pointer to the Threshold map to destroy
GetThresholdMap() loads and searches one or more threshold map files for the map matching the given name or alias.
The format of the GetThresholdMap method is:
ThresholdMap *GetThresholdMap(const char *map_id, ExceptionInfo *exception)
A description of each parameter follows.
ID of the map to look for.
return any errors or warnings in this structure.
ListThresholdMaps() lists the threshold maps and their descriptions as defined by "threshold.xml" to a file.
The format of the ListThresholdMaps method is:
MagickBooleanType ListThresholdMaps(FILE *file,ExceptionInfo *exception)
A description of each parameter follows.
An pointer to the output FILE.
return any errors or warnings in this structure.
OrderedDitherImage() will perform a ordered dither based on a number of pre-defined dithering threshold maps, but over multiple intensity levels, which can be different for different channels, according to the input argument.
The format of the OrderedDitherImage method is:
MagickBooleanType OrderedDitherImage(Image *image, const char *threshold_map,ExceptionInfo *exception)
A description of each parameter follows:
PerceptibleImage() set each pixel whose value is less than |epsilon| to epsilon or -epsilon (whichever is closer) otherwise the pixel value remains unchanged.
The format of the PerceptibleImage method is:
MagickBooleanType PerceptibleImage(Image *image,const double epsilon, ExceptionInfo *exception)
A description of each parameter follows:
RandomThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image.
The format of the RandomThresholdImage method is:
MagickBooleanType RandomThresholdImage(Image *image, const char *thresholds,ExceptionInfo *exception)
A description of each parameter follows:
RangeThresholdImage() applies soft and hard thresholding.
The format of the RangeThresholdImage method is:
MagickBooleanType RangeThresholdImage(Image *image, const double low_black,const double low_white,const double high_white, const double high_black,ExceptionInfo *exception)
A description of each parameter follows:
WhiteThresholdImage() is like ThresholdImage() but forces all pixels above the threshold into white while leaving all pixels at or below the threshold unchanged.
The format of the WhiteThresholdImage method is:
MagickBooleanType WhiteThresholdImage(Image *image, const char *threshold,ExceptionInfo *exception)
A description of each parameter follows: