IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2008, 1:18:34 PM (18 years ago)
Author:
Paul Price
Message:

Fixing regions to allow convolution of sub-images (for ppStack)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtraction.c

    r16423 r16476  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2008-02-14 00:13:09 $
     6 *  @version $Revision: 1.79 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2008-02-14 23:18:34 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    681681        PS_ASSERT_IMAGE_TYPE(out1->weight, PS_TYPE_F32, false);
    682682    }
    683     if (region) {
    684         if (psRegionIsNaN(*region)) {
    685             psString string = psRegionToString(*region);
    686             psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Input region (%s) contains NAN values", string);
    687             psFree(string);
    688             return false;
    689         }
    690         if (region->x0 < 0 || region->x1 > ro1->image->numCols ||
    691             region->y0 < 0 || region->y1 > ro1->image->numRows) {
    692             psString string = psRegionToString(*region);
    693             psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Input region (%s) does not fit in image (%dx%d)",
    694                     string, ro1->image->numCols, ro1->image->numRows);
    695             psFree(string);
    696             return false;
    697         }
     683    if (region && psRegionIsNaN(*region)) {
     684        psString string = psRegionToString(*region);
     685        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Input region (%s) contains NAN values", string);
     686        psFree(string);
     687        return false;
    698688    }
    699689
Note: See TracChangeset for help on using the changeset viewer.