coffee
Coronagraph Optimization For Fast Exoplanet Exploration
img_reduce.c File Reference

Image analysis functions. More...

Functions

int_fast8_t IMG_REDUCE_cubesimplestat_cli ()
 
int_fast8_t IMG_REDUCE_cleanbadpix_fast_cli ()
 
int_fast8_t IMG_REDUCE_cleanbadpix_stream_fast_cli ()
 
int_fast8_t IMG_REDUCE_centernormim_cli ()
 
int_fast8_t IMG_REDUCE_cubeprocess_cli ()
 
void __attribute__ ((constructor))
 
int_fast8_t init_img_reduce ()
 
long IMG_REDUCE_cubesimplestat (const char *IDin_name)
 
int clean_bad_pix (const char *IDin_name, const char *IDbadpix_name)
 removes bad pixels in cube More...
 
long IMG_REDUCE_cleanbadpix_fast_precompute (const char *IDmask_name)
 
long IMG_REDUCE_cleanbadpix_fast (const char *IDname, const char *IDbadpix_name, const char *IDoutname, int streamMode)
 
int IMG_REDUCE_correlMatrix (const char *IDin_name, const char *IDmask_name, const char *IDout_name)
 
int IMG_REDUCE_centernormim (const char *IDin_name, const char *IDref_name, const char *IDout_name, long xcent0, long ycent0, long xcentsize, long ycentsize, int mode, int semtrig)
 
int IMG_REDUCE_cubeprocess (const char *IDin_name)
 

Variables

int badpixclean_init = 0
 
long badpixclean_NBop
 
long * badpixclean_array_indexin
 
long * badpixclean_array_indexout
 
float * badpixclean_array_coeff
 
long badpixclean_NBbadpix
 
long * badpixclean_indexlist
 

Detailed Description

Image analysis functions.

Misc image analysis functions

Author
O. Guyon
Date
10 Jul 2017
Bug:
No known bugs.

Function Documentation

void __attribute__ ( (constructor)  )
int clean_bad_pix ( const char *  IDin_name,
const char *  IDbadpix_name 
)

removes bad pixels in cube

int IMG_REDUCE_centernormim ( const char *  IDin_name,
const char *  IDref_name,
const char *  IDout_name,
long  xcent0,
long  ycent0,
long  xcentsize,
long  ycentsize,
int  mode,
int  semtrig 
)

Recenter and normalize image

if mode = 1, shared memory loop

compute offset

int_fast8_t IMG_REDUCE_centernormim_cli ( )
long IMG_REDUCE_cleanbadpix_fast ( const char *  IDname,
const char *  IDbadpix_name,
const char *  IDoutname,
int  streamMode 
)
int_fast8_t IMG_REDUCE_cleanbadpix_fast_cli ( )
long IMG_REDUCE_cleanbadpix_fast_precompute ( const char *  IDmask_name)
int_fast8_t IMG_REDUCE_cleanbadpix_stream_fast_cli ( )
int IMG_REDUCE_correlMatrix ( const char *  IDin_name,
const char *  IDmask_name,
const char *  IDout_name 
)
int IMG_REDUCE_cubeprocess ( const char *  IDin_name)

this is the main routine to pre-process a cube stream of images (PSFs) for high contrast imaging stability analysis

Optional inputs: calib_darkim (single frame or cube) calib_badpix (single frame) calib_flat

remove dark

remove bad pixels

compute photocenter

int_fast8_t IMG_REDUCE_cubeprocess_cli ( )
long IMG_REDUCE_cubesimplestat ( const char *  IDin_name)

compute ave, RMS

int_fast8_t IMG_REDUCE_cubesimplestat_cli ( )
int_fast8_t init_img_reduce ( )

Variable Documentation

float* badpixclean_array_coeff
long* badpixclean_array_indexin
long* badpixclean_array_indexout
long* badpixclean_indexlist
int badpixclean_init = 0

image analysis/reduction routines for astronomy

long badpixclean_NBbadpix
long badpixclean_NBop