Searched refs:targetPixel (Results 1 – 2 of 2) sorted by relevance
1015 $targetPixel = array('red'=>$R, 'green'=>$G, 'blue'=>$B);1020 $colorDiff = phpthumb_functions::PixelColorDifferencePercent($currentPixel, $targetPixel);1077 $targetPixel = array(1084 $targetPixel = array(1090 …$grayValue = phpthumb_functions::GrayscaleValue($targetPixel['red'], $targetPixel['green'], $targe…1091 $scaleR = $grayValue / $targetPixel['red'];1092 $scaleG = $grayValue / $targetPixel['green'];1093 $scaleB = $grayValue / $targetPixel['blue'];
275 public static function PixelColorDifferencePercent($currentPixel, $targetPixel) { argument277 foreach ($targetPixel as $channel => $currentvalue) {278 … max($diff, (max($currentPixel[$channel], $targetPixel[$channel]) - min($currentPixel[$channel], $…