Imagick Imagick::compareImageLayers    ( int $method   )

Imagick::compareImageLayersReturns the maximum bounding region between images

method

One of the layer method constants.