Changeset 5064 for trunk/psLib/src/imageops/psImagePixelManip.c
- Timestamp:
- Sep 16, 2005, 1:56:51 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImagePixelManip.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImagePixelManip.c
r4938 r5064 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-09- 01 01:05:41$12 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-09-16 23:56:48 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 399 399 // the region is defined wrt the parent image 400 400 void psImageMaskRegion(psImage *image, 401 psRegion *region,401 psRegion region, 402 402 const char *op, 403 403 psMaskType maskValue) … … 406 406 for (int iy = 0; iy < image->numRows; iy++) { 407 407 for (int ix = 0; ix < image->numCols; ix++) { 408 if (ix + image->col0 < region ->x0)408 if (ix + image->col0 < region.x0) 409 409 continue; 410 if (ix + image->col0 >= region ->x1)410 if (ix + image->col0 >= region.x1) 411 411 continue; 412 if (iy + image->row0 < region ->y0)412 if (iy + image->row0 < region.y0) 413 413 continue; 414 if (iy + image->row0 >= region ->y1)414 if (iy + image->row0 >= region.y1) 415 415 continue; 416 416 if ( !strncmp(op, "&", 2) || !strncmp(op, "AND", 5) ) { … … 430 430 // the region is defined wrt the parent image 431 431 void psImageKeepRegion(psImage *image, 432 psRegion *region,432 psRegion region, 433 433 const char *op, 434 434 psMaskType maskValue) … … 437 437 for (int iy = 0; iy < image->numRows; iy++) { 438 438 for (int ix = 0; ix < image->numCols; ix++) { 439 if (ix + image->col0 < region ->x0)439 if (ix + image->col0 < region.x0) 440 440 goto maskit; 441 if (ix + image->col0 >= region ->x1)441 if (ix + image->col0 >= region.x1) 442 442 goto maskit; 443 if (iy + image->row0 < region ->y0)443 if (iy + image->row0 < region.y0) 444 444 goto maskit; 445 if (iy + image->row0 >= region ->y1)445 if (iy + image->row0 >= region.y1) 446 446 goto maskit; 447 447 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
