OPERA  1.0
Open source echelle spectrograph reduction pipeline
operaImage.c File Reference

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"
Include dependency graph for operaImage.c:

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

Detailed Description

Image routines.

image library.


Function Documentation

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[])

Parameters:
depthis an unsigned that ...
npixelsis a long that ...
masteris a float pointer that ...
arraysis a float pointer pointer that ...
Returns:
float*

Here is the call graph for this function:

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[])

Parameters:
depthis an unsigned that ...
npixelsis a long that ...
masteris a unsigned short pointer that ...
arraysis a unsigned short pointer pointer that ...
Returns:
unsigned short *

Here is the call graph for this function:

float operaCCDVarDiff ( unsigned  depth,
long  npixels,
float *  arrays[],
float *  weight 
)

....

float operaCCDVarDiff(unsigned depth, long npixels, float *arrays[], float *weight)

Parameters:
depthis an unsigned that ...
npixelsis a long that ...
arraysis a float pointer pointer that ...
weightis a float pointer that ...
Returns:
float
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)

Parameters:
depthis an unsigned for the number of input images
npixelsis a long for the number of elements in array
masteris a float pointer that returns the resulting image
arraysis an array of float pointers that contains the input images
nsigis an unsigned for the size to clip data in sigma units
Returns:
void
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[])

Parameters:
depthis an unsigned for the number of input images
npixelsis a long for the number of elements in array
masteris a float pointer that returns the resulting image
arraysis an array of float pointers that contains the input images
Returns:
void
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)

Parameters:
depthis an unsigned for the number of input images
npixelsis a long for the number of elements in array
sigarrayis a float pointer that returns the resulting standard deviation image
arraysis an array of float pointers that contains the input images
masteris a float pointer for the input master image
Returns:
void
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)

Parameters:
depthis an unsigned for the number of input images
npixelsis a long for the number of elements in array
arraysis an array of float pointers that contains the input images
diffvarimgis a float pointer that returns the resulting image
Returns:
void
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[])

Parameters:
depthis an unsigned for the number of input images
npixelsis a long for the number of elements in array
masteris a float pointer that returns the resulting image
arraysis an array of float pointers that contains the input images
weightsis an array of float pointers that contains the input weight images
Returns:
void
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)

Parameters:
depthis an unsigned for the number of input images
npixelsis a long for the number of elements in array
sigarrayis a float pointer that returns the resulting standard deviation image
arraysis an array of float pointers that contains the input images
arraysis an array of float pointers that contains the input weight images
masteris a float pointer for the input master image
Returns:
void