Changeset 2951
- Timestamp:
- Jan 10, 2005, 3:30:16 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/tst_pmMaskBadPixels.c (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/tst_pmMaskBadPixels.c
r2158 r2951 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $20 * @date $Date: 200 4-10-15 21:08:04$19 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2005-01-11 01:30:16 $ 21 21 * 22 22 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 96 96 CREATE_AND_SET_IMAGE(inImage1,F64,0,50,50); 97 97 CREATE_AND_SET_IMAGE(mask1,U8,0,50,50) 98 psReadout *inReadout = psReadoutAlloc(0, 0, inImage1); 98 // psReadout *inReadout = psReadoutAlloc(0, 0, inImage1); 99 psReadout *inReadout = psReadoutAlloc(); 100 inReadout->image = inImage1; 99 101 mask1->data.PS_TYPE_MASK_DATA[24][24]=1; 100 102 PRINT_MATRIX(mask1, U8, "Data mask:"); … … 112 114 CREATE_AND_SET_IMAGE(inImage2,F64,150.0,50,50); 113 115 CREATE_AND_SET_IMAGE(mask2,U8,0,50,50) 114 psReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2); 116 // psReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2); 117 psReadout *inReadout2 = psReadoutAlloc(); 118 inReadout2->image = inImage2; 115 119 PRINT_MATRIX(mask2, U8, "Data mask:"); 116 120 pmMaskBadPixels(inReadout2, mask2, 0, 100.0, 0, 0); … … 127 131 CREATE_AND_SET_IMAGE(inImage3,F64,50.0,50,50); 128 132 CREATE_AND_SET_IMAGE(mask3,U8,0,50,50) 129 psReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3); 133 // psReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3); 134 psReadout *inReadout3 = psReadoutAlloc(); 135 inReadout3->image = inImage3; 130 136 mask3->data.PS_TYPE_MASK_DATA[24][24]=1; 131 137 mask3->data.PS_TYPE_MASK_DATA[4][3]=1; … … 146 152 CREATE_AND_SET_IMAGE(mask4,U8,0,50,50) 147 153 CREATE_AND_SET_IMAGE(mask4i,U8,0,50,50) 148 psReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4); 154 // psReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4); 155 psReadout *inReadout4 = psReadoutAlloc(); 156 inReadout4->image = inImage4; 149 157 inReadout4->mask = mask4i; 150 158 mask4->data.PS_TYPE_MASK_DATA[24][24]=1; … … 162 170 // Test E - Attempt to use null mask 163 171 CREATE_AND_SET_IMAGE(inImage5,F64,50.0,50,50); 164 psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5); 172 // psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5); 173 psReadout *inReadout5 = psReadoutAlloc(); 174 inReadout5->image = inImage5; 165 175 pmMaskBadPixels(inReadout5, NULL, 0, 100.0, 1, 10); 166 176 psFree(inReadout5); … … 173 183 // Test F - Attempt tp use null input image 174 184 CREATE_AND_SET_IMAGE(mask6,U8,0,50,50) 175 psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL); 185 // psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL); 186 psReadout *inReadout6 = psReadoutAlloc(); 176 187 inReadout6->mask = mask6; 177 188 pmMaskBadPixels(inReadout6, mask6, 0, 100.0, 1, 10); … … 187 198 CREATE_AND_SET_IMAGE(mask7,U8,0,50,50) 188 199 CREATE_AND_SET_IMAGE(mask7i,U8,0,50,50) 189 psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7); 200 // psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7); 201 psReadout *inReadout7 = psReadoutAlloc(); 202 inReadout7->image = inImage7; 190 203 inReadout7->mask = mask7i; 191 204 pmMaskBadPixels(inReadout7, mask7, 0, 100.0, 1, 10); … … 202 215 CREATE_AND_SET_IMAGE(mask8,U8,0,50,50) 203 216 CREATE_AND_SET_IMAGE(mask8i,U8,0,60,60) 204 psReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8); 217 // psReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8); 218 psReadout *inReadout8 = psReadoutAlloc(); 219 inReadout8->image = inImage8; 205 220 inReadout8->mask = mask8i; 206 221 pmMaskBadPixels(inReadout8, mask8, 0, 100.0, 1, 10); … … 217 232 CREATE_AND_SET_IMAGE(mask9,U8,0,50,50) 218 233 CREATE_AND_SET_IMAGE(mask9i,U8,0,50,50) 219 psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9); 234 // psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9); 235 psReadout *inReadout9 = psReadoutAlloc(); 236 inReadout9->image = inImage9; 220 237 inReadout9->mask = mask9i; 221 238 *(int*)&inReadout9->col0 = 150; … … 234 251 CREATE_AND_SET_IMAGE(mask10,U8,0,50,50) 235 252 CREATE_AND_SET_IMAGE(mask10i,U8,0,50,50) 236 psReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10); 253 // psReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10); 254 psReadout *inReadout10 = psReadoutAlloc(); 255 inReadout10->image = inImage10; 237 256 inReadout10->mask = mask10i; 238 257 pmMaskBadPixels(inReadout10, mask10, 0, 100.0, 1, 10); … … 249 268 CREATE_AND_SET_IMAGE(mask11,F64,0,50,50) 250 269 CREATE_AND_SET_IMAGE(mask11i,U8,0,50,50) 251 psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11); 270 // psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11); 271 psReadout *inReadout11 = psReadoutAlloc(); 272 inReadout11->image = inImage11; 252 273 inReadout11->mask = mask11i; 253 274 pmMaskBadPixels(inReadout11, mask11, 0, 100.0, 1, 10);
Note:
See TracChangeset
for help on using the changeset viewer.
