IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2005, 6:56:24 PM (21 years ago)
Author:
eugene
Message:

bugzilla changes (psMetadata iterators, pmObject stuff)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/modules/ModulesSDRS.tex

    r3074 r3155  
    1 %%% $Id: ModulesSDRS.tex,v 1.29 2005-01-24 21:56:33 price Exp $
     1%%% $Id: ModulesSDRS.tex,v 1.30 2005-02-08 04:56:24 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    11031103\begin{verbatim}
    11041104typedef struct {
    1105   psPeak *peak;            // description of peak pixel
     1105  pmPeak *peak;            // description of peak pixel
    11061106  psImage *pixels;         // rectangular region including object pixels
    11071107  psImage *mask;           // mask to mark pixels associated with object in region
    1108   psMoments *moments;      // basic moments measure for the object
    1109   psModel *models;         // model parameters and type
    1110   psSourceType type;       // best identification of object
    1111 } psSource;
     1108  pmMoments *moments;      // basic moments measure for the object
     1109  pmModel *models;         // model parameters and type
     1110  pmSourceType type;       // best identification of object
     1111} pmSource;
    11121112\end{verbatim}
    11131113
     
    11201120  int y;                   // y-coordinate of peak pixel
    11211121  float counts;            // value of peak pixel (above sky?)
    1122   psPeakType class;        // description of peak
    1123 } psPeak;
     1122  pmPeakType class;        // description of peak
     1123} pmPeak;
    11241124\end{verbatim}
    11251125
    11261126A peak pixel may have several features which may be determined when
    11271127the peak is found or measured.  These are specified by the
    1128 \code{psPeakType} enum.  \code{PS_PEAK_LONE} represents a single pixel
     1128\code{pmPeakType} enum.  \code{PM_PEAK_LONE} represents a single pixel
    11291129which is higher than its 8 immediate neighbors.  The
    1130 \code{PS_PEAK_EDGE} represents a peak pixel which touching the image
    1131 edge.  The \code{PS_PEAK_FLAT} represents a peak pixel which has more
     1130\code{PM_PEAK_EDGE} represents a peak pixel which touching the image
     1131edge.  The \code{PM_PEAK_FLAT} represents a peak pixel which has more
    11321132than a specific number of neighbors at the same value, within some
    11331133tolarence:
    11341134\begin{verbatim}
    11351135typedef enum {
    1136   PS_PEAK_LONE;             // isolated peak
    1137   PS_PEAK_EDGE;             // peak on edge
    1138   PS_PEAK_FLAT;             // peak has equal-value neighbors
    1139 } psPeakType;
     1136  PM_PEAK_LONE;             // isolated peak
     1137  PM_PEAK_EDGE;             // peak on edge
     1138  PM_PEAK_FLAT;             // peak has equal-value neighbors
     1139} pmPeakType;
    11401140\end{verbatim}
    11411141
     
    11621162  float Sky;                // sky level (background)
    11631163  int   nPixels;            // number of pixels used
    1164 } psMoments;
     1164} pmMoments;
    11651165\end{verbatim}
    11661166
     
    11681168function.  The description of the model includes the model parameters
    11691169and their errors, along with the fit $\chi^2$.  The model type is
    1170 specified by the enum \code{psObjectModel}, specified below.  We
     1170specified by the enum \code{pmObjectModel}, specified below.  We
    11711171discuss the details of these models in section~\ref{ObjectModels}.
    11721172
    11731173\begin{verbatim}
    11741174typedef struct {
    1175   psObjectModel type;       // model to be used
     1175  pmObjectModel type;       // model to be used
    11761176  int Nparams;              // number of parameters
    11771177  float *params;            // parameter values
    11781178  float *dparams;           // parameter errors
    11791179  float chisq;              // fit chisq
    1180 } psModel;
     1180} pmModel;
    11811181\end{verbatim}
    11821182
    11831183\begin{verbatim}
    11841184typedef enum {
    1185   PS_MODEL_GAUSS;
    1186   PS_MODEL_PGAUSS;
    1187   PS_MODEL_TWIST_GAUSS;
    1188   PS_MODEL_WAUSS;
    1189   PS_MODEL_SERSIC;
    1190   PS_MODEL_SERSIC_CORE;
    1191 } psModelType;
     1185  PM_MODEL_GAUSS;
     1186  PM_MODEL_PGAUSS;
     1187  PM_MODEL_TWIST_GAUSS;
     1188  PM_MODEL_WAUSS;
     1189  PM_MODEL_SERSIC;
     1190  PM_MODEL_SERSIC_CORE;
     1191} pmModelType;
     1192\end{verbatim}
     1193
     1194A given source may be identified as most-likey to be one of several
     1195source types.  The \code{pmSource} entry \code{pmSourceType} defines
     1196the current best-guess for this source.  \tbd{The values given below
     1197are currently illustrative and will require some modification as the
     1198source classification code is developed.}
     1199
     1200\begin{verbatim}
     1201typedef enum {
     1202  PM_SOURCE_PSFSTAR;
     1203  PM_SOURCE_GALAXY;
     1204  PM_SOURCE_DEFECT;
     1205  PM_SOURCE_SATSTAR;
     1206  PM_SOURCE_FAINTSTAR;
     1207  PM_SOURCE_BRIGHTSTAR;
     1208} pmSourceType;
    11921209\end{verbatim}
    11931210
     
    12331250making flat-topped regions have single peaks at the (+x,+y) corner.
    12341251When selecting the peaks, their type must also be set.  The result of
    1235 this function is a list of \code{psPeak} entries.
     1252this function is a list of \code{pmPeak} entries.
    12361253
    12371254\tbd{do we need a function psVector *psImageRowVector (psImage *image, int row);}
     
    12481265
    12491266\begin{verbatim}
    1250 psSource *pmSourceLocalSky(const psImage *image, const psPeak *peak, float inner_radius, float outer_radius),
     1267pmSource *pmSourceLocalSky(const psImage *image, const pmPeak *peak, float inner_radius, float outer_radius),
    12511268\end{verbatim}
    12521269
     
    12551272specified are used to measure the median \tbd{(clipped mean?)
    12561273(statistic from psStats?)} in the vicinity of the the specified peak
    1257 coordinates.  The resulting sky is applied to the \code{psMoments}
    1258 element of the allocated \code{psSource} structure.  The input
    1259 \code{peak} is also added to the \code{psSource} element, which is
     1274coordinates.  The resulting sky is applied to the \code{pmMoments}
     1275element of the allocated \code{pmSource} structure.  The input
     1276\code{peak} is also added to the \code{pmSource} element, which is
    12601277returned.
    12611278
    12621279\begin{verbatim}
    1263 psSource *pmSourceMoments(psSource *source, const psImage *image, float radius),
     1280pmSource *pmSourceMoments(pmSource *source, const psImage *image, float radius),
    12641281\end{verbatim}
    12651282
     
    12711288
    12721289\begin{verbatim}
    1273 psSource *pmSourceRoughClass(psSource *source, float saturate, float SNlim, const psRegion *valid);
     1290pmSource *pmSourceRoughClass(pmSource *source, float saturate, float SNlim, const psRegion *valid);
    12741291\end{verbatim}
    12751292
     
    13031320
    13041321\begin{verbatim}
    1305 bool pmSourceSetPixelsCircle(psSource *source, const psImage *image, float radius);
     1322bool pmSourceSetPixelsCircle(pmSource *source, const psImage *image, float radius);
    13061323\end{verbatim}
    13071324
     
    13141331
    13151332\begin{verbatim}
    1316 bool pmSourceModelGuess(psSource *source, const psImage *image);
     1333bool pmSourceModelGuess(pmSource *source, const psImage *image);
    13171334\end{verbatim}
    13181335
     
    13231340
    13241341\begin{verbatim}
    1325 psArray *pmSourceContour(const psSource *source, const psImage *image, float level, int mode);
     1342psArray *pmSourceContour(const pmSource *source, const psImage *image, float level, int mode);
    13261343\end{verbatim}
    13271344
    13281345Find points in a contour for the given source at the given level.  If
    1329 mode is \code{PS_CONTOUR_CRUDE}, the contour is found by starting at
     1346mode is \code{PM_CONTOUR_CRUDE}, the contour is found by starting at
    13301347the source peak, running along each pixel row until the level is
    13311348crossed, then interpolating to the level coordinate for that row.
     
    13391356
    13401357\begin{verbatim}
    1341 bool pmSourceFitModel(psSource *source, psImage *image);
     1358bool pmSourceFitModel(pmSource *source, psImage *image);
    13421359\end{verbatim}
    13431360
     
    13501367
    13511368\begin{verbatim}
    1352 bool pmSourceAddModel(psImage *image, psSource *source, bool center);
     1369bool pmSourceAddModel(psImage *image, pmSource *source, bool center);
    13531370\end{verbatim}
    13541371
     
    13601377
    13611378\begin{verbatim}
    1362 bool pmSourceSubModel(psSource *source);
     1379bool pmSourceSubModel(pmSource *source);
    13631380\end{verbatim}
    13641381
     
    13881405
    13891406\begin{verbatim}
    1390 float psMinLM_PseudoGauss2D(psVector *deriv, psVector *params, psVector *x);
     1407float pmMinLM_PseudoGauss2D(psVector *deriv, psVector *params, psVector *x);
    13911408\end{verbatim}
    13921409
Note: See TracChangeset for help on using the changeset viewer.