next up previous index
Next: ROTATE: Rotate an Image Up: Basic Image Processing Previous: MERGE: Merge Overlapping Images   Index

WINDOW: Window (Crop) an Image to a Smaller Size


\begin{command}
\item[\textbf{Form: }WINDOW source BOX=n\hfill]{}
\item[source...
...ler.}
\item[BOX]{tells VISTA what part of the old image to save.}
\end{command}

WINDOW is used to trim (or ``crop'') an image or spectrum within a specified ``window''. The image in the 'source' buffer is replaced by the region enclosed within pre-defined BOX `n'. If the specified box extends beyond the edges of the image, WINDOW will do nothing. See BOX for defining regions of interest (boxes).

Example: Let image 7 have rows numbered 0-500 and columns numbered 0-500. We want to chop out a 100 by 100 image, with the first row of the new image at 100, and the first column at 200.
\begin{hanging}
\item{BOX 1 SR=100 SC=200 NR=100 NC=100}
\item{WIND 7 BOX=1}
\end{hanging}

Also see COPY.



Jon Holtzman 2002-02-13