public function assertImageSimilarity($image1, $image2, $threshold = 0, $message = 'Images are not within similarity threshold.')
    {
        $image1 = $this->initImage($image1);
        $image2 = $this->initImage($image2);

        $this->assertLessThanOrEqual($threshold, $this->performCompare($image1, $image2), $message);
    }
public function assertImageSimilarity($image1, $image2, $threshold = 0, $message = 'Images are not within similarity threshold.')
    {
        $image1 = $this->initImage($image1);
        $image2 = $this->initImage($image2);

        $this->assertLessThanOrEqual($threshold, $this->performCompare($image1, $image2), $message);
    }
public function assertImageSimilarity ( $ image1 , $ image2 , $ threshold = 0 , $ message = 'Images are not within similarity threshold.' ) { $ image1 = $ this -> initImage ( $ image1 ) ; $ image2 = $ this -> initImage ( $ image2 ) ; $ this -> assertLessThanOrEqual ( $ threshold , $ this -> performCompare ( $ image1 , $ image2 ) , $ message ) ; }
Perform image similarity assertion

@param  Imagick|string  $image1
@param  Imagick|string  $image2
@param  float  $threshold
@param  string $message
@return void
Perform image similarity assertion