![]() |
cacao
Release 0.1.03-dev
Compute And Control For Adaptive Optics
|
Image analysis functions. More...
#include <stdint.h>
#include <unistd.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/mman.h>
#include <err.h>
#include <fcntl.h>
#include <sched.h>
#include <ncurses.h>
#include <semaphore.h>
#include <fitsio.h>
#include "CommandLineInterface/CLIcore.h"
#include "00CORE/00CORE.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "COREMOD_iofits/COREMOD_iofits.h"
#include "COREMOD_arith/COREMOD_arith.h"
#include "image_filter/image_filter.h"
#include "fft/fft.h"
#include "img_reduce/img_reduce.h"
Macros | |
#define | MODULE_SHORTNAME_DEFAULT "" |
#define | MODULE_DESCRIPTION "Image analysis for astronomy: basic routines" |
#define | MODULE_APPLICATION "milk" |
Functions | |
errno_t | IMG_REDUCE_cubesimplestat_cli () |
errno_t | IMG_REDUCE_cleanbadpix_fast_cli () |
errno_t | IMG_REDUCE_cleanbadpix_stream_fast_cli () |
errno_t | IMG_REDUCE_centernormim_cli () |
errno_t | IMG_REDUCE_cubeprocess_cli () |
static errno_t | init_module_CLI () |
imageID | IMG_REDUCE_cubesimplestat (const char *IDin_name) |
errno_t | 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) |
imageID | IMG_REDUCE_cleanbadpix_fast (const char *IDname, const char *IDbadpix_name, const char *IDoutname, int streamMode) |
errno_t | IMG_REDUCE_correlMatrix (const char *IDin_name, const char *IDmask_name, const char *IDout_name) |
imageID | 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) |
errno_t | 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 |
Image analysis functions.
Misc image analysis functions
#define MODULE_APPLICATION "milk" |
#define MODULE_DESCRIPTION "Image analysis for astronomy: basic routines" |
#define MODULE_SHORTNAME_DEFAULT "" |
errno_t clean_bad_pix | ( | const char * | IDin_name, |
const char * | IDbadpix_name | ||
) |
removes bad pixels in cube
imageID 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
errno_t IMG_REDUCE_centernormim_cli | ( | ) |
imageID IMG_REDUCE_cleanbadpix_fast | ( | const char * | IDname, |
const char * | IDbadpix_name, | ||
const char * | IDoutname, | ||
int | streamMode | ||
) |
errno_t IMG_REDUCE_cleanbadpix_fast_cli | ( | ) |
long IMG_REDUCE_cleanbadpix_fast_precompute | ( | const char * | IDmask_name | ) |
errno_t IMG_REDUCE_cleanbadpix_stream_fast_cli | ( | ) |
errno_t IMG_REDUCE_correlMatrix | ( | const char * | IDin_name, |
const char * | IDmask_name, | ||
const char * | IDout_name | ||
) |
errno_t 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
errno_t IMG_REDUCE_cubeprocess_cli | ( | ) |
imageID IMG_REDUCE_cubesimplestat | ( | const char * | IDin_name | ) |
compute ave, RMS
errno_t IMG_REDUCE_cubesimplestat_cli | ( | ) |
|
static |
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 |