IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 25, 2005, 10:49:04 AM (21 years ago)
Author:
drobbin
Message:

updated psImageTransform to use psArray instead of psPixels as requested in SDRS rev. 15

File:
1 edited

Legend:

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

    r4544 r4608  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-07-12 19:33:49 $
     12 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-07-25 20:49:04 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    689689
    690690psImage* psImageTransform(psImage *output,
    691                           psPixels* blankPixels,
     691                          psArray* blankPixels,
    692692                          const psImage *input,
    693693                          const psImage *inputMask,
     
    706706    }
    707707    psElemType type = input->type.type;
     708    psPixels* tempPixels = NULL;
     709
     710    if(blankPixels != NULL) {
     711        tempPixels = psPixelsAlloc(blankPixels->nalloc);
     712        tempPixels->n = blankPixels->n;
     713        tempPixels->data = (psPixelCoord*)blankPixels->data;
     714    }
    708715
    709716    if (inputMask != NULL) {
     
    801808    if (isnan(value)) { \
    802809        if (blankPixels != NULL) { \
    803             p_psPixelsAppend(blankPixels, blankPixels->nalloc, outPosition.x, outPosition.y); \
     810            p_psPixelsAppend(tempPixels, tempPixels->nalloc, outPosition.x, outPosition.y); \
    804811        } \
    805812        value = exposedValue; \
     
    866873
    867874    psFree(inPosition);
     875    psFree(tempPixels);
    868876
    869877    return output;
Note: See TracChangeset for help on using the changeset viewer.