Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

pmObjects.h File Reference


Detailed Description

This file will ...

Author:
GLG, MHPCC
Version:
Revision
1.7.2.1
Name
rel5_1
Date:
Date
2005/04/06 19:34:06
Copyright 2004 Maui High Performance Computing Center, University of Hawaii

Definition in file pmObjects.h.

#include <stdio.h>
#include <math.h>
#include "pslib.h"

Include dependency graph for pmObjects.h:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  psPeak
struct  psMoments
struct  psModel
struct  psSource

Defines

#define PM_OBJECTS_H

Enumerations

enum  psPeakType { PM_PEAK_LONE, PM_PEAK_EDGE, PM_PEAK_FLAT, PM_PEAK_UNDEF }
enum  psModelType { PS_MODEL_GAUSS, PS_MODEL_PGAUSS, PS_MODEL_TWIST_GAUSS, PS_MODEL_WAUSS, PS_MODEL_SERSIC, PS_MODEL_SERSIC_CORE, PS_MODEL_UNDEFINED }
enum  psSourceType { PS_SOURCE_PSFSTAR, PS_SOURCE_GALAXY, PS_SOURCE_DEFECT, PS_SOURCE_SATURATED, PS_SOURCE_SATSTAR, PS_SOURCE_FAINTSTAR, PS_SOURCE_BRIGHTSTAR, PS_SOURCE_OTHER }
enum  pmContourType { PS_CONTOUR_CRUDE }

Functions

psPeakpmPeakAlloc (psS32 x, psS32 y, psF32 counts, psPeakType class)
psMomentspmMomentsAlloc ()
psModelpmModelAlloc (psModelType type)
psSourcepmSourceAlloc ()
psVector * pmFindVectorPeaks (const psVector *vector, psF32 threshold)
psList * pmFindImagePeaks (const psImage *image, psF32 threshold)
psList * pmCullPeaks (psList *peaks, psF32 maxValue, const psRegion *valid)
psSourcepmSourceLocalSky (const psImage *image, const psPeak *peak, psStatsOptions statsOptions, psF32 innerRadius, psF32 outerRadius)
psSourcepmSourceMoments (psSource *source, psF32 radius)
bool pmSourceRoughClass (psArray *source, psMetadata *metadata)
bool pmSourceSetPixelCircle (psSource *source, const psImage *image, psF32 radius)
bool pmSourceModelGuess (psSource *source, const psImage *image, psModelType model)
psArray * pmSourceContour (psSource *source, const psImage *image, psF32 level, pmContourType mode)
bool pmSourceFitModel (psSource *source, const psImage *image)
bool pmSourceAddModel (psImage *image, psSource *source, bool center)
bool pmSourceSubModel (psImage *image, psSource *source, bool center)
psF32 pmMinLM_Gauss2D (psVector *deriv, psVector *params, psVector *x)
psF32 pmMinLM_PsuedoGauss2D (psVector *deriv, psVector *params, psVector *x)
psF32 pmMinLM_Wauss2D (psVector *deriv, psVector *params, psVector *x)
psF32 pmMinLM_TwistGauss2D (psVector *deriv, psVector *params, psVector *x)
psF32 pmMinLM_Sersic (psVector *deriv, psVector *params, psVector *x)
psF32 pmMinLM_SersicCore (psVector *deriv, psVector *params, psVector *x)
psF32 pmMinLM_PsuedoSersic (psVector *deriv, psVector *params, psVector *x)


Define Documentation

#define PM_OBJECTS_H
 

Definition at line 15 of file pmObjects.h.


Enumeration Type Documentation

enum pmContourType
 

Enumeration values:
PS_CONTOUR_CRUDE 

Definition at line 179 of file pmObjects.h.

enum psModelType
 

Enumeration values:
PS_MODEL_GAUSS  Regular 2-D Gaussian.
PS_MODEL_PGAUSS  Psuedo 2-D Gaussian.
PS_MODEL_TWIST_GAUSS  2-D Twisted Gaussian
PS_MODEL_WAUSS  2-D Waussian
PS_MODEL_SERSIC  Sersic.
PS_MODEL_SERSIC_CORE  Sersic Core.
PS_MODEL_UNDEFINED  Undefined.

Definition at line 55 of file pmObjects.h.

enum psPeakType
 

Enumeration values:
PM_PEAK_LONE  Isolated peak.
PM_PEAK_EDGE  Peak on edge.
PM_PEAK_FLAT  Peak has equal-value neighbors.
PM_PEAK_UNDEF  Undefined.

Definition at line 25 of file pmObjects.h.

enum psSourceType
 

Enumeration values:
PS_SOURCE_PSFSTAR 
PS_SOURCE_GALAXY 
PS_SOURCE_DEFECT 
PS_SOURCE_SATURATED 
PS_SOURCE_SATSTAR 
PS_SOURCE_FAINTSTAR 
PS_SOURCE_BRIGHTSTAR 
PS_SOURCE_OTHER 

Definition at line 77 of file pmObjects.h.


