Changeset 4770 for trunk/psModules/test/tst_pmMaskBadPixels.c
- Timestamp:
- Aug 15, 2005, 3:10:36 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/tst_pmMaskBadPixels.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/tst_pmMaskBadPixels.c
r2951 r4770 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $20 * @date $Date: 2005-0 1-11 01:30:16 $19 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2005-08-16 01:10:36 $ 21 21 * 22 22 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 87 87 int main(int argc, char* argv[]) 88 88 { 89 psLogSetFormat("HLNM"); 89 90 return !runTestSuite(stderr, "Test Point Driver", tests, argc, argv); 90 91 } … … 96 97 CREATE_AND_SET_IMAGE(inImage1,F64,0,50,50); 97 98 CREATE_AND_SET_IMAGE(mask1,U8,0,50,50) 98 // p sReadout *inReadout = psReadoutAlloc(0, 0, inImage1);99 p sReadout *inReadout = psReadoutAlloc();99 // pmReadout *inReadout = pmReadoutAlloc(0, 0, inImage1); 100 pmReadout *inReadout = pmReadoutAlloc(NULL); 100 101 inReadout->image = inImage1; 101 102 mask1->data.PS_TYPE_MASK_DATA[24][24]=1; … … 114 115 CREATE_AND_SET_IMAGE(inImage2,F64,150.0,50,50); 115 116 CREATE_AND_SET_IMAGE(mask2,U8,0,50,50) 116 // p sReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2);117 p sReadout *inReadout2 = psReadoutAlloc();117 // pmReadout *inReadout2 = pmReadoutAlloc(0, 0, inImage2); 118 pmReadout *inReadout2 = pmReadoutAlloc(NULL); 118 119 inReadout2->image = inImage2; 119 120 PRINT_MATRIX(mask2, U8, "Data mask:"); … … 131 132 CREATE_AND_SET_IMAGE(inImage3,F64,50.0,50,50); 132 133 CREATE_AND_SET_IMAGE(mask3,U8,0,50,50) 133 // p sReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3);134 p sReadout *inReadout3 = psReadoutAlloc();134 // pmReadout *inReadout3 = pmReadoutAlloc(0, 0, inImage3); 135 pmReadout *inReadout3 = pmReadoutAlloc(NULL); 135 136 inReadout3->image = inImage3; 136 137 mask3->data.PS_TYPE_MASK_DATA[24][24]=1; … … 152 153 CREATE_AND_SET_IMAGE(mask4,U8,0,50,50) 153 154 CREATE_AND_SET_IMAGE(mask4i,U8,0,50,50) 154 // p sReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4);155 p sReadout *inReadout4 = psReadoutAlloc();155 // pmReadout *inReadout4 = pmReadoutAlloc(0, 0, inImage4); 156 pmReadout *inReadout4 = pmReadoutAlloc(NULL); 156 157 inReadout4->image = inImage4; 157 158 inReadout4->mask = mask4i; … … 170 171 // Test E - Attempt to use null mask 171 172 CREATE_AND_SET_IMAGE(inImage5,F64,50.0,50,50); 172 // p sReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5);173 p sReadout *inReadout5 = psReadoutAlloc();173 // pmReadout *inReadout5 = pmReadoutAlloc(0, 0, inImage5); 174 pmReadout *inReadout5 = pmReadoutAlloc(NULL); 174 175 inReadout5->image = inImage5; 175 176 pmMaskBadPixels(inReadout5, NULL, 0, 100.0, 1, 10); … … 183 184 // Test F - Attempt tp use null input image 184 185 CREATE_AND_SET_IMAGE(mask6,U8,0,50,50) 185 // p sReadout *inReadout6 = psReadoutAlloc(0, 0, NULL);186 p sReadout *inReadout6 = psReadoutAlloc();186 // pmReadout *inReadout6 = pmReadoutAlloc(0, 0, NULL); 187 pmReadout *inReadout6 = pmReadoutAlloc(NULL); 187 188 inReadout6->mask = mask6; 188 189 pmMaskBadPixels(inReadout6, mask6, 0, 100.0, 1, 10); … … 198 199 CREATE_AND_SET_IMAGE(mask7,U8,0,50,50) 199 200 CREATE_AND_SET_IMAGE(mask7i,U8,0,50,50) 200 // p sReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7);201 p sReadout *inReadout7 = psReadoutAlloc();201 // pmReadout *inReadout7 = pmReadoutAlloc(0, 0, inImage7); 202 pmReadout *inReadout7 = pmReadoutAlloc(NULL); 202 203 inReadout7->image = inImage7; 203 204 inReadout7->mask = mask7i; … … 215 216 CREATE_AND_SET_IMAGE(mask8,U8,0,50,50) 216 217 CREATE_AND_SET_IMAGE(mask8i,U8,0,60,60) 217 // p sReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8);218 p sReadout *inReadout8 = psReadoutAlloc();218 // pmReadout *inReadout8 = pmReadoutAlloc(0, 0, inImage8); 219 pmReadout *inReadout8 = pmReadoutAlloc(NULL); 219 220 inReadout8->image = inImage8; 220 221 inReadout8->mask = mask8i; … … 232 233 CREATE_AND_SET_IMAGE(mask9,U8,0,50,50) 233 234 CREATE_AND_SET_IMAGE(mask9i,U8,0,50,50) 234 // p sReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9);235 p sReadout *inReadout9 = psReadoutAlloc();235 // pmReadout *inReadout9 = pmReadoutAlloc(0, 0, inImage9); 236 pmReadout *inReadout9 = pmReadoutAlloc(NULL); 236 237 inReadout9->image = inImage9; 237 238 inReadout9->mask = mask9i; … … 251 252 CREATE_AND_SET_IMAGE(mask10,U8,0,50,50) 252 253 CREATE_AND_SET_IMAGE(mask10i,U8,0,50,50) 253 // p sReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10);254 p sReadout *inReadout10 = psReadoutAlloc();254 // pmReadout *inReadout10 = pmReadoutAlloc(0, 0, inImage10); 255 pmReadout *inReadout10 = pmReadoutAlloc(NULL); 255 256 inReadout10->image = inImage10; 256 257 inReadout10->mask = mask10i; … … 268 269 CREATE_AND_SET_IMAGE(mask11,F64,0,50,50) 269 270 CREATE_AND_SET_IMAGE(mask11i,U8,0,50,50) 270 // p sReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11);271 p sReadout *inReadout11 = psReadoutAlloc();271 // pmReadout *inReadout11 = pmReadoutAlloc(0, 0, inImage11); 272 pmReadout *inReadout11 = pmReadoutAlloc(NULL); 272 273 inReadout11->image = inImage11; 273 274 inReadout11->mask = mask11i;
Note:
See TracChangeset
for help on using the changeset viewer.
