From 7792a02c2d6efe84c99e38a258eaeb82262e6af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 27 Apr 2017 08:27:01 +0200 Subject: [PATCH] Fix javadocs errors and warnings --- .../src/com/googlecode/leptonica/android/Binarize.java | 10 +++++----- .../src/com/googlecode/leptonica/android/Clip.java | 1 - .../src/com/googlecode/leptonica/android/Edge.java | 1 - .../src/com/googlecode/leptonica/android/MorphApp.java | 4 ++-- .../com/googlecode/tesseract/android/PageIterator.java | 4 ++-- .../com/googlecode/tesseract/android/TessBaseAPI.java | 2 +- 6 files changed, 10 insertions(+), 12 deletions(-) diff --git a/tess-two/src/com/googlecode/leptonica/android/Binarize.java b/tess-two/src/com/googlecode/leptonica/android/Binarize.java index 6641c76e0..b765d66c5 100644 --- a/tess-two/src/com/googlecode/leptonica/android/Binarize.java +++ b/tess-two/src/com/googlecode/leptonica/android/Binarize.java @@ -154,7 +154,7 @@ public static Pix sauvolaBinarizeTiled(Pix pixs) { * Notes: *
    *
  1. The window width and height are 2 * whsize + 1. The minimum - * value for whsize is 2; typically it is >= 7. + * value for whsize is 2; typically it is >= 7. *
  2. For nx == ny == 1, this defaults to pixSauvolaBinarize(). *
  3. Why a tiled version? * (a) Because the mean value accumulator is a uint32, overflow @@ -169,7 +169,7 @@ public static Pix sauvolaBinarizeTiled(Pix pixs) { * where: * t = local threshold * m = local mean - * k = @factor (>= 0) [ typ. 0.35 ] + * k = @factor (>= 0) [ typ. 0.35 ] * s = local standard deviation, which is maximized at * 127.5 when half the samples are 0 and half are 255. *
  4. The basic idea of Niblack and Sauvola binarization is that @@ -180,9 +180,9 @@ public static Pix sauvolaBinarizeTiled(Pix pixs) { * * @param pixs An 8 bpp PIX source image. * @param whsize Window half-width for measuring local statistics - * @param factor Factor for reducing threshold due to variance; >= 0 - * @param nx Subdivision into tiles; >= 1 - * @param ny Subdivision into tiles; >= 1 + * @param factor Factor for reducing threshold due to variance; >= 0 + * @param nx Subdivision into tiles; >= 1 + * @param ny Subdivision into tiles; >= 1 * @return A 1 bpp thresholded PIX image. */ public static Pix sauvolaBinarizeTiled(Pix pixs, int whsize, float factor, int nx, int ny) { diff --git a/tess-two/src/com/googlecode/leptonica/android/Clip.java b/tess-two/src/com/googlecode/leptonica/android/Clip.java index b4fa0bbc7..49bf07b8b 100644 --- a/tess-two/src/com/googlecode/leptonica/android/Clip.java +++ b/tess-two/src/com/googlecode/leptonica/android/Clip.java @@ -33,7 +33,6 @@ public class Clip { * This should be simple, but there are choices to be made. The box is * defined relative to the pix coordinates. However, if the box is not * contained within the pix, we have two choices: - *

    *

    (1) clip the box to the pix *

    (2) make a new pix equal to the full box dimensions, * but let rasterop do the clipping and positioning diff --git a/tess-two/src/com/googlecode/leptonica/android/Edge.java b/tess-two/src/com/googlecode/leptonica/android/Edge.java index ccce11416..984cf5b15 100644 --- a/tess-two/src/com/googlecode/leptonica/android/Edge.java +++ b/tess-two/src/com/googlecode/leptonica/android/Edge.java @@ -52,7 +52,6 @@ public class Edge { * using pixThresholdToBinary(). If the high edge values are to be fg (1), * invert after running pixThresholdToBinary(). *

  5. Label the pixels as follows: - *

    *

    1 4 7 *

    2 5 8 *

    3 6 9 diff --git a/tess-two/src/com/googlecode/leptonica/android/MorphApp.java b/tess-two/src/com/googlecode/leptonica/android/MorphApp.java index 474525a13..7297abf58 100644 --- a/tess-two/src/com/googlecode/leptonica/android/MorphApp.java +++ b/tess-two/src/com/googlecode/leptonica/android/MorphApp.java @@ -122,8 +122,8 @@ public static Pix pixFastTophatWhite(Pix pixs) { *

* * @param pixs Source pix (8bpp) - * @param xsize width of max/min op, smoothing; any integer >= 1 - * @param ysize height of max/min op, smoothing; any integer >= 1 + * @param xsize width of max/min op, smoothing; any integer >= 1 + * @param ysize height of max/min op, smoothing; any integer >= 1 * @param type L_TOPHAT_WHITE: image - min, or L_TOPHAT_BLACK: max - image * @return a new Pix image */ diff --git a/tess-two/src/com/googlecode/tesseract/android/PageIterator.java b/tess-two/src/com/googlecode/tesseract/android/PageIterator.java index 6cd8a7c26..18952a517 100644 --- a/tess-two/src/com/googlecode/tesseract/android/PageIterator.java +++ b/tess-two/src/com/googlecode/tesseract/android/PageIterator.java @@ -70,7 +70,7 @@ public boolean next(int level) { * ============= Accessing data ==============. *

* Coordinate system: - *