Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Commit

Permalink
Removed imagecolorat "out of bounds" notice
Browse files Browse the repository at this point in the history
  • Loading branch information
bforchhammer committed Nov 10, 2011
1 parent b6afc6f commit 4b15d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FaceDetector.php
Expand Up @@ -108,12 +108,12 @@ protected function compute_ii($canvas, $image_width, $image_height ){
$ii2[$i] = 0;
}

for($i=1; $i<$ii_w; $i++ ){
for($i=1; $i<$ii_w-1; $i++ ){
$ii[$i*$ii_w] = 0;
$ii2[$i*$ii_w] = 0;
$rowsum = 0;
$rowsum2 = 0;
for($j=1; $j<$ii_h; $j++ ){
for($j=1; $j<$ii_h-1; $j++ ){
$rgb = ImageColorAt($canvas, $j, $i);
$red = ($rgb >> 16) & 0xFF;
$green = ($rgb >> 8) & 0xFF;
Expand Down

0 comments on commit 4b15d1d

Please sign in to comment.