OPERA
1.0
Open source echelle spectrograph reduction pipeline
|
Image routines. More...
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "operaError.h"
#include "libraries/operaImage.h"
#include "libraries/operaStats.h"
#include "libraries/operaCCD.h"
Namespaces | |
namespace | operaImage |
Functions | |
void | operaImMean (unsigned depth, long npixels, float *master, float *arrays[]) |
Mean combine a series of arrays (images) into the master. | |
void | operaImWeightedMean (unsigned depth, long npixels, float *master, float *arrays[], float *weights[]) |
Mean combine a series of arrays (images) weighted by weights into the master. | |
void | operaImSig (unsigned depth, long npixels, float *sigarray, float *arrays[], float *master) |
Calculate the standard deviation image from a series of images with respect to a master image. | |
void | operaImWeightedSig (unsigned depth, long npixels, float *sigarray, float *arrays[], float *weights[], float *master) |
Calculate the weighted standard deviation image from a series of images with respect to a master image. | |
void | operaImAvgSigClip (unsigned depth, long npixels, float *master, float *arrays[], unsigned nsig) |
Average sigma clip combine a series of arrays (images) into the master. | |
void | operaImVarDiff (unsigned depth, long npixels, float *arrays[], float *diffvarimg) |
Calculate the variance of the difference between consecutive images. | |
float | operaCCDVarDiff (unsigned depth, long npixels, float *arrays[], float *weight) |
.... | |
float * | medianCombineFloat (unsigned depth, long npixels, float *master, float *arrays[]) |
median combine a series of images. | |
unsigned short * | operaArrayMedianCombineUSHORT (unsigned depth, long npixels, unsigned short *master, unsigned short *arrays[]) |
median combine a series of images. | |
Variables | |
static int | verbose = 0 |
image library. | |
static int | debug = 0 |
Image routines.
image library.
float* medianCombineFloat | ( | unsigned | depth, |
long | npixels, | ||
float * | master, | ||
float * | arrays[] | ||
) |
median combine a series of images.
float *medianCombineFloat(unsigned depth, long npixels, float *output, float *images[])
depth | is an unsigned that ... |
npixels | is a long that ... |
master | is a float pointer that ... |
arrays | is a float pointer pointer that ... |
unsigned short* operaArrayMedianCombineUSHORT | ( | unsigned | depth, |
long | npixels, | ||
unsigned short * | master, | ||
unsigned short * | arrays[] | ||
) |
median combine a series of images.
unsigned short *operaArrayMedianCombineUSHORT(unsigned depth, long npixels, unsigned short *master, unsigned short *arrays[])
depth | is an unsigned that ... |
npixels | is a long that ... |
master | is a unsigned short pointer that ... |
arrays | is a unsigned short pointer pointer that ... |
float operaCCDVarDiff | ( | unsigned | depth, |
long | npixels, | ||
float * | arrays[], | ||
float * | weight | ||
) |
....
float operaCCDVarDiff(unsigned depth, long npixels, float *arrays[], float *weight)
depth | is an unsigned that ... |
npixels | is a long that ... |
arrays | is a float pointer pointer that ... |
weight | is a float pointer that ... |
void operaImAvgSigClip | ( | unsigned | depth, |
long | npixels, | ||
float * | master, | ||
float * | arrays[], | ||
unsigned | nsig | ||
) |
Average sigma clip combine a series of arrays (images) into the master.
void operaImAvgSigClip(unsigned depth, long npixels, float *master, float *arrays[], unsigned nsig)
depth | is an unsigned for the number of input images |
npixels | is a long for the number of elements in array |
master | is a float pointer that returns the resulting image |
arrays | is an array of float pointers that contains the input images |
nsig | is an unsigned for the size to clip data in sigma units |
void operaImMean | ( | unsigned | depth, |
long | npixels, | ||
float * | master, | ||
float * | arrays[] | ||
) |
Mean combine a series of arrays (images) into the master.
void operaImMean(unsigned depth, long npixels, float *master, float *arrays[])
depth | is an unsigned for the number of input images |
npixels | is a long for the number of elements in array |
master | is a float pointer that returns the resulting image |
arrays | is an array of float pointers that contains the input images |
void operaImSig | ( | unsigned | depth, |
long | npixels, | ||
float * | sigarray, | ||
float * | arrays[], | ||
float * | master | ||
) |
Calculate the standard deviation image from a series of images with respect to a master image.
void operaImSig(unsigned depth, long npixels, float *sigarray, float *arrays[], float *master)
depth | is an unsigned for the number of input images |
npixels | is a long for the number of elements in array |
sigarray | is a float pointer that returns the resulting standard deviation image |
arrays | is an array of float pointers that contains the input images |
master | is a float pointer for the input master image |
void operaImVarDiff | ( | unsigned | depth, |
long | npixels, | ||
float * | arrays[], | ||
float * | diffvarimg | ||
) |
Calculate the variance of the difference between consecutive images.
void operaImVarDiff(unsigned depth, long npixels, float *arrays[], float *diffvarimg)
depth | is an unsigned for the number of input images |
npixels | is a long for the number of elements in array |
arrays | is an array of float pointers that contains the input images |
diffvarimg | is a float pointer that returns the resulting image |
void operaImWeightedMean | ( | unsigned | depth, |
long | npixels, | ||
float * | master, | ||
float * | arrays[], | ||
float * | weights[] | ||
) |
Mean combine a series of arrays (images) weighted by weights into the master.
void operaImWeightedMean(unsigned depth, long npixels, float *master, float *arrays[], float *weights[])
depth | is an unsigned for the number of input images |
npixels | is a long for the number of elements in array |
master | is a float pointer that returns the resulting image |
arrays | is an array of float pointers that contains the input images |
weights | is an array of float pointers that contains the input weight images |
void operaImWeightedSig | ( | unsigned | depth, |
long | npixels, | ||
float * | sigarray, | ||
float * | arrays[], | ||
float * | weights[], | ||
float * | master | ||
) |
Calculate the weighted standard deviation image from a series of images with respect to a master image.
void operaImWeightedSig(unsigned depth, long npixels, float *sigarray, float *arrays[], float *master)
depth | is an unsigned for the number of input images |
npixels | is a long for the number of elements in array |
sigarray | is a float pointer that returns the resulting standard deviation image |
arrays | is an array of float pointers that contains the input images |
arrays | is an array of float pointers that contains the input weight images |
master | is a float pointer for the input master image |