Changeset 1404 for trunk/psLib/test/image
- Timestamp:
- Aug 6, 2004, 11:50:14 AM (22 years ago)
- Location:
- trunk/psLib/test/image
- Files:
-
- 5 edited
-
tst_psImageExtraction.c (modified) (13 diffs)
-
verified/tst_psImage.stderr (modified) (3 diffs)
-
verified/tst_psImageFFT.stderr (modified) (1 diff)
-
verified/tst_psImageManip.stderr (modified) (7 diffs)
-
verified/tst_psImageStats01.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageExtraction.c
r1364 r1404 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-08-0 2 18:30:10$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-06 21:50:14 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 } 28 28 }; 29 29 30 30 int main( int argc, char* argv[] ) 31 31 { … … 41 41 psVector* out = NULL; 42 42 psImage* image = psImageAlloc( c, r, PS_TYPE_F32 ); 43 psVector* positions = psVectorAlloc( r, PS_TYPE_U32 ); 43 44 psImage* mask = psImageAlloc( c, r, PS_TYPE_MASK ); 44 45 psStats* stat = psStatsAlloc( PS_STAT_SAMPLE_MEDIAN ); 45 46 46 47 /* 47 48 This function shall extract pixels from a specified region of a psImage 48 49 structure into a vector using a specified statistical method. 49 50 50 51 Verify the returned psVector structure contains expected data, if the 51 52 input psImage input has known data and the psStats structure specifies … … 57 58 58 59 */ 59 60 60 61 for ( int row = 0;row < r;row++ ) { 61 psF32* imageRow = image->data.F32[ row ]; 62 psMaskType* maskRow = image->data.V[ row ]; 63 psF32 rowOffset = ( psF32 ) row / ( psF32 ) r; 64 for ( int col = 0;col < c;col++ ) { 65 imageRow[ col ] = ( psF32 ) col + rowOffset; 66 maskRow[ col ] = 0; 67 } 62 psF32* imageRow = image->data.F32[ row ]; 63 psMaskType* maskRow = image->data.V[ row ]; 64 psF32 rowOffset = ( psF32 ) row / ( psF32 ) r; 65 for ( int col = 0;col < c;col++ ) { 66 imageRow[ col ] = ( psF32 ) col + rowOffset; 67 maskRow[ col ] = 0; 68 68 } 69 69 } 70 70 71 // test MxN case 71 72 72 73 #define PSIMAGESLICE_TEST1(M,N,DIRECTION,TRUTH_SIZE,TRUTHPIX_X,TRUTHPIX_Y,TESTNUM) \ 73 out = psImageSlice(out, image,mask,1,c/10,r/10,M,N,DIRECTION,stat); \74 out = psImageSlice(out,positions,image,mask,1,c/10,r/10,M,N,DIRECTION,stat); \ 74 75 \ 75 76 if (out->n != TRUTH_SIZE) { \ 76 psError(__func__,"Number of results is wrong (%d, not %d)", \ 77 out->n,n); \ 78 return TESTNUM*2+1; \ 79 } \ 77 psError(__func__,"Number of results is wrong (%d, not %d)", \ 78 out->n,n); \ 79 return TESTNUM*4+1; \ 80 } \ 81 \ 82 if (positions->n != TRUTH_SIZE) { \ 83 psError(__func__,"Number of results for positions vector is wrong (%d, not %d)", \ 84 out->n,n); \ 85 return TESTNUM*4+2; \ 86 } \ 80 87 \ 81 88 for (int i=0;i<out->n;i++) { \ 82 if (abs(out->data.F64[i]-image->data.F32[r/10+TRUTHPIX_Y][c/10+TRUTHPIX_X]) > 1.0/(psF32)r) { \ 83 psError(__func__,"Improper result at position %d.",i); \ 84 return TESTNUM*2+2; \ 85 } \ 86 } 87 89 if (abs(out->data.F64[i]-image->data.F32[r/10+TRUTHPIX_Y][c/10+TRUTHPIX_X]) > 1.0/(psF32)r) { \ 90 psError(__func__,"Improper result at position %d.",i); \ 91 return TESTNUM*4+3; \ 92 } \ 93 if (DIRECTION == PS_CUT_X_POS || DIRECTION == PS_CUT_X_NEG) { \ 94 if (positions->data.U32[i] != c/10+TRUTHPIX_X) { \ 95 psError(__func__,"Improper postions result @ %d.",i); \ 96 return TESTNUM*4+4; \ 97 } \ 98 } else { \ 99 if (positions->data.U32[i] != r/10+TRUTHPIX_Y) { \ 100 psError(__func__,"Improper postions result @ %d.",i); \ 101 return TESTNUM*4+4; \ 102 } \ 103 } \ 104 } 105 88 106 // test MxN case 89 107 PSIMAGESLICE_TEST1( m, n, PS_CUT_X_POS, m, i, n / 2, 0 ); … … 91 109 PSIMAGESLICE_TEST1( m, n, PS_CUT_Y_POS, n, m / 2, i, 2 ); 92 110 PSIMAGESLICE_TEST1( m, n, PS_CUT_Y_NEG, n, m / 2, n - 1 - i, 3 ); 93 111 94 112 // test Mx1 case 95 113 PSIMAGESLICE_TEST1( m, 1, PS_CUT_X_POS, m, i, 0, 4 ); … … 97 115 PSIMAGESLICE_TEST1( m, 1, PS_CUT_Y_POS, 1, m / 2, 0, 6 ); 98 116 PSIMAGESLICE_TEST1( m, 1, PS_CUT_Y_NEG, 1, m / 2, 0, 7 ); 99 117 100 118 // test 1xN case 101 119 PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_POS, 1, 0, n / 2, 8 ); … … 103 121 PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_POS, n, 0, n - 1 - i, 10 ); 104 122 PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_NEG, n, 0, n - 1 - i, 11 ); 105 123 106 124 // test 1x1 case 107 125 PSIMAGESLICE_TEST1( 1, 1, PS_CUT_X_POS, 1, 0, 0, 12 ); … … 109 127 PSIMAGESLICE_TEST1( 1, 1, PS_CUT_Y_POS, 1, 0, 0, 14 ); 110 128 PSIMAGESLICE_TEST1( 1, 1, PS_CUT_Y_NEG, 1, 0, 0, 15 ); 111 129 112 130 /* 113 131 Verify the returned psVector structure pointer is null and program 114 132 execution doesn't stop, if input psImage input is null. 115 116 */ 117 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 118 out = psImageSlice( out, NULL, NULL, 0, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );119 if ( out != NULL ) { 120 psError( __func__, "Giving a NULL image, psImageSlice didn't return NULL as expected" );121 return 41;122 }123 124 133 134 */ 135 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 136 out = psImageSlice( out, NULL, NULL, NULL, 0, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat ); 137 if ( out != NULL ) { 138 psError( __func__, "Giving a NULL image, psImageSlice didn't return NULL as expected" ); 139 return 101; 140 } 141 142 125 143 /* 126 144 Verify the returned psVector structure pointer is null and program … … 128 146 */ 129 147 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 130 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, NULL );131 if ( out != NULL ) { 132 psError( __func__, "Giving a NULL stat struct, psImageSlice didn't return NULL as expected" );133 return 42;134 }135 136 /* 137 148 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, NULL ); 149 if ( out != NULL ) { 150 psError( __func__, "Giving a NULL stat struct, psImageSlice didn't return NULL as expected" ); 151 return 102; 152 } 153 154 /* 155 138 156 Verify the returned psVector structure pointer is null and program 139 157 executions doesn't stop, if the input direction is not set to one of … … 141 159 */ 142 160 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 143 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, 5, stat );144 if ( out != NULL ) { 145 psError( __func__, "Giving a bogus direction flag, psImageSlice didn't return NULL as expected" );146 return 43;147 }148 161 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, 5, stat ); 162 if ( out != NULL ) { 163 psError( __func__, "Giving a bogus direction flag, psImageSlice didn't return NULL as expected" ); 164 return 103; 165 } 166 149 167 /* 150 168 Verify the returned psVector structure pointer is null and program … … 152 170 */ 153 171 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 154 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 0, 0, PS_CUT_X_POS, stat );155 if ( out != NULL ) { 156 psError( __func__, "Giving a 0x0 region, psImageSlice didn't return NULL as expected" );157 return 44;158 }159 172 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 0, 0, PS_CUT_X_POS, stat ); 173 if ( out != NULL ) { 174 psError( __func__, "Giving a 0x0 region, psImageSlice didn't return NULL as expected" ); 175 return 104; 176 } 177 160 178 /* 161 179 Verify the returned psVector structure pointer is null and program … … 164 182 */ 165 183 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 166 out = psImageSlice( out, image, mask, 1, c + 1, r / 10, 1, 1, PS_CUT_X_POS, stat );167 if ( out != NULL ) { 168 psError( __func__, "Giving an invalid x position, psImageSlice didn't return NULL as expected" );169 return 45;170 }171 172 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 173 out = psImageSlice( out, image, mask, 1, c / 10, r + 1, 1, 1, PS_CUT_X_POS, stat );174 if ( out != NULL ) { 175 psError( __func__, "Giving an invalid y position, psImageSlice didn't return NULL as expected" );176 return 46;177 }178 179 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 180 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, c, 1, PS_CUT_X_POS, stat );181 if ( out != NULL ) { 182 psError( __func__, "Giving an invalid numCols, psImageSlice didn't return NULL as expected" );183 return 47;184 }185 186 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 187 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, r, PS_CUT_X_POS, stat );188 if ( out != NULL ) { 189 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );190 return 48;191 }192 184 out = psImageSlice( out, NULL, image, mask, 1, c + 1, r / 10, 1, 1, PS_CUT_X_POS, stat ); 185 if ( out != NULL ) { 186 psError( __func__, "Giving an invalid x position, psImageSlice didn't return NULL as expected" ); 187 return 105; 188 } 189 190 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 191 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r + 1, 1, 1, PS_CUT_X_POS, stat ); 192 if ( out != NULL ) { 193 psError( __func__, "Giving an invalid y position, psImageSlice didn't return NULL as expected" ); 194 return 106; 195 } 196 197 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 198 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, c, 1, PS_CUT_X_POS, stat ); 199 if ( out != NULL ) { 200 psError( __func__, "Giving an invalid numCols, psImageSlice didn't return NULL as expected" ); 201 return 107; 202 } 203 204 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 205 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, r, PS_CUT_X_POS, stat ); 206 if ( out != NULL ) { 207 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" ); 208 return 108; 209 } 210 193 211 /* 194 212 Verify the returned psVector structure pointer is null and program … … 198 216 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 199 217 stat->options = 0; 200 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );201 if ( out != NULL ) { 202 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );203 return 49;204 }205 218 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat ); 219 if ( out != NULL ) { 220 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" ); 221 return 109; 222 } 223 206 224 psFree( image ); 225 psFree( positions ); 207 226 psFree( mask ); 208 227 psFree( out ); 209 228 psFree( stat ); 210 229 211 230 return 0; 212 231 213 232 } 214 233 215 216 217 218 219 220 221 -
trunk/psLib/test/image/verified/tst_psImage.stderr
r1212 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|I| testImageAlloc|#546 - psImageAlloc shall allocate memory for a psImage structure8 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 101h9 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).10 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 102h11 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).12 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 104h13 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).14 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 108h15 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).16 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 301h17 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).18 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 302h19 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).20 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 304h21 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).22 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 308h23 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).24 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 404h25 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).26 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 408h27 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).28 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 808h29 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).30 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 810h31 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).7 <DATE><TIME>|<HOST>|I| testImageAlloc|#546 - psImageAlloc shall allocate memory for a psImage structure 8 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 101h 9 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 10 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 102h 11 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 12 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 104h 13 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 14 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 108h 15 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 16 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 301h 17 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 18 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 302h 19 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 20 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 304h 21 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 22 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 308h 23 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 24 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 404h 25 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 26 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 408h 27 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 28 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 808h 29 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 30 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 810h 31 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 32 32 33 33 ---> TESTPOINT PASSED (psImage{psImageAlloc} | tst_psImage.c) … … 39 39 \**********************************************************************************/ 40 40 41 <DATE> <TIME>|<HOST>|I|testImageSubset|memcpy(&preSubsetStruct,original,sizeof(psImage));42 <DATE> <TIME>|<HOST>|I|testImageSubset|subset1 = psImageAlloc(c/4,r/4,PS_TYPE_U8);43 <DATE> <TIME>|<HOST>|I|testImageSubset|subset2 = psImageSubset(subset1,original,c/2,r/2,c/4,r/4);44 <DATE> <TIME>|<HOST>|I|testImageSubset|subset3 = psImageSubset(NULL,original,c/2,r/2,0,0);45 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure is equal to the input psImage structure parameter out, if input parameter out is specified.46 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify a new psImage structure is created, if input parameter out is set to null.47 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure contains expected values in the row member, if the input psImage structure image contains known values.48 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members nrow and ncol are equal to the input parameter nrow and ncol respectively.49 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member type is equal to the input psImage structure member type.50 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members row0 and col0 are equal to the input parameters row0 and col0 respectively.51 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member parent is equal to the input psImage structure pointer image.52 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member Nchildren is equal to zero.53 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member children is null.54 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the input psImage structure image only has the following members changed: 1) Nchildren is increased by one. 2) parent contains pointer psImage structure out at parent[Nchildren-1].55 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameter image is null. Also verified the input psImage structure is not modified.56 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...57 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because input image or its pixel buffer is NULL.58 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters nrow and/or ncol are zero. Also verify input psImage structure is not modified.59 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...60 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (64x0).61 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...62 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (0x128).63 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters row0 and col0 are not within the range of values of psImage structure image.64 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...65 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (128,0) is not a valid pixel location.66 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...67 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,256) is not a valid pixel location.68 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...69 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (-1,0) is not a valid pixel location.70 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...71 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,-1) is not a valid pixel location.72 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop if the input parameters nrow, ncol, row0 and col0 specify a range of data not within the input psImage structure image. Also verify the input psImage structure is not modified.73 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...74 <DATE> <TIME> |<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:128,0:128]).75 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...76 <DATE> <TIME> |<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[0:64,128:256]).77 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...78 <DATE> <TIME> |<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:128,128:256]).79 <DATE> <TIME>|<HOST>|I|testImageSubset|psImageFreeChildren shall deallocate any children images of a psImage structure41 <DATE><TIME>|<HOST>|I|testImageSubset|memcpy(&preSubsetStruct,original,sizeof(psImage)); 42 <DATE><TIME>|<HOST>|I|testImageSubset|subset1 = psImageAlloc(c/4,r/4,PS_TYPE_U8); 43 <DATE><TIME>|<HOST>|I|testImageSubset|subset2 = psImageSubset(subset1,original,c/2,r/2,c/4,r/4); 44 <DATE><TIME>|<HOST>|I|testImageSubset|subset3 = psImageSubset(NULL,original,c/2,r/2,0,0); 45 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure is equal to the input psImage structure parameter out, if input parameter out is specified. 46 <DATE><TIME>|<HOST>|I|testImageSubset|Verify a new psImage structure is created, if input parameter out is set to null. 47 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure contains expected values in the row member, if the input psImage structure image contains known values. 48 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members nrow and ncol are equal to the input parameter nrow and ncol respectively. 49 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member type is equal to the input psImage structure member type. 50 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members row0 and col0 are equal to the input parameters row0 and col0 respectively. 51 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member parent is equal to the input psImage structure pointer image. 52 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member Nchildren is equal to zero. 53 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member children is null. 54 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the input psImage structure image only has the following members changed: 1) Nchildren is increased by one. 2) parent contains pointer psImage structure out at parent[Nchildren-1]. 55 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameter image is null. Also verified the input psImage structure is not modified. 56 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 57 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because input image or its pixel buffer is NULL. 58 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters nrow and/or ncol are zero. Also verify input psImage structure is not modified. 59 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 60 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (64x0). 61 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 62 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (0x128). 63 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters row0 and col0 are not within the range of values of psImage structure image. 64 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 65 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (128,0) is not a valid pixel location. 66 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 67 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,256) is not a valid pixel location. 68 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 69 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (-1,0) is not a valid pixel location. 70 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 71 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,-1) is not a valid pixel location. 72 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop if the input parameters nrow, ncol, row0 and col0 specify a range of data not within the input psImage structure image. Also verify the input psImage structure is not modified. 73 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 74 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:<LINENO>,0:<LINENO>]). 75 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 76 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[0:<LINENO>,128:<LINENO>]). 77 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 78 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:<LINENO>,128:<LINENO>]). 79 <DATE><TIME>|<HOST>|I|testImageSubset|psImageFreeChildren shall deallocate any children images of a psImage structure 80 80 81 81 ---> TESTPOINT PASSED (psImage{psImageSubset} | tst_psImage.c) … … 87 87 \**********************************************************************************/ 88 88 89 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU890 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU1691 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU3292 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS893 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS1694 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS3295 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF3296 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF6497 <DATE> <TIME>|<HOST>|I| testImageCopy|An error should follow...98 <DATE> <TIME>|<HOST>|E| psImageCopy|Can not copy image because input image or its pixel buffer is NULL.89 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU8 90 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU16 91 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU32 92 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS8 93 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS16 94 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS32 95 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF32 96 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF64 97 <DATE><TIME>|<HOST>|I| testImageCopy|An error should follow... 98 <DATE><TIME>|<HOST>|E| psImageCopy|Can not copy image because input image or its pixel buffer is NULL. 99 99 100 100 ---> TESTPOINT PASSED (psImage{psImageCopy} | tst_psImage.c) -
trunk/psLib/test/image/verified/tst_psImageFFT.stderr
r1221 r1404 23 23 \**********************************************************************************/ 24 24 25 <DATE> <TIME>|<HOST>|I|testImageComple|Following should be an error (type mismatch).26 <DATE> <TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same type.27 <DATE> <TIME>|<HOST>|I|testImageComple|Following should be an error (size mismatch).28 <DATE> <TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same dimensions.25 <DATE><TIME>|<HOST>|I|testImageComple|Following should be an error (type mismatch). 26 <DATE><TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same type. 27 <DATE><TIME>|<HOST>|I|testImageComple|Following should be an error (size mismatch). 28 <DATE><TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same dimensions. 29 29 30 30 ---> TESTPOINT PASSED (psFFT{psImageComplex} | tst_psImageFFT.c) -
trunk/psLib/test/image/verified/tst_psImageManip.stderr
r1358 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|I| testImageClip|psImageClip shall limit the minimum and maximum data value within a psImage structure8 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of F64 imagery9 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of F32 imagery10 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of S32 imagery11 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of S16 imagery12 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of S8 imagery13 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of U32 imagery14 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of U16 imagery15 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of U8 imagery16 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of C32 imagery17 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of C64 imagery18 <DATE> <TIME>|<HOST>|I| testImageClip|Following should be an error (max<min)19 <DATE> <TIME>|<HOST>|E| psImageClip|psImageClip can not be invoked with max < min.7 <DATE><TIME>|<HOST>|I| testImageClip|psImageClip shall limit the minimum and maximum data value within a psImage structure 8 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of F64 imagery 9 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of F32 imagery 10 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of S32 imagery 11 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of S16 imagery 12 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of S8 imagery 13 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of U32 imagery 14 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of U16 imagery 15 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of U8 imagery 16 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of C32 imagery 17 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of C64 imagery 18 <DATE><TIME>|<HOST>|I| testImageClip|Following should be an error (max<min) 19 <DATE><TIME>|<HOST>|E| psImageClip|psImageClip can not be invoked with max < min. 20 20 21 21 ---> TESTPOINT PASSED (psImage{psImageClip} | tst_psImageManip.c) … … 27 27 \**********************************************************************************/ 28 28 29 <DATE> <TIME>|<HOST>|I|testImageClipNA|psImageClipNaN shall modified pixel values of NaN with a specified value29 <DATE><TIME>|<HOST>|I|testImageClipNA|psImageClipNaN shall modified pixel values of NaN with a specified value 30 30 31 31 ---> TESTPOINT PASSED (psImage{psImageClipNAN} | tst_psImageManip.c) … … 37 37 \**********************************************************************************/ 38 38 39 <DATE> <TIME>|<HOST>|I|testImageClipCo|psImageClipNaN shall modified pixel values of NaN with a specified value40 <DATE> <TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC3241 <DATE> <TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC6442 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:43 <DATE> <TIME>|<HOST>|E|psImageClipComp|Can not perform clip on NULL image44 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:45 <DATE> <TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.46 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:47 <DATE> <TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the imaginary image space.48 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:49 <DATE> <TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.50 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:51 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (-6.80565e+38+0i) is outside of image's psC32 pixel range52 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:53 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (6.80565e+38+0i) is outside of image's psC32 pixel range54 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:55 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (-0-6.80565e+38i) is outside of image's psC32 pixel range56 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:57 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (0+6.80565e+38i) is outside of image's psC32 pixel range58 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:59 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (-6.80565e+38+0i) is outside of image's psC32 pixel range60 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:61 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (6.80565e+38+0i) is outside of image's psC32 pixel range62 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:63 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (-0-6.80565e+38i) is outside of image's psC32 pixel range64 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:65 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (0+6.80565e+38i) is outside of image's psC32 pixel range39 <DATE><TIME>|<HOST>|I|testImageClipCo|psImageClipNaN shall modified pixel values of NaN with a specified value 40 <DATE><TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC32 41 <DATE><TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC64 42 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 43 <DATE><TIME>|<HOST>|E|psImageClipComp|Can not perform clip on NULL image 44 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 45 <DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space. 46 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 47 <DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the imaginary image space. 48 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 49 <DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space. 50 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 51 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (-6.80565e+38+0i) is outside of image's psC32 pixel range 52 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 53 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (6.80565e+38+0i) is outside of image's psC32 pixel range 54 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 55 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (-0-6.80565e+38i) is outside of image's psC32 pixel range 56 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 57 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (0+6.80565e+38i) is outside of image's psC32 pixel range 58 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 59 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (-6.80565e+38+0i) is outside of image's psC32 pixel range 60 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 61 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (6.80565e+38+0i) is outside of image's psC32 pixel range 62 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 63 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (-0-6.80565e+38i) is outside of image's psC32 pixel range 64 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 65 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (0+6.80565e+38i) is outside of image's psC32 pixel range 66 66 67 67 ---> TESTPOINT PASSED (psImage{psImageClipComplexRegion} | tst_psImageManip.c) … … 73 73 \**********************************************************************************/ 74 74 75 <DATE> <TIME>|<HOST>|I|testImageOverla|Following should error as overlay isn't within image boundaries76 <DATE> <TIME>|<HOST>|E|psImageOverlayS|Overlay image (32,64 -> 159,319) is partially outside of the input image (128 x 256).77 <DATE> <TIME>|<HOST>|I|testImageOverla|Following should error as overlay is NULL78 <DATE> <TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL.79 <DATE> <TIME>|<HOST>|I|testImageOverla|Following should error as image input is NULL80 <DATE> <TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL.75 <DATE><TIME>|<HOST>|I|testImageOverla|Following should error as overlay isn't within image boundaries 76 <DATE><TIME>|<HOST>|E|psImageOverlayS|Overlay image (32,64 -> 159,319) is partially outside of the input image (128 x 256). 77 <DATE><TIME>|<HOST>|I|testImageOverla|Following should error as overlay is NULL 78 <DATE><TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL. 79 <DATE><TIME>|<HOST>|I|testImageOverla|Following should error as image input is NULL 80 <DATE><TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL. 81 81 82 82 ---> TESTPOINT PASSED (psImage{psImageOverlay} | tst_psImageManip.c) … … 88 88 \**********************************************************************************/ 89 89 90 <DATE> <TIME>|<HOST>|E| psImageRebin|Input image is NULL.91 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.92 <DATE> <TIME>|<HOST>|E| psImageRebin|The scale must be positive.93 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.94 <DATE> <TIME>|<HOST>|E| psImageRebin|The stats input can not be NULL.95 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.96 <DATE> <TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type.97 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.98 <DATE> <TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type.99 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.100 <DATE> <TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type.90 <DATE><TIME>|<HOST>|E| psImageRebin|Input image is NULL. 91 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 92 <DATE><TIME>|<HOST>|E| psImageRebin|The scale must be positive. 93 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 94 <DATE><TIME>|<HOST>|E| psImageRebin|The stats input can not be NULL. 95 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 96 <DATE><TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type. 97 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 98 <DATE><TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type. 99 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 100 <DATE><TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type. 101 101 102 102 ---> TESTPOINT PASSED (psImage{psImageRebin} | tst_psImageManip.c) … … 108 108 \**********************************************************************************/ 109 109 110 <DATE> <TIME>|<HOST>|I| testImageRoll|Following should generate an error.111 <DATE> <TIME>|<HOST>|E| psImageRoll|Input image can not be NULL.110 <DATE><TIME>|<HOST>|I| testImageRoll|Following should generate an error. 111 <DATE><TIME>|<HOST>|E| psImageRoll|Input image can not be NULL. 112 112 113 113 ---> TESTPOINT PASSED (psImage{psImageRoll} | tst_psImageManip.c) … … 119 119 \**********************************************************************************/ 120 120 121 <DATE> <TIME>|<HOST>|I|testImageRotate|Following should be an error122 <DATE> <TIME>|<HOST>|E| psImageRotate|The input image was NULL.121 <DATE><TIME>|<HOST>|I|testImageRotate|Following should be an error 122 <DATE><TIME>|<HOST>|E| psImageRotate|The input image was NULL. 123 123 124 124 ---> TESTPOINT PASSED (psImage{psImageRotate} | tst_psImageManip.c) -
trunk/psLib/test/image/verified/tst_psImageStats01.stderr
r1365 r1404 1 <DATE> <TIME>|<HOST>|E| psImageStats|The input image can not be NULL.2 <DATE> <TIME>|<HOST>|E| psImageStats|The input psStats struct can not be NULL.3 <DATE> <TIME>|<HOST>|E| psImageStats|No statistic option/operation was specified.1 <DATE><TIME>|<HOST>|E| psImageStats|The input image can not be NULL. 2 <DATE><TIME>|<HOST>|E| psImageStats|The input psStats struct can not be NULL. 3 <DATE><TIME>|<HOST>|E| psImageStats|No statistic option/operation was specified.
Note:
See TracChangeset
for help on using the changeset viewer.
