IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2006, 10:38:19 AM (20 years ago)
Author:
drobbin
Message:

Updated ImageRow, Col, Slice with respect to Sub-image v. parent-image specs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r6579 r6631  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.98 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-03-14 03:35:14 $
     11 *  @version $Revision: 1.99 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-03-17 20:38:19 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    293293                double complex value)
    294294{
    295     /*    if (image == NULL) {
    296             psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psImage_IMAGE_NULL);
    297             return false;
    298         }
    299         if (x >= image->numRows || y >= image->numCols) {
    300             psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    301                 "Invalid position %d.  Position out of range (%d-%d)\n", x, );
    302             return false;
    303         }
    304 
    305         if(x < 0)
    306             x += image->numRows;
    307         if(x < 0) {
    308             psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid x.  Negative number too large\n");
    309             return false;
    310         }
    311 
    312         if(y < 0)
    313             y += image->numCols;
    314         if(y < 0) {
    315             psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid y.  Negative number too large\n");
    316             return false;
    317         }
    318 
    319     */
    320295    PS_ASSERT_IMAGE_NON_NULL(image, false);
    321296    PS_ASSERT_INT_NONNEGATIVE(image->col0, false);
     
    416391                          int y)
    417392{
    418     /*    if (image == NULL) {
    419             psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psImage_IMAGE_NULL);
    420             return NAN;
    421         }
    422         if (x >= image->numRows || y >= image->numCols) {
    423             psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid position.  Position too large\n");
    424             return NAN;
    425         }
    426 
    427         if(x < 0)
    428             x += image->numRows;
    429         if(x < 0) {
    430             psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid x.  Negative number too large\n");
    431             return NAN;
    432         }
    433 
    434         if(y < 0)
    435             y += image->numCols;
    436         if(y < 0) {
    437             psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid y.  Negative number too large\n");
    438             return NAN;
    439         }
    440     */
    441393    PS_ASSERT_IMAGE_NON_NULL(image, NAN);
    442394    PS_ASSERT_INT_NONNEGATIVE(image->col0, NAN);
Note: See TracChangeset for help on using the changeset viewer.