diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-12-29 19:25:16 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-12-29 19:25:16 +0000 |
commit | fd1ea104fcd58b15d3db5d47a4cc5f56a3c05026 (patch) | |
tree | 54f4840e04ffe1f153288c32f4057880a00b9c23 | |
parent | e99ea25f82f472d7c6b570389df26ebb978fdcd5 (diff) | |
download | netpbm-mirror-fd1ea104fcd58b15d3db5d47a4cc5f56a3c05026.tar.gz netpbm-mirror-fd1ea104fcd58b15d3db5d47a4cc5f56a3c05026.tar.xz netpbm-mirror-fd1ea104fcd58b15d3db5d47a4cc5f56a3c05026.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3725 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | analyzer/pamtilt.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/analyzer/pamtilt.c b/analyzer/pamtilt.c index 70338545..2898d30f 100644 --- a/analyzer/pamtilt.c +++ b/analyzer/pamtilt.c @@ -143,7 +143,7 @@ load(const struct pam * const pamP, sample ** pixels; tuplerow = pnm_allocpamrow(pamP); - + MALLOCARRAY(pixels, pamP->height); if (pixels == NULL) @@ -221,7 +221,7 @@ totalBrightness(sample ** const pixels, /*---------------------------------------------------------------------------- Total brightness of samples in the line that goes from the left edge of Row 'startRow' of 'pixels' down to the right at 'dy' rows per column. - + Note that 'dy' can be negative. Assume that whatever 'dy' is, the sloping line thus described remains @@ -319,7 +319,7 @@ scoreAngle(const struct pam * const pamP, If 'angle' is so great that not a single line goes all the way across the page without running off the top or bottom, we call the score -1. In every other case, it is nonnegative. - + 'pixels' is NOT all the pixels in the image; it is just a sampling. In each row, it contains only 'hsampleCt' pixels, sampled from the image at intervals of 'hstep' pixels. E.g if the image is 1000 @@ -468,7 +468,7 @@ readSampledPixels(const char * const inputFilename, *hstepP = hstep; *vstepP = vstep; - + pm_close(ifP); } @@ -490,7 +490,7 @@ getAngle(const struct pam * const pamP, float a; float da; float lastq; /* quality (s/n ratio) of last measurement */ - + getBestAngleLocal(pamP, pixels, hstep, vstep, hsampleCt, -maxangle, maxangle, astep, verbose, &a, &lastq); @@ -551,3 +551,6 @@ main(int argc, const char ** argv) { return 0; } + + + |