diff options
Diffstat (limited to 'binarize')
-rw-r--r-- | binarize/integralimg.go | 2 | ||||
-rw-r--r-- | binarize/sauvola.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/binarize/integralimg.go b/binarize/integralimg.go index 75e9cce..382b495 100644 --- a/binarize/integralimg.go +++ b/binarize/integralimg.go @@ -14,7 +14,7 @@ type integralwindow struct { height int } -func integralimg(img *image.Gray) [][]uint64 { +func Integralimg(img *image.Gray) [][]uint64 { b := img.Bounds() var oldy, oldx, oldxy uint64 var integral [][]uint64 diff --git a/binarize/sauvola.go b/binarize/sauvola.go index ee773ba..6d9c1af 100644 --- a/binarize/sauvola.go +++ b/binarize/sauvola.go @@ -35,7 +35,7 @@ func IntegralSauvola(img *image.Gray, ksize float64, windowsize int) *image.Gray b := img.Bounds() new := image.NewGray(b) - integral := integralimg(img) + integral := Integralimg(img) integralsq := integralimgsq(img) for y := b.Min.Y; y < b.Max.Y; y++ { |