Changeset 1944
- Timestamp:
- Oct 1, 2004, 5:12:25 PM (22 years ago)
- Location:
- trunk/psLib/test/image
- Files:
-
- 2 edited
-
tst_psImageStats01.c (modified) (2 diffs)
-
verified/tst_psImageStats01.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageStats01.c
r1811 r1944 89 89 "psImageStats functions", 90 90 "Calculate Sample Mean, no mask %d" ); 91 91 psStats* tmpStats = myStats; 92 92 myStats = psImageStats( myStats, tmpImage, NULL, 0 ); 93 if ( myStats != tmpStats ) { 94 printf("ERROR: input psStats not equal to return psStats\n"); 95 psAbort(__func__,"Failed input psStats equal to returned psStats"); 96 } 93 97 printf( "The sample mean was %.2f\n", myStats->sampleMean ); 94 98 … … 172 176 } 173 177 178 tmpImage = psImageAlloc( IMAGE_X_SIZE, IMAGE_Y_SIZE, PS_TYPE_F32); 179 tmpMask = psImageAlloc( IMAGE_X_SIZE, IMAGE_Y_SIZE, PS_TYPE_U32); 180 myStats = psStatsAlloc( PS_STAT_SAMPLE_MEAN ); 181 myStats2 = psImageStats( myStats, tmpImage, tmpMask, 0 ); 182 if ( myStats2 != NULL ) { 183 printf( "ERROR: psImageStats did not return null when mask is invalid type.\n"); 184 } 185 psFree(tmpImage); 186 psFree(tmpMask); 187 psFree(myStats); 188 psMemCheckCorruption(1); 189 memLeaks = psMemCheckLeaks(currentId,NULL,stderr); 190 if( memLeaks != 0 ) { 191 psAbort(__func__, "Memory Leaks! (%d leaks)", memLeaks); 192 } 193 174 194 printFooter( stdout, 175 195 "psImageStats functions", -
trunk/psLib/test/image/verified/tst_psImageStats01.stderr
r1840 r1944 5 5 <DATE><TIME>|<HOST>|E|psLib.image.psImageStats 6 6 Specified statistic option did not indicate any operation to perform. 7 <DATE><TIME>|<HOST>|E|psLib.image.psImageStats 8 Input psImage mask type, psU32, is not the supported mask datatype of psU8.
Note:
See TracChangeset
for help on using the changeset viewer.
