OPERA  1.0
Open source echelle spectrograph reduction pipeline
libraries/operaImage.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "operaError.h"
Include dependency graph for libraries/operaImage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAXIMAGES   1000

Functions

void operaSumImbyConstant (long npixels, float *img, float number)
void operaSubtractImbyConstant (long npixels, float *img, float number)
void operaMultiplyImbyConstant (long npixels, float *img, float number)
void operaDivideImbyConstant (long npixels, float *img, float number)
void operaImSubtractIm (long npixels, float *img1, float *img2)
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.
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.
float operaCCDVarDiff (unsigned depth, long npixels, float *arrays[], float *weight)
 ....
void operaImVarDiff (unsigned depth, long npixels, float *arrays[], float *diffvarimg)
 Calculate the variance of the difference between consecutive images.
void operaImMeanQuick (unsigned depth, long npixels, float *master, float *arrays[])
 Mean combine a series of arrays (images) into the master.
void operaImWeightedMeanQuick (unsigned depth, long npixels, float *master, float *arrays[], float *weights[])
 Mean combine a series of arrays (images) weighted by weights into the master.
void operaImSigQuick (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 operaImWeightedSigQuick (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 operaImAvgSigClipQuick (unsigned depth, long npixels, float *master, float *arrays[], unsigned nsig)
 Average sigma clip combine a series of arrays (images) into the master.

Define Documentation

#define MAXIMAGES   1000

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 operaDivideImbyConstant ( long  npixels,
float *  img,
float  number 
) [inline]
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 operaImAvgSigClipQuick ( unsigned  depth,
long  npixels,
float *  master,
float *  arrays[],
unsigned  nsig 
) [inline]

Average sigma clip combine a series of arrays (images) into the master.

inline void operaImAvgSigClipQuick(unsigned depth, long npixels, float *master, float *arrays[], unsigned nsig)

Parameters:
depthis an unsigned that ...
npixelsis a long that ...
sigarrayis a float pointer that ...
arraysis a float pointer pointer that ...
masteris a float pointer that ...
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 operaImMeanQuick ( unsigned  depth,
long  npixels,
float *  master,
float *  arrays[] 
) [inline]

Mean combine a series of arrays (images) into the master.

inline void operaImMeanQuick(unsigned depth, long npixels, float *master, float *arrays[])

Parameters:
depthis an unsigned that ...
masteris a float pointer that ...
arraysis a float pointer pointer that ...
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 operaImSigQuick ( unsigned  depth,
long  npixels,
float *  sigarray,
float *  arrays[],
float *  master 
) [inline]

Calculate the standard deviation image from a series of images with respect to a master image.

inline void operaImSigQuick(unsigned depth, long npixels, float *sigarray, float *arrays[], float *master)

Parameters:
depthis an unsigned that ...
npixelsis a long that ...
sigarrayis a float pointer that ...
arraysis a float pointer pointer that ...
masteris a float pointer that ...
Returns:
void
void operaImSubtractIm ( long  npixels,
float *  img1,
float *  img2 
) [inline]
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 operaImWeightedMeanQuick ( unsigned  depth,
long  npixels,
float *  master,
float *  arrays[],
float *  weights[] 
) [inline]

Mean combine a series of arrays (images) weighted by weights into the master.

inline void operaImWeightedMeanQuick(unsigned depth, long npixels, float *master, float *arrays[], float *weights[])

Parameters:
depthis an unsigned that ...
npixelsis a long that ...
masteris a float pointer that ...
arraysis a float pointer pointer that ...
weightsis a float pointer pointer that ...
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
void operaImWeightedSigQuick ( unsigned  depth,
long  npixels,
float *  sigarray,
float *  arrays[],
float *  weights[],
float *  master 
) [inline]

Calculate the weighted standard deviation image from a series of images with respect to a master image.

inline void operaImWeightedSigQuick(unsigned depth, long npixels, float *sigarray, float *arrays[], float *weights[], float *master)

Parameters:
depthis an unsigned that ...
npixelsis a long that ...
sigarrayis a float pointer that ...
arraysis a float pointer pointer that ...
masteris a float pointer that ...
Returns:
void
void operaMultiplyImbyConstant ( long  npixels,
float *  img,
float  number 
) [inline]
void operaSubtractImbyConstant ( long  npixels,
float *  img,
float  number 
) [inline]
void operaSumImbyConstant ( long  npixels,
float *  img,
float  number 
) [inline]