IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2006, 10:28:34 AM (20 years ago)
Author:
drobbin
Message:

Added type support in Metadata for s8,s16,u8-32. Edited PixelsTransform and test. Added types to DataType.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r6230 r6251  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-01-28 01:31:44 $
     12*  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-01-30 20:28:33 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10851085    PS_ASSERT_PTR_NON_NULL(input, NULL);
    10861086    PS_ASSERT_PTR_NON_NULL(inToOut, NULL);
    1087     PS_ASSERT_PTR_NON_NULL(inToOut->x, NULL);
    1088     PS_ASSERT_PTR_NON_NULL(inToOut->y, NULL);
    10891087    if (out == NULL) {
    10901088        //XXX: Should the length (nalloc) be 1 and append be used everytime a pixel is added?
     
    11041102        deriv = psPlaneTransformDeriv(deriv, inToOut, coord);
    11051103        fxnVal = psPlaneTransformApply(fxnVal, inToOut, coord);
    1106         if (fabs(fxnVal->x - coord->x) < fabs(deriv->x) &&
    1107                 fabs(fxnVal->y - coord->y) < fabs(deriv->y)) {
    1108             int x = (int)(round(fabs(deriv->x)));
    1109             int y = (int)(round(fabs(deriv->y)));
     1104        if (fabs(fxnVal->x - coord->x) <= fabs(deriv->x) &&
     1105                fabs(fxnVal->y - coord->y) <= fabs(deriv->y)) {
     1106            int x = (int)(ceil(fabs(deriv->x)));
     1107            int y = (int)(ceil(fabs(deriv->y)));
    11101108            for (int j = -x; j <= x; j++) {
    11111109                for (int k = -y; k <= y; k++) {
Note: See TracChangeset for help on using the changeset viewer.