Skip to content

Commit

Permalink
Fix ThresholdSauvola radius param
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Oct 15, 2023
1 parent 4d1d106 commit 83c7c71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/image/simba.image.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2362,10 +2362,10 @@ function TSimbaImage.ThresholdSauvola(Radius: Integer; AInvert: Boolean; R: Sing
for Y := 0 to H do
for X := 0 to W do
begin
Left := Max(X-W, 0);
Right := Min(X+W, W);
Top := Max(Y-W, 0);
Bottom := Min(Y+W, H);
Left := Max(X-Radius, 0);
Right := Min(X+Radius, W);
Top := Max(Y-Radius, 0);
Bottom := Min(Y+Radius, H);

//Sum := 0;
//SumSquares := 0;
Expand Down

0 comments on commit 83c7c71

Please sign in to comment.