Imagick::getImageChannelDistortion
Imagick::getImageChannelExtrema
The Imagick class
PHP Manual

# Imagick::getImageChannelDistortions

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

Imagick::getImageChannelDistortions — Gets channel distortions

### Opis

double Imagick::getImageChannelDistortions ( Imagick `$reference` , int `$metric` , int `$channel` )

Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics Ta metoda jest dostępna, jeśli rozszerzenie Imagick zostało skompilowane z ImageMagick w wersji 6.4.4 lub nowszej.

### Parametry

`reference`

  Imagick object containing the reference image

`metric`

  Refer to this list of metric type constants.

`channel`

  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

### Zwracane wartości

Returns a double describing the channel distortion.

### Błędy/Wyjątki

Zgłasza wyjątek ImagickException w przypadku błędu.

Imagick::getImageChannelDistortion
Imagick::getImageChannelExtrema
The Imagick class
PHP Manual