IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

added mask/maskVal parameters to psImageRebin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.