src/ImageCompare.php
private function colorMeanValue($resource) {
		$colorList = array();
		$colorSum = 0;
		for ($a = 0; $a<8; $a++) {
			for ($b = 0; $b<8; $b++) {
				$rgb = imagecolorat($resource, $a, $b);
				$colorList[] = $rgb & 0xFF;
				$colorSum += $rgb & 0xFF;
			}
		}
		
		return array($colorSum/64,$colorList);
	}
private function colorMeanValue($resource) {
		$colorList = array();
		$colorSum = 0;
		for ($a = 0; $a<8; $a++) {
			for ($b = 0; $b<8; $b++) {
				$rgb = imagecolorat($resource, $a, $b);
				$colorList[] = $rgb & 0xFF;
				$colorSum += $rgb & 0xFF;
			}
		}
		
		return array($colorSum/64,$colorList);
	}
private function colorMeanValue ( $ resource ) { $ colorList = array ( ) ; $ colorSum = 0 ; for ( $ a = 0 ; $ a < 8 ; $ a ++ ) { for ( $ b = 0 ; $ b < 8 ; $ b ++ ) { $ rgb = imagecolorat ( $ resource , $ a , $ b ) ; $ colorList [ ] = $ rgb & 0xFF ; $ colorSum += $ rgb & 0xFF ; } } return array ( $ colorSum / 64 , $ colorList ) ; }
Returns the mean value of the colors and the list of all pixel's colors.

@param resource $resource Image resource identifier

@return array
Returns the mean value of the colors and the list of all pixel s colors .