Changeset 21183 for trunk/psphot/src/psphotVisual.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotVisual.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotVisual.c
r20938 r21183 51 51 ALLOCATE (image.data2d[iy], float, image.Nx); 52 52 for (int ix = 0; ix < image.Nx; ix++) { 53 image.data2d[iy][ix] = inImage->data. U8[iy][ix];53 image.data2d[iy][ix] = inImage->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix]; 54 54 } 55 55 } … … 813 813 814 814 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 815 ps MaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels815 psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels 816 816 assert (maskVal); 817 817 … … 973 973 974 974 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 975 ps MaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels975 psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels 976 976 assert (maskVal); 977 977 … … 1097 1097 } 1098 1098 1099 bool psphotVisualPlotRadialProfile (int myKapa, pmSource *source, ps MaskType maskVal) {1099 bool psphotVisualPlotRadialProfile (int myKapa, pmSource *source, psImageMaskType maskVal) { 1100 1100 1101 1101 Graphdata graphdata; … … 1118 1118 for (int iy = 0; iy < source->pixels->numRows; iy++) { 1119 1119 for (int ix = 0; ix < source->pixels->numCols; ix++) { 1120 if (source->maskObj->data. U8[iy][ix]) {1120 if (source->maskObj->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix]) { 1121 1121 // rb->data.F32[nb] = hypot (ix + 0.5 - Xo, iy + 0.5 - Yo) ; 1122 1122 rb->data.F32[nb] = hypot (ix - Xo, iy - Yo) ; … … 1227 1227 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 1228 1228 bool status; 1229 ps MaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels1229 psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels 1230 1230 assert (maskVal); 1231 1231
Note:
See TracChangeset
for help on using the changeset viewer.
