next up previous index
Next: Basic Image Processing Up: Basic Image Analysis Previous: HISTOGRAM: Display a Histogram   Index

AXES: Compute the Centroid of an Object in an Image


\begin{command}
\item[\textbf{Form:}AXES source {[BOX=n]} {[SKY=s]} {[W=w1,w2]}...
...ption spectra.)}
\item[SILENT \hfill]{suppresses terminal output}
\end{command}

This command will find the centroid of an object within the specified box in the source image, or in the entire image if no box specifier is given. The centroid coordinates are loaded into VISTA variables AXR and AXC, and are also held in a common block for use by other routines. If the W= keyword is used, the wavelength of the centroid of the spectrum in the given interval is loaded into the variable WAVE.

The routine uses the highest pixel value on the box perimeter as a threshold value for the centroid, unless the SKY word is given, in which case the argument of the SKY word is taken as the threshold. The threshold is subtracted from each pixel in the box during the calculation.

The output of AXES can be redirected.

Examples:
\begin{example}
\item[AXES 3\hfill]{finds the centroid of the object in buffer ...
...]{does the same as the first example,
but does not print output.}
\end{example}


next up previous index
Next: Basic Image Processing Up: Basic Image Analysis Previous: HISTOGRAM: Display a Histogram   Index
Jon Holtzman 2002-02-13