next up previous index
Next: SHIFT: Shift an Image Up: Basic Image Processing Previous: FLIP: Change the Orientation   Index

BIN: Compress (bin) an Image or Spectrum


\begin{command}
\item[\textbf{Form: }BIN source {[BIN=b]} {[BINR=br]} {[BINC=bc...
...'}
\item[NORM]{output is average of pixel values instead of sum.}
\end{command}

BIN compresses images by integer factors. Adjacent pixels are added together.

Use BIN= to specify a single compression factor for both rows and columns, or use BINR and BINC to specify the compression for rows and columns individually. For spectra, just use BIN. Note that
\begin{example}
\item[BINR\hfill]{gives the amount by which rows or compressed....
...tens each column, thus producing an image
with fewer rows in it.}
\end{example}

NORM makes the program AVERAGE adjacent pixels when compressing the image, instead of the default summing of pixel intensities.

BSR and BSC specify the starting row and column, respectively, of the region being saved. These are pixel locations in the original image. They are used to compress and save only part of an image.

The output image ALWAYS has starting row 0 and starting column 0. It does not make sense to use BIN on a wavelength-calibrated spectrum.

Examples:
\begin{example}
\item[BIN 4 BIN=2\hfill]{compresses image 4 by a factor of 2
i...
...xels
before row 200 and column 400 are
dropped from the image.}
\end{example}



Jon Holtzman 2002-02-13