OpenCV  2.4.13.7
Open Source Computer Vision
cv::LogPolar_Interp Class Reference

#include <contrib.hpp>

Public Member Functions

 LogPolar_Interp ()
 
 LogPolar_Interp (int w, int h, Point2i center, int R=70, double ro0=3.0, int interp=INTER_LINEAR, int full=1, int S=117, int sp=1)
 
const Mat to_cortical (const Mat &source)
 
const Mat to_cartesian (const Mat &source)
 
 ~LogPolar_Interp ()
 

Protected Member Functions

void create_map (int M, int N, int R, int S, double ro0)
 

Protected Attributes

Mat Rsri
 
Mat Csri
 
int S
 
int R
 
int M
 
int N
 
int top
 
int bottom
 
int left
 
int right
 
double ro0
 
double romax
 
double a
 
double q
 
int interp
 
Mat ETAyx
 
Mat CSIyx
 

Detailed Description

Bilinear interpolation technique.

The value of a desired cortical pixel is obtained through a bilinear interpolation of the values of the four nearest neighbouring Cartesian pixels to the center of the RF. The same principle is applied to the inverse transformation.

More details can be found in http://dx.doi.org/10.1007/978-3-642-23968-7_5

Constructor & Destructor Documentation

§ LogPolar_Interp() [1/2]

cv::LogPolar_Interp::LogPolar_Interp ( )
inline

§ LogPolar_Interp() [2/2]

cv::LogPolar_Interp::LogPolar_Interp ( int  w,
int  h,
Point2i  center,
int  R = 70,
double  ro0 = 3.0,
int  interp = INTER_LINEAR,
int  full = 1,
int  S = 117,
int  sp = 1 
)

Constructor

Parameters
wthe width of the input image
hthe height of the input image
centerthe transformation center: where the output precision is maximal
Rthe number of rings of the cortical image (default value 70 pixel)
ro0the radius of the blind spot (default value 3 pixel)
interpinterpolation algorithm
full1 (default value) means that the retinal image (the inverse transform) is computed within the circumscribing circle. 0 means that the retinal image is computed within the inscribed circle.
Sthe number of sectors of the cortical image (default value 70 pixel). Its value is usually internally computed to obtain a pixel aspect ratio equals to 1.
sp1 (default value) means that the parameter S is internally computed. 0 means that the parameter S is provided by the user.

§ ~LogPolar_Interp()

cv::LogPolar_Interp::~LogPolar_Interp ( )

Destructor

Member Function Documentation

§ create_map()

void cv::LogPolar_Interp::create_map ( int  M,
int  N,
int  R,
int  S,
double  ro0 
)
protected

§ to_cartesian()

const Mat cv::LogPolar_Interp::to_cartesian ( const Mat source)

Transformation from cortical image to retinal (inverse log-polar) image.

Parameters
sourcethe cortical image
Returns
the transformed image (retinal image)

§ to_cortical()

const Mat cv::LogPolar_Interp::to_cortical ( const Mat source)

Transformation from Cartesian image to cortical (log-polar) image.

Parameters
sourcethe Cartesian image
Returns
the transformed image (cortical image)

Member Data Documentation

§ a

double cv::LogPolar_Interp::a
protected

§ bottom

int cv::LogPolar_Interp::bottom
protected

§ CSIyx

Mat cv::LogPolar_Interp::CSIyx
protected

§ Csri

Mat cv::LogPolar_Interp::Csri
protected

§ ETAyx

Mat cv::LogPolar_Interp::ETAyx
protected

§ interp

int cv::LogPolar_Interp::interp
protected

§ left

int cv::LogPolar_Interp::left
protected

§ M

int cv::LogPolar_Interp::M
protected

§ N

int cv::LogPolar_Interp::N
protected

§ q

double cv::LogPolar_Interp::q
protected

§ R

int cv::LogPolar_Interp::R
protected

§ right

int cv::LogPolar_Interp::right
protected

§ ro0

double cv::LogPolar_Interp::ro0
protected

§ romax

double cv::LogPolar_Interp::romax
protected

§ Rsri

Mat cv::LogPolar_Interp::Rsri
protected

§ S

int cv::LogPolar_Interp::S
protected

§ top

int cv::LogPolar_Interp::top
protected

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