Changeset 21107 for trunk/psLib/src/imageops/psImageBinning.h
- Timestamp:
- Jan 12, 2009, 2:54:26 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageBinning.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageBinning.h
r15377 r21107 8 8 * @author Eugene Magnier, IfA 9 9 * 10 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $11 * @date $Date: 200 7-10-25 20:35:50$10 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2009-01-13 00:54:26 $ 12 12 * 13 13 * Copyright 2007 Institute for Astronomy, University of Hawaii … … 23 23 // image. binning is defined for a specific input size and output image size. 24 24 typedef struct { 25 int nXfine; // width of the hi-res image26 int nYfine; // height of the hi-res image27 int nXruff; // width of the lo-res image28 int nYruff; // height of the lo-res image29 int nXbin; // X binning factor (~ nXfine/nXruff)30 int nYbin; // Y binning factor (~ nYfine/nYruff)31 int nXoff; // offset in fine pixels to start of ruff 0 pixel (x_fine - nXoff) / nXbin = x_ruff32 int nYoff; // offset in fine pixels to start of ruff 0 pixel (x_fine - nXoff) / nXbin = x_ruff33 int nXskip; // offset in fine pixels from start of fine parent 0 pixel to ruff 0 pixel (nXskip = col0 - nXoff)34 int nYskip; // offset in fine pixels from start of fine parent 0 pixel to ruff 0 pixel (nYskip = row0 - nYoff)25 int nXfine; // width of the hi-res image 26 int nYfine; // height of the hi-res image 27 int nXruff; // width of the lo-res image 28 int nYruff; // height of the lo-res image 29 int nXbin; // X binning factor (~ nXfine/nXruff) 30 int nYbin; // Y binning factor (~ nYfine/nYruff) 31 int nXoff; // offset in fine pixels to start of ruff 0 pixel (x_fine - nXoff) / nXbin = x_ruff 32 int nYoff; // offset in fine pixels to start of ruff 0 pixel (x_fine - nXoff) / nXbin = x_ruff 33 int nXskip; // offset in fine pixels from start of fine parent 0 pixel to ruff 0 pixel (nXskip = col0 - nXoff) 34 int nYskip; // offset in fine pixels from start of fine parent 0 pixel to ruff 0 pixel (nYskip = row0 - nYoff) 35 35 } psImageBinning; 36 36 … … 48 48 void psImageBinningSetFineSize(psImageBinning *binning, psImageBinningAlign align); 49 49 void psImageBinningSetScale(psImageBinning *binning, psImageBinningAlign align); 50 void psImageBinningSetSkip(psImageBinning *binning, psImage *image);50 void psImageBinningSetSkip(psImageBinning *binning, const psImage *image); 51 51 void psImageBinningSetSkipByOffset(psImageBinning *binning, int col0, int row0); 52 52
Note:
See TracChangeset
for help on using the changeset viewer.
