public documents.sextractor_doc

[/] [measure_astromwin.tex] - Diff between revs 19 and 25

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 19 Rev 25
Line 1... Line 1...
\section{Windowed positional parameters}
\section{Windowed positional parameters}
\label{chap:winparam}
\label{chap:winparam}
Parameters measured within an object's isophotal limit are sensitive to
Parameters measured within an object's isophotal limit are sensitive to
two main factors: 1) changes in the detection threshold, which
two main factors: 1) changes in the detection \index{threshold} threshold, which
create a variable bias and 2) irregularities in the object's
create a variable bias and 2) irregularities in the object's
isophotal boundaries, which act as additional ``noise'' in the measurements.
isophotal \index{boundaries} boundaries, which act as additional ``noise'' in the measurements.
 
 
Measurements performed through a {\em window} function (an {\em envelope}) do
Measurements performed through a {\em \index{window} window} function (an {\em envelope}) do
not have such drawbacks. {\sc SExtractor} versions 2.4 and above implement
not have such drawbacks. {\sc SExtractor} versions 2.4 and above implement
``windowed'' versions for most of the measurements described in
``windowed'' versions for most of the measurements described in
\ref{chap:isoparam}:
\ref{chap:isoparam}:
 
 
{\small
{\small
\begin{tabular}{ll}
\begin{tabular}{ll}
Isophotal parameters & Equivalent windowed parameters \\
Isophotal parameters & Equivalent \index{window} \index{windowed} windowed parameters \\
\hline
\hline
{\tt X\_IMAGE}, {\tt Y\_IMAGE} &
{\tt X\_IMAGE}, {\tt Y\_IMAGE} &
{\tt XWIN\_IMAGE}, {\tt YWIN\_IMAGE}\\
{\tt XWIN\_IMAGE}, {\tt YWIN\_IMAGE}\\
{\tt ERRA\_IMAGE}, {\tt ERRB\_IMAGE}, {\tt ERRTHETA\_IMAGE} &
{\tt ERRA\_IMAGE}, {\tt ERRB\_IMAGE}, {\tt ERRTHETA\_IMAGE} &
{\tt ERRAWIN\_IMAGE}, {\tt ERRBWIN\_IMAGE}, {\tt ERRTHETAWIN\_IMAGE}\\
{\tt ERRAWIN\_IMAGE}, {\tt ERRBWIN\_IMAGE}, {\tt ERRTHETAWIN\_IMAGE}\\
Line 26... Line 26...
{\tt CXXWIN\_IMAGE}, {\tt CYYWIN\_IMAGE}, {\tt CXYWIN\_IMAGE}\\
{\tt CXXWIN\_IMAGE}, {\tt CYYWIN\_IMAGE}, {\tt CXYWIN\_IMAGE}\\
\hline
\hline
\end{tabular}}
\end{tabular}}
 
 
The computations involved are roughly  the same except that the pixel values are
The computations involved are roughly  the same except that the pixel values are
integrated within a circular Gaussian window as opposed to the object's
integrated within a circular Gaussian \index{window} window as opposed to the object's
isophotal footprint.
isophotal footprint.
The Gaussian window is scaled to each object; its FWHM is the diameter of the
The Gaussian \index{window} window is scaled to each object; its \index{FWHM} FWHM is the diameter of the
disk that contains half of the object flux ($d_{50}$). Note that in double-image
disk that contains half of the object flux ($d_{50}$). Note that in double-image
mode (\S\ref{chap:using}) the window is scaled based on the {\em measurement}
\index{mode} mode (\S\ref{chap:using}) the \index{window} window is scaled based on the {\em measurement}
image. \gam{Can we provide the precise sub-section for this?}
\index{image} image. \gam{Can we provide the precise sub-section for this?}
 
 
\subsection{Windowed centroid: {\tt XWIN}, {\tt YWIN}}
\subsection{Windowed \index{centroid} centroid: {\tt XWIN}, {\tt YWIN}}
\label{chap:wincent}
\label{chap:wincent}
This is an iterative process. The computation starts by initializing the
This is an iterative process. The computation starts by initializing the
windowed centroid coordinates $\overline{x_{\tt WIN}}^{(0)}$ and
\index{window} \index{windowed} windowed \index{centroid} centroid coordinates $\overline{x_{\tt WIN}}^{(0)}$ and
 $\overline{y_{\tt WIN}}^{(0)}$  to their basic $\overline{x}$ and $\overline{y}$
 $\overline{y_{\tt WIN}}^{(0)}$  to their basic $\overline{x}$ and $\overline{y}$
