My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::ImageHandler Class Reference
Inheritance diagram for gcp::util::ImageHandler:
gcp::grabber::ImagePlotter gcp::grabber::ImageReader

Classes

class  Box
 
struct  ImStat
 

Public Member Functions

 ImageHandler ()
 
 ImageHandler (const ImageHandler &objToBeCopied)
 
 ImageHandler (ImageHandler &objToBeCopied)
 
void operator= (const ImageHandler &objToBeAssigned)
 
void operator= (ImageHandler &objToBeAssigned)
 
virtual ~ImageHandler ()
 
virtual void setDeckAngleRotationSense (gcp::control::RotationSense sense)
 
virtual void setNCombine (unsigned ncombine)
 
virtual void setChannel (gcp::grabber::Channel::FgChannel channel)
 
virtual void setChannel (unsigned channel)
 
virtual void setFlatfieldType (unsigned flatfieldType)
 
virtual void setXImDir (gcp::control::ImDir dir)
 
virtual void setYImDir (gcp::control::ImDir dir)
 
virtual void setFov (const gcp::util::Angle &fov)
 
virtual void setAspectRatio (double aspectRatio)
 
virtual void setRotationAngle (const gcp::util::Angle &rotationAngle)
 
virtual void setDeckAngle (const gcp::util::Angle &deckAngle)
 
virtual void installNewImage (unsigned short *image)
 
virtual void installNewImage (unsigned short *image, unsigned int utc[2], gcp::util::Angle *az, gcp::util::Angle *el, gcp::util::Angle *dk=0)
 
ImStat getStats ()
 
virtual ImStat getStats (unsigned ixmin, unsigned iymin, unsigned ixmax, unsigned iymax)
 
void getOffsetInfo (gcp::util::Angle &horiz, gcp::util::Angle &vert, unsigned &ipeak, unsigned &jpeak)
 
void getPeakInfo (double &peak, double &snr)
 
void addIncludeBox (unsigned ixmin, unsigned iymin, unsigned ixmax, unsigned iymax)
 
void addExcludeBox (unsigned ixmin, unsigned iymin, unsigned ixmax, unsigned iymax)
 
void deleteNearestBox (unsigned ix, unsigned iy)
 
void deleteAllBoxes ()
 

Public Attributes

std::vector< Boxboxes_
 
gcp::util::Angle fov_
 
double aspectRatio_
 
gcp::util::Angle deckAngle_
 
gcp::util::Angle rotationAngle_
 
gcp::control::RotationSense deckAngleRotationSense_
 
gcp::grabber::Channel::FgChannel channel_
 
unsigned flatfieldType_
 
unsigned nCombine_
 
gcp::control::ImDir xImDir_
 
gcp::control::ImDir yImDir_
 
std::vector< unsigned short > imageToArchive_
 

Static Public Attributes

static const gcp::util::Angle defaultFov_
 
static const double defaultAspectRatio_ = 0.8
 
static const gcp::util::Angle defaultRotationAngle_
 
static const
gcp::control::RotationSense 
defaultDeckAngleRotationSense_ = CCW
 
static const
gcp::grabber::Channel::FgChannel 
defaultChannel_
 
static const unsigned defaultFlatfieldType_
 
static const unsigned defaultNcombine_ = 1
 
static const gcp::control::ImDir defaultXImDir_ = UPRIGHT
 
static const gcp::control::ImDir defaultYImDir_ = UPRIGHT
 

Protected Member Functions

void lock ()
 
void unlock ()
 
void pixelToSkyOffset (unsigned ix, unsigned iy, gcp::util::Angle &xsky, gcp::util::Angle &ysky)
 

Protected Attributes

bool haveImage_
 
double dx_
 
double dy_
 
double xa_
 
double ya_
 
double xb_
 
double yb_
 
unsigned nx_
 
unsigned ny_
 
bool usePixel_ [GRABBER_IM_SIZE]
 
unsigned short imageToStore_ [GRABBER_IM_SIZE]
 
unsigned int utc_ [2]
 

Friends

std::ostream & operator<< (std::ostream &os, ImageHandler &obj)
 

