My Project
|
Public Member Functions | |
Image () | |
virtual | ~Image () |
void | addFakeImage () |
void | addRampImage () |
void | finalize () |
void | flatfield () |
void | rowFlatfield () |
void | imageFlatfield () |
float | getHotPixels (std::valarray< float > &image, float nsigma) |
float | getMaskedMean (std::valarray< float > &image) |
float | getMaskedSigma (std::valarray< float > &image, float mean) |
unsigned | outlierReject (std::valarray< float > &image, float &mean, float &sigma, float nsigma) |
void | storeCurrentImageAsFlatfield () |
Image () | |
virtual | ~Image () |
void | addFakeImage () |
void | addRampImage () |
void | finalize () |
void | flatfield () |
void | rowFlatfield () |
void | imageFlatfield () |
float | getHotPixels (std::valarray< float > &image, float nsigma) |
float | getMaskedMean (std::valarray< float > &image) |
float | getMaskedSigma (std::valarray< float > &image, float mean) |
unsigned | outlierReject (std::valarray< float > &image, float &mean, float &sigma, float nsigma) |
void | storeCurrentImageAsFlatfield () |
Image::Image | ( | ) |
Constructor.
....................................................................... Constructor.
|
virtual |
Destructor.
....................................................................... Destructor.
gcp::grabber::Image::Image | ( | ) |
Constructor.
|
virtual |
Destructor.
void Image::addFakeImage | ( | ) |
Randomly generate a field of stars
....................................................................... Randomly generate a field of stars
void gcp::grabber::Image::addFakeImage | ( | ) |
Randomly generate a field of stars
void Image::addRampImage | ( | ) |
Add a ramp
....................................................................... Add a ramp
void gcp::grabber::Image::addRampImage | ( | ) |
Add a ramp
void Image::finalize | ( | ) |
Copy the float version of the image into the short buffer, and perform any other finalizing steps before sending off the image.
....................................................................... Copy the float version of the image into the short buffer, and perform any other finalizing steps before sending off the image.
void gcp::grabber::Image::finalize | ( | ) |
Copy the float version of the image into the short buffer, and perform any other finalizing steps before sending off the image.
void Image::flatfield | ( | ) |
void gcp::grabber::Image::flatfield | ( | ) |
Flatfield an image by subrtacting off the mean of each row
float Image::getHotPixels | ( | std::valarray< float > & | image, |
float | nsigma | ||
) |
....................................................................... Scan the passed image for hot pixels.
float Image::getMaskedMean | ( | std::valarray< float > & | image | ) |
....................................................................... Iterate through the image, rejecting pixel values greater than nsigma from the mean
float Image::getMaskedSigma | ( | std::valarray< float > & | image, |
float | mean | ||
) |
....................................................................... Calculate the rms over unmasked pixels
void Image::imageFlatfield | ( | ) |
....................................................................... Divide the image by the flatfield image
unsigned Image::outlierReject | ( | std::valarray< float > & | image, |
float & | mean, | ||
float & | sigma, | ||
float | nsigma | ||
) |
....................................................................... Iterate through the image, rejecting pixel values greater than nsigma from the mean
void Image::storeCurrentImageAsFlatfield | ( | ) |
....................................................................... Store the current image as the flatfield