GoLang Imagick::getImageChannelDistortions

request it (279)
GoLang replacement for PHP's Imagick::getImageChannelDistortions [edit | history]

Do you know a GoLang replacement for PHP's Imagick::getImageChannelDistortions? Write it!

PHP Imagick::getImageChannelDistortions

PHP original manual for Imagick::getImageChannelDistortions [ show | php.net ]


(No version information available, might only be in Git)

Imagick::getImageChannelDistortionsGets channel distortions


float Imagick::getImageChannelDistortions ( Imagick $reference , int $metric [, int $channel = Imagick::CHANNEL_DEFAULT ] )

Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics This method is available if Imagick has been compiled against ImageMagick version 6.4.4 or newer.



Imagick object containing the reference image


Refer to this list of metric type constants.


Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants

Return Values

Returns a double describing the channel distortion.


Throws ImagickException on error.