IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1605


Ignore:
Timestamp:
Aug 19, 2004, 4:55:58 PM (22 years ago)
Author:
desonia
Message:

added mask/maskVal parameters to psImageRebin.

Location:
trunk/psLib
Files:
3 edited

Legend:

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

    r1604 r1605  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-20 02:48:38 $
     13 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-20 02:55:58 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    356356                      const psImage* in,
    357357                      const psImage* restrict mask,
    358                       unsigned int maskVal,
     358                      psMaskType maskVal,
    359359                      unsigned int scale,
    360360                      const psStats* stats)
  • trunk/psLib/src/image/psImageManip.h

    r1442 r1605  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-10 01:05:53 $
     13 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-20 02:55:58 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    101101    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    102102    const psImage* in,                 ///< input image
     103    const psImage* restrict mask,      ///< mask for input image.  If NULL, no masking is done.
     104    psMaskType maskVal,                ///< the bits to check in mask.
    103105    unsigned int scale,                ///< the scale to rebin for each dimension
    104106    const psStats* stats
  • trunk/psLib/test/image/tst_psImageManip.c

    r1509 r1605  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-08-12 03:11:08 $
     8 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-08-20 02:55:42 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    788788
    789789    stats.options = PS_STAT_SAMPLE_MEAN;
    790     out = psImageRebin(NULL,in,4,&stats);
     790    out = psImageRebin(NULL,in,NULL,0,4,&stats);
    791791
    792792    if (out == NULL) {
     
    816816
    817817    stats.options = PS_STAT_MAX;
    818     out2 = psImageRebin(out,in,3,&stats);
     818    out2 = psImageRebin(out,in,NULL,0,3,&stats);
    819819
    820820    // Verify the returned psImage structure is equal to the input parameter
     
    853853    // doesn't stop, if the input parameter input is null.
    854854
    855     out2 = psImageRebin(NULL,NULL,1,&stats);
     855    out2 = psImageRebin(NULL,NULL,NULL,0,1,&stats);
    856856
    857857    if (out2 != NULL) {
     
    864864    // doesn't stop, if the input parameter scale is less than or equal to zero.
    865865    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");
    866     out2 = psImageRebin(NULL,in,0,&stats);
     866    out2 = psImageRebin(NULL,in,NULL,0,0,&stats);
    867867
    868868    if (out2 != NULL) {
     
    875875    // doesn't stop, if the input parameter stats is null.
    876876    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");
    877     out2 = psImageRebin(NULL,in,1,NULL);
     877    out2 = psImageRebin(NULL,in,NULL,0,1,NULL);
    878878
    879879    if (out2 != NULL) {
     
    889889    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");
    890890    stats.options = 0;
    891     out2 = psImageRebin(NULL,in,1,&stats);
     891    out2 = psImageRebin(NULL,in,NULL,0,1,&stats);
    892892
    893893    if (out2 != NULL) {
     
    899899    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");
    900900    stats.options = PS_STAT_USE_RANGE;
    901     out2 = psImageRebin(NULL,in,1,&stats);
     901    out2 = psImageRebin(NULL,in,NULL,0,1,&stats);
    902902
    903903    if (out2 != NULL) {
     
    912912    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");
    913913    stats.options = PS_STAT_SAMPLE_MEAN + PS_STAT_MAX;
    914     out2 = psImageRebin(NULL,in,1,&stats);
     914    out2 = psImageRebin(NULL,in,NULL,0,1,&stats);
    915915
    916916    if (out2 != NULL) {
Note: See TracChangeset for help on using the changeset viewer.