isophotal equivalents, respectively.
isophotal equivalents, respectively.
\gam{I understand that the notation {\tt XXX} describes a {\sc SExtractor}
\gam{I understand that the notation {\tt XXX} describes a {\sc SExtractor}
  parameter. But then, {\tt XWIN}$^{(t)}$ is abusive, since the output
  parameter. But then, {\tt XWIN}$^{(t)}$ is abusive, since the output
  parameter is only that of the last iteration. Otherwise, it might be
  parameter is only that of the last iteration. Otherwise, it might be
Line 74... Line 74...
The process stops when the change in position between two iterations is less
The process stops when the change in position between two iterations is less
than $2\times10^{-4}$ pixel, a condition which is generally achieved in about 3 to 5
than $2\times10^{-4}$ pixel, a condition which is generally achieved in about 3 to 5
iterations.
iterations.
 
 
Although the iterative nature of the processing slows down the processing \hide{a bit},
Although the iterative nature of the processing slows down the processing \hide{a bit},
it is recommended to use whenever possible windowed parameters instead of their
it is recommended to use whenever possible \index{window} \index{windowed} windowed parameters instead of their
isophotal equivalents, since the measurements they provide
isophotal equivalents, since the measurements they provide
are much more precise (Fig. \ref{fig:winpres}). The precision in centroiding
are much more precise (Fig. \ref{fig:winpres}). The precision in \index{centroid} centroiding
offered by {\tt XWIN\_IMAGE} and {\tt YWIN\_IMAGE} is actually very close to
offered by {\tt XWIN\_IMAGE} and {\tt YWIN\_IMAGE} is actually very close to
that of PSF-fitting on focused and properly sampled star images, and can also
that of \index{PSF} PSF-fitting on focused and properly sampled star \index{image} images, and can also
be applied to galaxies. It has been verified that for isolated,
be applied to galaxies. It has been verified that for isolated,
Gaussian-like PSFs, its accuracy is close to the theoretical limit set by
Gaussian-like \index{PSF} PSFs, its accuracy is close to the theoretical limit set by
image noise\footnote{see
\index{image} image noise\footnote{see
{\tt http://www.astromatic.net/forum/showthread.php?tid=581}}.
{\tt http://www.astromatic.net/forum/showthread.php?tid=581}}.
 
 
%------------------------------ Fig. winpres -----------------------------
%------------------------------ Fig. winpres -----------------------------
\begin{figure}[htbp]
\begin{figure}[htbp]
\centerline{\includegraphics[width=8cm]{ps/sex_xpres.ps}
\centerline{\includegraphics[width=8cm]{ps/sex_xpres.ps}
\includegraphics[width=8cm]{ps/sex_xw2pres.ps}}
\includegraphics[width=8cm]{ps/sex_xw2pres.ps}}
\caption{Comparison between isophotal and windowed centroid measurement
\caption{Comparison between isophotal and \index{window} \index{windowed} windowed \index{centroid} centroid measurement
accuracies on simulated, background noise-limited images.{\em Left}: histogram
accuracies on simulated, background noise-limited \index{image} images.{\em Left}: histogram
of the difference between {\tt X\_IMAGE} and the simulation centroid in x.
of the difference between {\tt X\_IMAGE} and the simulation \index{centroid} centroid in x.
{\em Right}: histogram of the difference between {\tt XWIN\_IMAGE} and the
{\em Right}: histogram of the difference between {\tt XWIN\_IMAGE} and the
simulation centroid in x.}
simulation \index{centroid} centroid in x.}
\label{fig:winpres}
\label{fig:winpres}
\end{figure}
\end{figure}
 
 
\subsection{Windowed 2nd order moments: {\tt X2}, {\tt Y2}, {\tt XY}}
\subsection{Windowed 2nd order \index{moments} moments: {\tt X2}, {\tt Y2}, {\tt XY}}
Windowed second-order moments are computed on the image data once the centering
Windowed second-order \index{moments} moments are computed on the \index{image} image data once the centering
process from \S{\ref{chap:wincent}} has converged:
process from \S{\ref{chap:wincent}} has converged:
\begin{eqnarray}
\begin{eqnarray}
{\tt X2WIN} & = \overline{x_{\tt WIN}^2}
{\tt X2WIN} & = \overline{x_{\tt WIN}^2}
= & \frac{\sum_{r_i < r_{\rm max}} w_i I_i (x_i - \overline{x_{\tt WIN}})^2}
= & \frac{\sum_{r_i < r_{\rm max}} w_i I_i (x_i - \overline{x_{\tt WIN}})^2}
{\sum_{r_i < r_{\rm max}} w_i I_i},\\
{\sum_{r_i < r_{\rm max}} w_i I_i},\\
Line 111... Line 111...
{\tt XYWIN} & = \overline{xy_{\tt WIN}}
{\tt XYWIN} & = \overline{xy_{\tt WIN}}
= & \frac{\sum_{r_i < r_{\rm max}} w_i I_i (x_i - \overline{x_{\tt WIN}})
= & \frac{\sum_{r_i < r_{\rm max}} w_i I_i (x_i - \overline{x_{\tt WIN}})
(y_i - \overline{y_{\tt WIN}})}
(y_i - \overline{y_{\tt WIN}})}
{\sum_{r_i < r_{\rm max}} w_i I_i}.
{\sum_{r_i < r_{\rm max}} w_i I_i}.
\end{eqnarray}
\end{eqnarray}
Windowed second-order moments are typically twice smaller than their isophotal
Windowed second-order \index{moments} moments are typically twice smaller than their isophotal
equivalent.
equivalent.
 
 
\subsection{Windowed ellipse parameters:
\subsection{Windowed ellipse parameters:
{\tt CXXWIN}, {\tt CYYWIN}, {\tt CXYWIN}}
{\tt CXXWIN}, {\tt CYYWIN}, {\tt CXYWIN}}
They are computed from the windowed 2nd order moments exactly the same way as
They are computed from the \index{window} \index{windowed} windowed 2nd order \index{moments} moments exactly the same way as
in \S\ref{chap:cxx}.
in \S\ref{chap:cxx}.
 
 
\subsection{Windowed position errors: {\tt ERRX2WIN}, {\tt ERRY2WIN},
\subsection{Windowed position errors: {\tt ERRX2WIN}, {\tt ERRY2WIN},
{\tt ERRXYWIN}, {\tt ERRAWIN}, {\tt ERRBWIN}, {\tt ERRTHETAWIN},
{\tt ERRXYWIN}, {\tt ERRAWIN}, {\tt ERRBWIN}, {\tt ERRTHETAWIN},
{\tt ERRCXXWIN}, {\tt ERRCYYWIN}, {\tt ERRCXYWIN}}
{\tt ERRCXXWIN}, {\tt ERRCYYWIN}, {\tt ERRCXYWIN}}
Windowed position errors are computed on the image data once the centering
Windowed position errors are computed on the \index{image} image data once the centering
process from \S{\ref{chap:wincent}} has converged. Assuming that noise is
process from \S{\ref{chap:wincent}} has converged. Assuming that noise is
uncorrelated among pixels, standard error propagation applied to
uncorrelated among pixels, standard error propagation applied to
(\ref{eq:xwin}) and (\ref{eq:xwin}) gives us:
(\ref{eq:xwin}) and (\ref{eq:xwin}) gives us:
\begin{eqnarray}
\begin{eqnarray}
{\tt ERRX2WIN} & = {\rm var}(\overline{x_{\tt WIN}})
{\tt ERRX2WIN} & = {\rm var}(\overline{x_{\tt WIN}})
Line 139... Line 139...
= & 4\,\frac{\sum_{r_i < r_{\rm max}}
= & 4\,\frac{\sum_{r_i < r_{\rm max}}
w_i^2 \sigma^2_i (x_i-\overline{x_{\tt WIN}})(y_i-\overline{y_{\tt WIN}})}
w_i^2 \sigma^2_i (x_i-\overline{x_{\tt WIN}})(y_i-\overline{y_{\tt WIN}})}
{\left(\sum_{r_i < r_{\rm max}} w_i I_i\right)^2}.
{\left(\sum_{r_i < r_{\rm max}} w_i I_i\right)^2}.
\end{eqnarray}
\end{eqnarray}
 
 
The semi-major axis {\tt ERRAWIN}, semi-minor
The \index{semi-major} semi-major axis {\tt ERRAWIN}, semi-minor
axis {\tt ERRBWIN}, and position angle {\tt ERRTHETAWIN} of the
axis {\tt ERRBWIN}, and position angle {\tt ERRTHETAWIN} of the
$1\sigma$ position error ellipse are computed from the covariance
$1\sigma$ position \index{error ellipse} error ellipse are computed from the \index{covariance} covariance
matrix elements ${\rm var}(\overline{x_{\tt WIN}})$,
matrix elements ${\rm var}(\overline{x_{\tt WIN}})$,
${\rm var}(\overline{y_{\tt WIN}})$,
${\rm var}(\overline{y_{\tt WIN}})$,
${\rm cov}(\overline{x_{\tt WIN}},\overline{y_{\tt WIN}})$,
${\rm cov}(\overline{x_{\tt WIN}},\overline{y_{\tt WIN}})$,
exactly as in \S\ref{chap:poserr}: see eqs. (\ref{eq:erra}),
exactly as in \S\ref{chap:poserr}: see eqs. (\ref{eq:erra}),
(\ref{eq:errb}), (\ref{eq:errtheta}), (\ref{eq:errcxx}), (\ref{eq:errcyy})
(\ref{eq:errb}), (\ref{eq:errtheta}), (\ref{eq:errcxx}), (\ref{eq:errcyy})
and (\ref{eq:errcxy}).
and (\ref{eq:errcxy}).
 
 
%\section{2D-model fitting}
%\section{2D-model fitting}
%\subsection{Star/galaxy separation}
%\subsection{Star/galaxy separation}
%With the local PSF and a noise model in hand, one can easily derive an optimum
%With the local \index{PSF} PSF and a noise \index{mode} model in hand, one can easily derive an optimum
%star/galaxy classifier. The problem was first addressed by \cite{sebok:1979}
%star/galaxy classifier. The problem was first addressed by \cite{sebok:1979}
and \cite{valdes:1982}. If detections can be classified as either a star
and \cite{valdes:1982}. If detections can be classified as either a star
%(s) or a galaxy (g), then the {\em a posteriori} probability for having a
%(s) or a galaxy (g), then the {\em a posteriori} probability for having a
%star, given the observed vector of pixel values $\vec{I}$ is given by the Bayes
%star, given the observed vector of pixel values $\vec{I}$ is given by the Bayes
%theorem:
%theorem:
Line 167... Line 167...
%P(s|\vec{I}) = \frac{1}{1+\frac{P(\vecs{I}|g)}{P(\vecs{I}|s)}\frac{P(g)}{P(s)}}.
%P(s|\vec{I}) = \frac{1}{1+\frac{P(\vecs{I}|g)}{P(\vecs{I}|s)}\frac{P(g)}{P(s)}}.
%\end{equation}
%\end{equation}
%The probability for the detected object to be a star $p(s|\vec{I})$ depends
%The probability for the detected object to be a star $p(s|\vec{I})$ depends
%on both the likelihood ratio $P(\vec{I}|g)/P(\vec{I}|s)$, and the ratio of
%on both the likelihood ratio $P(\vec{I}|g)/P(\vec{I}|s)$, and the ratio of
%{\em a priori} $P(g)/P(s)$. If we make the assumption that the measurement
%{\em a priori} $P(g)/P(s)$. If we make the assumption that the measurement
%noise at pixel $i$ is additive, Gaussian with mean 0 and standard deviation
%noise at pixel $i$ is additive, Gaussian with \index{mean} mean 0 and \index{standard deviation} standard deviation
%$\sigma_i$, and statistically independent from its neighbours, then we have
%$\sigma_i$, and statistically independent from its \index{neighbour} \index{neighbours} neighbours, then we have
%\begin{equation}
%\begin{equation}
%P(\vec{I}|s) = \prod_i \frac{1}{\sqrt{2\pi}\sigma_i}
%P(\vec{I}|s) = \prod_i \frac{1}{\sqrt{2\pi}\sigma_i}
%               \exp -\frac{(I_i - S_i)^2}{2\sigma^2_i}
%               \exp -\frac{(I_i - S_i)^2}{2\sigma^2_i}
%\end{equation}
%\end{equation}
%and
%and
%\begin{equation}
%\begin{equation}
%P(\vec{I}|g) = \prod_i \frac{1}{\sqrt{2\pi}\sigma_i}
%P(\vec{I}|g) = \prod_i \frac{1}{\sqrt{2\pi}\sigma_i}
%               \exp -\frac{(I_i - G_i)^2}{2\sigma^2_i}
%               \exp -\frac{(I_i - G_i)^2}{2\sigma^2_i}
%\end{equation}
%\end{equation}
%where the $S_i$ and $G_i$ are the pixel values for the best-fitting galaxy and
%where the $S_i$ and $G_i$ are the pixel values for the best-fitting galaxy and
%star models, respectively.
%star \index{mode} models, respectively.
 
 
 
 
 No newline at end of file
 No newline at end of file