Changeset 1605
- Timestamp:
- Aug 19, 2004, 4:55:58 PM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 3 edited
-
src/image/psImageManip.c (modified) (2 diffs)
-
src/image/psImageManip.h (modified) (2 diffs)
-
test/image/tst_psImageManip.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.c
r1604 r1605 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 6$ $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 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 356 356 const psImage* in, 357 357 const psImage* restrict mask, 358 unsigned intmaskVal,358 psMaskType maskVal, 359 359 unsigned int scale, 360 360 const psStats* stats) -
trunk/psLib/src/image/psImageManip.h
r1442 r1605 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 1$ $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 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 101 101 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 102 102 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. 103 105 unsigned int scale, ///< the scale to rebin for each dimension 104 106 const psStats* stats -
trunk/psLib/test/image/tst_psImageManip.c
r1509 r1605 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 2$ $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 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 788 788 789 789 stats.options = PS_STAT_SAMPLE_MEAN; 790 out = psImageRebin(NULL,in, 4,&stats);790 out = psImageRebin(NULL,in,NULL,0,4,&stats); 791 791 792 792 if (out == NULL) { … … 816 816 817 817 stats.options = PS_STAT_MAX; 818 out2 = psImageRebin(out,in, 3,&stats);818 out2 = psImageRebin(out,in,NULL,0,3,&stats); 819 819 820 820 // Verify the returned psImage structure is equal to the input parameter … … 853 853 // doesn't stop, if the input parameter input is null. 854 854 855 out2 = psImageRebin(NULL,NULL, 1,&stats);855 out2 = psImageRebin(NULL,NULL,NULL,0,1,&stats); 856 856 857 857 if (out2 != NULL) { … … 864 864 // doesn't stop, if the input parameter scale is less than or equal to zero. 865 865 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); 867 867 868 868 if (out2 != NULL) { … … 875 875 // doesn't stop, if the input parameter stats is null. 876 876 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); 878 878 879 879 if (out2 != NULL) { … … 889 889 psLogMsg(__func__,PS_LOG_INFO,"Following should be an error."); 890 890 stats.options = 0; 891 out2 = psImageRebin(NULL,in, 1,&stats);891 out2 = psImageRebin(NULL,in,NULL,0,1,&stats); 892 892 893 893 if (out2 != NULL) { … … 899 899 psLogMsg(__func__,PS_LOG_INFO,"Following should be an error."); 900 900 stats.options = PS_STAT_USE_RANGE; 901 out2 = psImageRebin(NULL,in, 1,&stats);901 out2 = psImageRebin(NULL,in,NULL,0,1,&stats); 902 902 903 903 if (out2 != NULL) { … … 912 912 psLogMsg(__func__,PS_LOG_INFO,"Following should be an error."); 913 913 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); 915 915 916 916 if (out2 != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
