Skip to content

Commit

Permalink
[pdq][php] Fix bug in php PDQ implementation
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Rusakov <[email protected]>
  • Loading branch information
rusan and Anton Rusakov authored Sep 12, 2023
1 parent 9d1067e commit 0eca9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdq/php/pdqhasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static function computeImageDomainQualityMetric(
for ($j = 0; $j < 63; $j++) {
$u = $buffer_64x64[$i][$j];
$v = $buffer_64x64[$i][$j+1];
$$d = (int)((($u - $v) * 100) / 255);
$d = (int)((($u - $v) * 100) / 255);
$int_gradient_sum += (int)abs($d);
}
}
Expand Down

0 comments on commit 0eca9d6

Please sign in to comment.