IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4608


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

Location:
trunk/psLib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/pslib.kdevses

    r4600 r4608  
    22<!DOCTYPE KDevPrjSession>
    33<KDevPrjSession>
    4  <DocsAndViews NumberOfDocuments="2" >
    5   <Doc0 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/new/psLib/src/types/psArray.c" >
    6    <View0 Type="Source" />
     4 <DocsAndViews NumberOfDocuments="4" >
     5  <Doc0 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/new/psLib/src/math/psMinimize.h" >
     6   <View0 line="74" Type="Source" />
    77  </Doc0>
    8   <Doc1 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/new/psLib/src/types/psArray.h" >
    9    <View0 line="58" Type="Source" />
     8  <Doc1 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/new/psLib/src/math/psMinimize.c" >
     9   <View0 line="1568" Type="Source" />
    1010  </Doc1>
     11  <Doc2 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/new/psLib/src/imageops/psImageGeomManip.h" >
     12   <View0 line="145" Type="Source" />
     13  </Doc2>
     14  <Doc3 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/new/psLib/src/imageops/psImageGeomManip.c" >
     15   <View0 line="690" Type="Source" />
     16  </Doc3>
    1117 </DocsAndViews>
    1218 <pluginList>
  • 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;
  • trunk/psLib/src/imageops/psImageGeomManip.h

    r4385 r4608  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-06-25 00:51:28 $
     10 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-07-25 20:49:04 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    144144psImage* psImageTransform(
    145145    psImage *output,                   ///< psImage to recycle, or NULL
    146     psPixels* blankPixels,             ///< list of pixels in output image not set, or NULL if no list is desired.
     146    psArray* blankPixels,              ///< list of pixels in output image not set, or NULL if no list is desired.
    147147    const psImage *input,              ///< psImage to apply transform to
    148148    const psImage *inputMask,          ///< if not NULL, mask of input psImage
     
    151151    psRegion region,                   ///< the size of the transformed image
    152152    const psPixels* pixels,            /**< if not NULL, consists of psPixelCoords and specifies which pixels in
    153                                                              *  output image shall be transformed; otherwise, entire image generated*/
     153                                                                 *  output image shall be transformed; otherwise, entire image generated*/
    154154    psImageInterpolateMode mode,       ///< the interpolation scheme to be used
    155155    double exposedValue                   ///< Exposed value to which non-corresponding pixels are set
  • trunk/psLib/src/types/psPixels.h

    r4597 r4608  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-07-22 22:19:31 $
     9 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-07-25 20:49:04 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7373psPixels* p_psPixelsAppend(
    7474    psPixels* pixels,                  ///< psPixels to append new coordinate to.  NULL creates a new one.
    75     long growth,                        ///< number of elements to grow the psPixels list, if necessary.  if growth < 1, 10 is used.
     75    long growth,
     76    ///< number of elements to grow the psPixels list, if necessary.  if growth < 1, 10 is used.
    7677    int x,                             ///< x coordinate to append
    7778    int y                              ///< y coordinate to append
Note: See TracChangeset for help on using the changeset viewer.