mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
imageTransforms.hpp File Reference

Image interpolation and transformation. More...

Image interpolation and transformation.

Author
Jared R. Males

Definition in file imageTransforms.hpp.

Go to the source code of this file.

Classes

struct  mx::improc::bilinearTransform< _arithT >
 Transformation by bi-linear interpolation. More...
 
struct  mx::improc::cubicConvolTransform< _arithT >
 Transformation by cubic convolution interpolation. More...
 

Namespaces

 mx
 The mxlib c++ namespace.
 

Typedefs

typedef bilinearTransform< float > mx::improc::bilinearTransf
 Typedef for bilinearTransform with single precision. More...
 
typedef bilinearTransform< double > mx::improc::bilinearTransd
 Typedef for bilinearTransform with double precision. More...
 
typedef cubicConvolTransform< float > mx::improc::cubicConvolTransf
 Typedef for cubicConvolTransform with single precision. More...
 
typedef cubicConvolTransform< double > mx::improc::cubicConvolTransd
 Typedef for cubicConvolTransform with double precision. More...
 

Functions

template<typename transformT , typename arrT , typename arrT2 , typename floatT >
void mx::improc::imageRotate (arrT &transim, const arrT2 &im, floatT dq, transformT trans)
 Rotate an image represented as an eigen array. More...
 
template<typename outputArrT , typename inputArrT >
void mx::improc::imageShiftWP (outputArrT &out, inputArrT &in, int dx, int dy, bool wrap=true)
 Shift an image by whole pixels with (optional) wrapping. More...
 
template<typename outputArrT , typename inputArrT , typename scaleArrT >
void mx::improc::imageShiftWPScale (outputArrT &out, inputArrT &in, scaleArrT &scale, int dx, int dy)
 Shift an image by whole pixels, wrapping around, with a scaling image applied to the shifted image. More...
 
template<typename arrOutT , typename arrInT , typename floatT1 , typename floatT2 , typename transformT >
void mx::improc::imageShift (arrOutT &transim, const arrInT &im, floatT1 dx, floatT2 dy, transformT trans)
 Shift an image. More...
 
template<typename arrOutT , typename arrInT , typename transformT >
void mx::improc::imageMagnify (arrOutT &transim, const arrInT &im, transformT trans)
 Magnify an image. More...
 
template<typename arrOutT , typename arrInT >
void mx::improc::imageMagnify (arrOutT &transim, const arrInT &im)
 Magnify an image with the cubic convolution interpolator. More...
 
template<typename imageOutT , typename imageInT >
int mx::improc::imageRebinSum (imageOutT &imout, const imageInT &imin, bool mean=false)
 Re-bin an image using the sum, reducing its size while conserving the total flux. More...
 
template<typename imageOutT , typename imageInT >
int mx::improc::imageRebinSum (imageOutT &imout, int &xMax, int &yMax, typename imageOutT::Scalar &pMax, const imageInT &imin, bool mean=false)
 Re-bin an image using the sum, reducing its size while conserving the total flux. Records the value and position of the re-binned max pixel. More...
 
template<typename imageOutT , typename imageInT >
int mx::improc::imageRebinMean (imageOutT &imout, const imageInT &imin)
 Re-bin an image using the mean. More...
 
template<typename imageOutT , typename imageInT >
int mx::improc::imageRebinMean (imageOutT &imout, int &xMax, int &yMax, typename imageOutT::Scalar &pMax, const imageInT &imin, bool mean=false)
 Re-bin an image using the mean. Records the value and position of the re-binned max pixel. More...
 
template<typename imageOutT , typename imageInT >
int mx::improc::imageRebinMeanReject (imageOutT &imout, const imageInT &imin)
 Re-bin an image, takes the mean with a min/max rejection. More...
 
template<typename imageOutT , typename imageInT >
int mx::improc::imageRebinMeanReject (imageOutT &imout, int &xMax, int &yMax, typename imageOutT::Scalar &pMax, const imageInT &imin)
 Re-bin an image, takes the mean with a min/max rejection. Records the value and position of the re-binned max pixel. More...
 
template<typename imageOutT , typename imageInT >
void mx::improc::imageDownSample (imageOutT &imout, const imageInT &imin)
 Down-sample an image, reducing its size while conserving the total flux. More...