1 #ifndef CARMA_ANTENNA_COMMON_FRAMECONTEXT_H
2 #define CARMA_ANTENNA_COMMON_FRAMECONTEXT_H
4 #include "carma/antenna/common/Image_fwd.h"
37 float fineRotationInDegrees,
38 ::std::pair< short, short > maxRawFrameResolution );
79 std::pair< short, short >
getOffset( )
const;
105 ::std::auto_ptr< Impl > impl_;
::std::pair< short, short > getMaxResolution() const
Get maximum resolution of frame within context.
std::pair< short, short > getDimensions() const
Get dimensions as x,y pair (in pixels).
float getImageRotationInDegrees() const
Get rotation in degrees.
void setImageRotation(float degrees)
Set fine scale image rotation angle.
::std::pair< short, short > getResolution() const
Get resolution in context.
void setDimensions(short w, short h, short x0, short y0)
Set frame dimensions.
Optical telescopes and cameras on Carma dishes are not mounted uniformly and thus plate scales vary s...
std::pair< short, short > getOffset() const
Get image offset (crop offset) in pixels.
void setRawFrameResolution(short w, short h)
Set raw frame resolution.
void rotateAndCrop(Image &image) const
Rotate and crop image into context frame of reference.
FrameContext(float grossRotationInDegrees, float fineRotationInDegrees,::std::pair< short, short > maxRawFrameResolution)
Create a FrameContext.