IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 16, 2005, 1:56:51 PM (21 years ago)
Author:
drobbin
Message:

Relatively minor changes from new SDRS rev16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImagePixelManip.c

    r4938 r5064  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.11 $ $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 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    399399// the region is defined wrt the parent image
    400400void psImageMaskRegion(psImage *image,
    401                        psRegion *region,
     401                       psRegion region,
    402402                       const char *op,
    403403                       psMaskType maskValue)
     
    406406    for (int iy = 0; iy < image->numRows; iy++) {
    407407        for (int ix = 0; ix < image->numCols; ix++) {
    408             if (ix + image->col0 <  region->x0)
     408            if (ix + image->col0 <  region.x0)
    409409                continue;
    410             if (ix + image->col0 >= region->x1)
     410            if (ix + image->col0 >= region.x1)
    411411                continue;
    412             if (iy + image->row0 <  region->y0)
     412            if (iy + image->row0 <  region.y0)
    413413                continue;
    414             if (iy + image->row0 >= region->y1)
     414            if (iy + image->row0 >= region.y1)
    415415                continue;
    416416            if ( !strncmp(op, "&", 2) || !strncmp(op, "AND", 5) ) {
     
    430430// the region is defined wrt the parent image
    431431void psImageKeepRegion(psImage *image,
    432                        psRegion *region,
     432                       psRegion region,
    433433                       const char *op,
    434434                       psMaskType maskValue)
     
    437437    for (int iy = 0; iy < image->numRows; iy++) {
    438438        for (int ix = 0; ix < image->numCols; ix++) {
    439             if (ix + image->col0 <  region->x0)
     439            if (ix + image->col0 <  region.x0)
    440440                goto maskit;
    441             if (ix + image->col0 >= region->x1)
     441            if (ix + image->col0 >= region.x1)
    442442                goto maskit;
    443             if (iy + image->row0 <  region->y0)
     443            if (iy + image->row0 <  region.y0)
    444444                goto maskit;
    445             if (iy + image->row0 >= region->y1)
     445            if (iy + image->row0 >= region.y1)
    446446                goto maskit;
    447447            continue;
Note: See TracChangeset for help on using the changeset viewer.