IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2005, 12:00:04 PM (21 years ago)
Author:
gusciora
Message:

CHeck in, check in often. -- RDD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageGeomManip.c

    r4214 r4286  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-11 02:19:05 $
     12 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-06-16 22:00:04 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    697697                          const psPixels* pixels,
    698698                          psImageInterpolateMode mode,
    699                           int exposedValue)
     699                          int exposedValue,
     700                          psPlaneTransform *junk)
    700701{
     702    printf("junk(A): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
     703
     704
    701705    if (input == NULL) {
    702706        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     
    707711    psElemType type = input->type.type;
    708712
     713    printf("junk(B): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
    709714    if (inputMask != NULL) {
    710715        if (input->numRows != inputMask->numRows || input->numCols != inputMask->numCols) {
     
    733738    }
    734739
     740    printf("junk(C): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
    735741    int row0;
    736742    int row1;
     
    774780    }
    775781
     782    printf("junk(D): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
    776783    // loop through the output image using the domain above and transform
    777784    // each output pixel to input coordinates and use psImagePixelInterpolate
     
    780787    psPlane* inPosition = NULL;
    781788
     789
     790
     791
     792
    782793    #define PSIMAGE_TRANSFORM_DOTRANSFORM(TYPE,MODE) \
    783794    /* apply the transform to get the position in the input image */ \
     795    printf("junk(Ea): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);\
    784796    inPosition = psPlaneTransformApply(inPosition, outToIn, &outPosition); \
    785797    \
     798    printf("junk(Eaa): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);\
    786799    if (inPosition == NULL) { \
    787800        psError(PS_ERR_UNKNOWN, false, \
     
    791804    } \
    792805    /* interpolate the cooresponding input pixel to get the output pixel value. */ \
     806    printf("junk(Eaaa): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);\
    793807    ps##TYPE value = p_psImagePixelInterpolate##MODE##_##TYPE(input, \
    794808                     inPosition->x, inPosition->y, \
    795809                     inputMask, inputMaskVal, NAN); \
     810    /*    psFree(inPosition); */\
     811    printf("junk(Eaaaa): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);\
    796812    if (isnan(value)) { \
    797813        if (blankPixels != NULL) { \
     
    800816        value = exposedValue; \
    801817    } \
     818    printf("junk(Eb): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
     819
     820
    802821
    803822    #define PSIMAGE_TRANSFORM_LOOP(TYPE, MODE) { \
     
    806825            ps##TYPE* outputData=output->data.TYPE[row]; \
    807826            for (int col = 0; col < numCols; col++) { \
     827                printf("junk(Eb): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY); \
    808828                outPosition.x = col+col0; \
     829                printf("junk(Ebb): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY); \
    809830                PSIMAGE_TRANSFORM_DOTRANSFORM(TYPE,MODE) \
     831                printf("junk(Ebbb): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY); \
    810832                outputData[col] = value; \
    811             } \
    812         } \
    813     }
     833                printf("junk(Ebbbb): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY); \
     834                printf("HERE B: Writing (%d, %d) Image size is (%d, %d)\n", \
     835                       row, col, output->numRows, output->numCols); \
     836                printf("junk(Ebbbbb): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY); \
     837            } \
     838        } \
     839    }
     840
     841    printf("junk(F): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
    814842
    815843    #define PSIMAGE_TRANSFORM_FROMLIST(TYPE, MODE) { \
     
    823851                PSIMAGE_TRANSFORM_DOTRANSFORM(TYPE,MODE) \
    824852                output->data.TYPE[y][x] = value; \
    825             } \
    826         } \
    827     }
     853                printf("HERE C: Writing (%d, %d) Image size is (%d, %d)\n", y, x, output->numRows, output->numCols); \
     854            } \
     855        } \
     856    }
     857
     858    printf("junk(G): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
    828859
    829860    #define PSIMAGE_TRANSFORM_CASE(MODE) \
     
    843874                    typeStr); \
    844875            psFree(output); \
     876            printf("junk(H): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY); \
    845877            return NULL; \
    846878        } \
     
    848880    break;
    849881
     882    printf("junk(J): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
    850883    switch (mode) {
    851884        PSIMAGE_TRANSFORM_CASE(FLAT);
     
    857890                mode);
    858891        psFree(output);
    859         return NULL;
    860     }
     892        printf("junk(K): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
     893        return NULL;
     894    }
     895    printf("junk(L): (%d, %d) (%d %d)\n", junk->x->nX, junk->x->nY, junk->y->nX, junk->y->nY);
    861896
    862897    return output;
Note: See TracChangeset for help on using the changeset viewer.