private function performCompare($image1, $image2)
    {
        $result = $image1->compareImages($image2, Imagick::METRIC_MEANSQUAREERROR);
        return $result[1];
    }
private function performCompare($image1, $image2)
    {
        $result = $image1->compareImages($image2, Imagick::METRIC_MEANSQUAREERROR);
        return $result[1];
    }
private function performCompare ( $ image1 , $ image2 ) { $ result = $ image1 -> compareImages ( $ image2 , Imagick :: METRIC_MEANSQUAREERROR ) ; return $ result [ 1 ] ; }
Perform ImageMagick compare, return result float

@param  Imagick  $image1
@param  Imagick  $image2
@return float
Perform ImageMagick compare return result float