Prev
MagickWand For PHP
Manual


Next

MagickStatisticImage

MagickStatisticImage -- replace each pixel with corresponding statistic from the neighborhood

Description

bool MagickStatisticImage( MagickWand mgck_wnd, int statistic, double width, double height, [, int channel_type] )

Changes the value of individual pixels, (or pixel components/channel(s), if channel_type parameter is supplied), with corresponding statistic from the neighborhood. Returns TRUE if successful, FALSE if an error occurred. If the optional channel_type parameter is specified, MagickStatisticImageChannel() is called on that particular image channel / pixel component. channel_type must be a ChannelType constant, one of the following: MW_RedChannel MW_CyanChannel MW_GreenChannel MW_MagentaChannel MW_BlueChannel MW_YellowChannel MW_AlphaChannel MW_OpacityChannel MW_BlackChannel MW_IndexChannel MW_AllChannels


A description of each parameter follows:

mgck_wnd A MagickWand resource
statistic statistic constant
width neighborhood width
height neighborhood height
channel_type (OPTIONAL) ChannelType constant


Prev
MagickSpreadImage
Up Next
MagickSteganoImage