IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2006, 3:49:41 PM (20 years ago)
Author:
drobbin
Message:

Edited functions wrt subimage v parent image issue.

File:
1 edited

Legend:

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

    r6750 r6778  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-04-01 02:43:57 $
     11 *  @version $Revision: 1.92 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-04-05 01:49:40 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    657657        }
    658658        region = psRegionForImage(mask, region);
    659      
     659
    660660        if (region.x0 == region.x1 || region.y0 == region.y1) {
    661661            psError(PS_ERR_BAD_PARAMETER_SIZE, true,
     
    670670    PS_ASSERT_INT_POSITIVE(mask->numRows, -1);
    671671
    672     /*    x0 = (int)(roundf(region.x0));
    673         x1 = (int)(roundf(region.x1));
    674         y0 = (int)(roundf(region.y0));
    675         y1 = (int)(roundf(region.y1));
    676     */
    677672    int col0 = (int)(roundf(region.x0));
    678673    int col1 = (int)(roundf(region.x1));
     
    753748        return -1;
    754749    }/* else if (col0 == col1 && row0 == row1) {
    755             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    756                     "Invalid psRegion specified.  Region contains only 1 pixel.\n");
    757             return -1;
    758         }
    759     */
     750                psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     751                        "Invalid psRegion specified.  Region contains only 1 pixel.\n");
     752                return -1;
     753            }
     754        */
    760755    x0 = col0;
    761756    x1 = col1;
Note: See TracChangeset for help on using the changeset viewer.