Constructor & Destructor Documentation

ImageHandler::ImageHandler ( )

Constructor.

....................................................................... Constructor.

ImageHandler::ImageHandler ( const ImageHandler objToBeCopied)

Copy Constructor.

....................................................................... Const Copy Constructor.

ImageHandler::ImageHandler ( ImageHandler objToBeCopied)

Copy Constructor.

....................................................................... Copy Constructor.

ImageHandler::~ImageHandler ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

void ImageHandler::getOffsetInfo ( gcp::util::Angle xSkyOffset,
gcp::util::Angle ySkyOffset,
unsigned &  ipeak,
unsigned &  jpeak 
)

....................................................................... Return the offset of the max in x and y, converted to horizontal and vertical offsets, in degrees

void ImageHandler::getPeakInfo ( double &  peak,
double &  snr 
)

Return information about the peak

....................................................................... Return information about the max

ImageHandler::ImStat ImageHandler::getStats ( )

....................................................................... Get statistics on the last received image

ImageHandler::ImStat ImageHandler::getStats ( unsigned  ixmin,
unsigned  iymin,
unsigned  ixmax,
unsigned  iymax 
)
virtual

....................................................................... Get stats (possibly on a subset of the image)

void ImageHandler::installNewImage ( unsigned short *  image)
virtual

....................................................................... Install a new image in the image buffer

Reimplemented in gcp::grabber::ImagePlotter.

void ImageHandler::installNewImage ( unsigned short *  image,
unsigned int  utc[2],
gcp::util::Angle az,
gcp::util::Angle el,
gcp::util::Angle dk = 0 
)
virtual

....................................................................... Install a new image in the image buffer

void ImageHandler::operator= ( const ImageHandler objToBeAssigned)

Const Assignment Operator.

....................................................................... Const Assignment Operator.

void ImageHandler::operator= ( ImageHandler obj)

Assignment Operator.

....................................................................... Assignment Operator.

void ImageHandler::pixelToSkyOffset ( unsigned  ix,
unsigned  iy,
gcp::util::Angle xsky,
gcp::util::Angle ysky 
)
protected

....................................................................... Convert from grabber pixel offset to sky offset

void ImageHandler::setChannel ( gcp::grabber::Channel::FgChannel  channel)
virtual

....................................................................... Public method to set the channel

void ImageHandler::setChannel ( unsigned  channel)
virtual

....................................................................... Public method to set the channel

void ImageHandler::setDeckAngle ( const gcp::util::Angle deckAngle)
virtual

....................................................................... Public method to set the deck angle

void ImageHandler::setDeckAngleRotationSense ( gcp::control::RotationSense  sense)
virtual

....................................................................... Public method to set the deck angle rotation sense

void ImageHandler::setFlatfieldType ( unsigned  flatfieldType)
virtual

....................................................................... Public method to set the flatfield

void ImageHandler::setFov ( const gcp::util::Angle fov)
virtual

....................................................................... Public method to reset the optical camera FOV

void ImageHandler::setNCombine ( unsigned  nCombine)
virtual

....................................................................... Public method to set the number of images to combine

void ImageHandler::setRotationAngle ( const gcp::util::Angle rotationAngle)
virtual

....................................................................... Public method to set the optical camera collimation

void ImageHandler::setXImDir ( gcp::control::ImDir  dir)
virtual

....................................................................... Public method to set the optical camera image directions

void ImageHandler::setYImDir ( gcp::control::ImDir  dir)
virtual

....................................................................... Public method to set the optical camera image directions

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
ImageHandler obj 
)
friend

Output Operator.

Member Data Documentation

const gcp::grabber::Channel::FgChannel ImageHandler::defaultChannel_
static
Initial value:
=
gcp::grabber::Channel::NONE
const unsigned ImageHandler::defaultFlatfieldType_
static
Initial value:
=
gcp::grabber::Flatfield::FLATFIELD_NONE
const gcp::util::Angle ImageHandler::defaultFov_
static
const gcp::util::Angle ImageHandler::defaultRotationAngle_
static

The documentation for this class was generated from the following files: