diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-03-29 02:58:33 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-03-29 02:58:33 +0000 |
commit | d8fe5f2ef6eb392243d7a828de2c44784bfb8b55 (patch) | |
tree | 7ec1a6d393e78a40bc890163f2e9f500db8dfdfe | |
parent | 3f3f46e686186dc9cc812d97960abfd6678b7c86 (diff) | |
download | netpbm-mirror-d8fe5f2ef6eb392243d7a828de2c44784bfb8b55.tar.gz netpbm-mirror-d8fe5f2ef6eb392243d7a828de2c44784bfb8b55.tar.xz netpbm-mirror-d8fe5f2ef6eb392243d7a828de2c44784bfb8b55.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2433 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | editor/specialty/pgmmorphconv.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/editor/specialty/pgmmorphconv.c b/editor/specialty/pgmmorphconv.c index 4479471a..d6cac51d 100644 --- a/editor/specialty/pgmmorphconv.c +++ b/editor/specialty/pgmmorphconv.c @@ -294,18 +294,22 @@ closeMorph(bit ** const template, static void -subtract(gray ** const in1Image, - gray ** const in2Image, +subtract(gray ** const subtrahendImage, + gray ** const substractorIImage, gray ** const outImage, unsigned int const rows, unsigned int const cols ) { + /* (I call the minuend the subtrahend and the subtrahend the subtractor, + to be consistent with other arithmetic terminology). + */ + unsigned int c; for (c = 0; c < cols; ++c) { unsigned int r; for (r = 0; r < rows; ++r) - outImage[r][c] = in1Image[r][c] - in2Image[r][c]; + outImage[r][c] = subtrahendImage[r][c] - subtractorImage[r][c]; } } |