Morpholo project
Public Member Functions | List of all members
Transform2Quilt Class Referenceabstract

The Transform2Quilt class. More...

#include <transform2quilt.h>

Inheritance diagram for Transform2Quilt:
Inheritance graph
[legend]

Public Member Functions

virtual void applyTransform (Mat &leftImage, Mat &rightImage, Mat &leftData, Mat &rightData)=0
 applyTransform Virtual method to be implemented to create a mapping algorithm More...
 
virtual void getIntermediateView (Mat &leftImage, Mat &rightImage, Mat &leftData, Mat &rightData, float pos, Mat &dst1, Mat &dst2)=0
 getIntermediateView Virtual method to calculate motion vectors between images leftImage and rightImage More...
 
void getQuilt (Mat &leftImage, Mat &rightImage, int row, int col, Mat &quilt)
 getQuilt This method outputs the quilt image, given the right and left image, applying the transform implemented method (see virtual methods). More...
 
void getQuiltDecimated (Mat &leftImage, Mat &rightImage, int row, int col, int decimation, Mat &quilt)
 getQuiltDecimated The same method as getQuilt, but the views are generated decimating the levels. More...
 
bool loadLogo (QString fileName, int w, int h)
 loadLogo More...
 
void applyLogo (Mat &dst1, Mat &dst2)
 applyLogo More...
 

Detailed Description

The Transform2Quilt class.

Fundamental class to implement an algorithm to produce, from two views (undistorted and aligned from stereo webcam) intermediate views. The resulting quilt can feed the holoplay display.

Member Function Documentation

◆ applyLogo()

void Transform2Quilt::applyLogo ( Mat &  dst1,
Mat &  dst2 
)

applyLogo

Method to impress the logo in dst1 and dst2. By default the logo image is put in the upper left position of the original image.

Parameters
dst1Destination image dst1
dst2Destination image dst2

◆ applyTransform()

virtual void Transform2Quilt::applyTransform ( Mat &  leftImage,
Mat &  rightImage,
Mat &  leftData,
Mat &  rightData 
)
pure virtual

applyTransform Virtual method to be implemented to create a mapping algorithm

Parameters
leftImagecv::Mat left image
rightImagecv::Mat right image
leftDatacv::Mat data output for left image
rightDatacv::Mat data output for right image

Implemented in Disparity2Quilt, and Deepflow2Quilt.

◆ getIntermediateView()

virtual void Transform2Quilt::getIntermediateView ( Mat &  leftImage,
Mat &  rightImage,
Mat &  leftData,
Mat &  rightData,
float  pos,
Mat &  dst1,
Mat &  dst2 
)
pure virtual

getIntermediateView Virtual method to calculate motion vectors between images leftImage and rightImage

Parameters
leftImagecv::Mat left image
rightImagecv::Mat right image
leftDatacv::Mat data input for left image
rightDatacv::Mat data input for right image
posPosition of the view
dst1Destination from left
dst2Destination from right

Implemented in Disparity2Quilt, and Deepflow2Quilt.

◆ getQuilt()

void Transform2Quilt::getQuilt ( Mat &  leftImage,
Mat &  rightImage,
int  row,
int  col,
Mat &  quilt 
)

getQuilt This method outputs the quilt image, given the right and left image, applying the transform implemented method (see virtual methods).

Parameters
leftImagecv::Mat left image
rightImagecv::Mat right image
rowNumber of quilt rows
colNumber of quilt columns
quiltOutput matrix cv::Mat CV_8UC3

◆ getQuiltDecimated()

void Transform2Quilt::getQuiltDecimated ( Mat &  leftImage,
Mat &  rightImage,
int  row,
int  col,
int  decimation,
Mat &  quilt 
)

getQuiltDecimated The same method as getQuilt, but the views are generated decimating the levels.

Parameters
leftImagecv::Mat left image
rightImagecv::Mat right image
rowNumber of quilt rows
colNumber of quilt columns
decimationInteger level of decimation
quiltOutput matrix cv::Mat CV_8UC3

◆ loadLogo()

bool Transform2Quilt::loadLogo ( QString  fileName,
int  w,
int  h 
)

loadLogo

Method to load, if present, the logo image.

Parameters
fileNameThe logo filename
wWidth of original image
hHeight of the original image
Returns
True if image is present

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