Function Documentation

psList* pmCullPeaks psList *  peaks,
psF32  maxValue,
const psRegion *  valid
 

Parameters:
peaks  The psList of peaks to be culled
maxValue  Cull peaks above this value
valid  Cull peaks otside this psRegion

psList* pmFindImagePeaks const psImage *  image,
psF32  threshold
 

Parameters:
image  The input image where peaks will be found (psF32)
threshold  Threshold above which to find a peak

psVector* pmFindVectorPeaks const psVector *  vector,
psF32  threshold
 

Parameters:
vector  The input vector (psF32)
threshold  Threshold above which to find a peak

psF32 pmMinLM_Gauss2D psVector *  deriv,
psVector *  params,
psVector *  x
 

Parameters:
deriv  A possibly-NULL structure for the output derivatives
params  A psVector which holds the parameters of this function
x  A psVector which holds the row/col coordinate

psF32 pmMinLM_PsuedoGauss2D psVector *  deriv,
psVector *  params,
psVector *  x
 

Parameters:
deriv  A possibly-NULL structure for the output derivatives
params  A psVector which holds the parameters of this function
x  A psVector which holds the row/col coordinate

psF32 pmMinLM_PsuedoSersic psVector *  deriv,
psVector *  params,
psVector *  x
 

Parameters:
deriv  A possibly-NULL structure for the output derivatives
params  A psVector which holds the parameters of this function
x  A psVector which holds the row/col coordinate

psF32 pmMinLM_Sersic psVector *  deriv,
psVector *  params,
psVector *  x
 

Parameters:
deriv  A possibly-NULL structure for the output derivatives
params  A psVector which holds the parameters of this function
x  A psVector which holds the row/col coordinate

psF32 pmMinLM_SersicCore psVector *  deriv,
psVector *  params,
psVector *  x
 

Parameters:
deriv  A possibly-NULL structure for the output derivatives
params  A psVector which holds the parameters of this function
x  A psVector which holds the row/col coordinate

psF32 pmMinLM_TwistGauss2D psVector *  deriv,
psVector *  params,
psVector *  x
 

Parameters:
deriv  A possibly-NULL structure for the output derivatives
params  A psVector which holds the parameters of this function
x  A psVector which holds the row/col coordinate

psF32 pmMinLM_Wauss2D psVector *  deriv,
psVector *  params,
psVector *  x
 

Parameters:
deriv  A possibly-NULL structure for the output derivatives
params  A psVector which holds the parameters of this function
x  A psVector which holds the row/col coordinate

psModel* pmModelAlloc psModelType  type  ) 
 

psMoments* pmMomentsAlloc  ) 
 

psPeak* pmPeakAlloc psS32  x,
psS32  y,
psF32  counts,
psPeakType  class
 

Parameters:
x  Row-coordinate in image space
y  Col-coordinate in image space
counts  The value of the peak pixel
class  The type of peak pixel

bool pmSourceAddModel psImage *  image,
psSource source,
bool  center
 

Parameters:
image  The opuut image (psF32)
source  The input psSource
center  A boolean flag that determines whether pixels are centered

psSource* pmSourceAlloc  ) 
 

psArray* pmSourceContour psSource source,
const psImage *  image,
psF32  level,
pmContourType  mode
 

Parameters:
source  The input psSource
image  The input image (psF32) (this arg should be removed)
level  The level of the contour
mode  Currently this must be PS_CONTOUR_CRUDE

bool pmSourceFitModel psSource source,
const psImage *  image
 

Parameters:
source  The input psSource
image  The input image (psF32)

psSource* pmSourceLocalSky const psImage *  image,
const psPeak peak,
psStatsOptions  statsOptions,
psF32  innerRadius,
psF32  outerRadius
 

Parameters:
image  The input image (psF32)
peak  The peak for which the psSource struct is created.
statsOptions  The statistic used in calculating the background sky
innerRadius  The inner radius of the suqare annulus for calculating sky
outerRadius  The outer radius of the suqare annulus for calculating sky

bool pmSourceModelGuess psSource source,
const psImage *  image,
psModelType  model
 

Parameters:
source  The input psSource
image  The input image (psF32)
model  The type of model to be created.

psSource* pmSourceMoments psSource source,
psF32  radius
 

Parameters:
source  The input psSource for which moments will be computed
radius  Use a circle of pixels around the peak

bool pmSourceRoughClass psArray *  source,
psMetadata *  metadata
 

Parameters:
source  The input psSource
metadata  Contains classification parameters

bool pmSourceSetPixelCircle psSource source,
const psImage *  image,
psF32  radius
 

Parameters:
source  The input psSource
image  The input image (psF32)
radius  The radius of the circle

bool pmSourceSubModel psImage *  image,
psSource source,
bool  center
 

Parameters:
image  The output image (psF32)
source  The input psSource
center  A boolean flag that determines whether pixels are centered


Generated on Wed Apr 6 14:09:04 2005 for Pan-STARRS Module Library by  doxygen 1.3.9.1