Changeset 20580 for trunk/magic/remove/src
- Timestamp:
- Nov 7, 2008, 3:03:55 PM (18 years ago)
- Location:
- trunk/magic/remove/src
- Files:
-
- 2 edited
-
Makefile.simple (modified) (1 diff)
-
streaksremove.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/Makefile.simple
r20520 r20580 13 13 streaksremove: ${OBJECTS} 14 14 15 install: 15 install: streaksremove 16 16 cp streaksremove $(PSCONFDIR)/$(PSCONFIG)/bin 17 17 chmod 755 $(PSCONFDIR)/$(PSCONFIG)/bin/streaksremove -
trunk/magic/remove/src/streaksremove.c
r20573 r20580 1244 1244 excisePixel(streakFiles *sfiles, unsigned int x, unsigned int y, double newMaskValue) 1245 1245 { 1246 // we clip so that the streak calculation code doesn't have to 1247 if ((x < 0) || (x >= sfiles->inImage->numCols) || (y < 0) || (y >= sfiles->inImage->numRows)) { 1248 return; 1249 } 1250 1246 1251 double imageValue = psImageGet (sfiles->inImage->image, x, y); 1247 1252 psImageSet (sfiles->recImage->image, x, y, imageValue); … … 1316 1321 } 1317 1322 1323 // we clip so that the streak calculation code doesn't have to 1324 if ((cellCoord->x < 0) || (cellCoord->x >= sfiles->inImage->numCols) || 1325 (cellCoord->y < 0) || (cellCoord->y >= sfiles->inImage->numRows)) { 1326 return false; 1327 } 1328 1318 1329 cellToChip(&chipCoord, sfiles->astrom, cellCoord); 1330 1319 1331 1320 1332 return psImageGet(sfiles->warpedPixels, chipCoord.x, chipCoord.y) ? true : false;
Note:
See TracChangeset
for help on using the changeset viewer.
