MagickRandomThresholdImage
Posted: 2006-12-27T17:33:18-07:00
I can't make sense of the description of this function. I don't understand "geometry string" in the context of the function prototype.
Here is the text from magick-image.html:
MagickRandomThresholdImage
MagickRandomThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to threshold. The result is a high-contrast, two color image.
The format of the MagickRandomThresholdImage method is:
MagickBooleanType MagickRandomThresholdImage(MagickWand *wand,
const double low,const double high)
MagickBooleanType MagickRandomThresholdImageChannel(MagickWand *wand,
const ChannelType channel,const double low,const double high)
A description of each parameter follows:
wand
The magick wand.
channel
The image channel(s).
low,high
a geometry string containing low,high thresholds. If the string contains 2x2, 3x3, or 4x4, an ordered dither of order 2, 3, or 4 is performed instead.
Here is the text from magick-image.html:
MagickRandomThresholdImage
MagickRandomThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to threshold. The result is a high-contrast, two color image.
The format of the MagickRandomThresholdImage method is:
MagickBooleanType MagickRandomThresholdImage(MagickWand *wand,
const double low,const double high)
MagickBooleanType MagickRandomThresholdImageChannel(MagickWand *wand,
const ChannelType channel,const double low,const double high)
A description of each parameter follows:
wand
The magick wand.
channel
The image channel(s).
low,high
a geometry string containing low,high thresholds. If the string contains 2x2, 3x3, or 4x4, an ordered dither of order 2, 3, or 4 is performed instead.