Solar
Public Member Functions | List of all members
SolAR::api::image::IPerspectiveController Class Referenceabstract

Warps and crops an image given a contour defined with four 2D points. UUID: 4a7d5c34-cd6e-11e7-abc4-cec278b6b50a More...

#include <IPerspectiveController.h>

Inheritance diagram for SolAR::api::image::IPerspectiveController:
Inheritance graph
[legend]
Collaboration diagram for SolAR::api::image::IPerspectiveController:
Collaboration graph
[legend]

Public Member Functions

 IPerspectiveController ()=default
 IPerspectiveController default constructor.
 
virtual ~IPerspectiveController ()=default
 IPerspectiveController default destructor.
 
virtual FrameworkReturnCode correct (const SRef< SolAR::datastructure::Image > inputImg, const std::vector< SolAR::datastructure::Contour2Df > &contours, std::vector< SRef< SolAR::datastructure::Image > > &patches)=0
 Warps and crops an image given a set of contour defined with four 2D points. More...
 
virtual FrameworkReturnCode correct (const SRef< SolAR::datastructure::Image > inputImg, const SolAR::datastructure::Contour2Df &contour, SRef< SolAR::datastructure::Image > &patch)=0
 Warps and crops an image given a contour defined with four 2D points. More...
 

Detailed Description

Warps and crops an image given a contour defined with four 2D points. UUID: 4a7d5c34-cd6e-11e7-abc4-cec278b6b50a

Member Function Documentation

◆ correct() [1/2]

virtual FrameworkReturnCode SolAR::api::image::IPerspectiveController::correct ( const SRef< SolAR::datastructure::Image inputImg,
const SolAR::datastructure::Contour2Df contour,
SRef< SolAR::datastructure::Image > &  patch 
)
pure virtual

Warps and crops an image given a contour defined with four 2D points.

Parameters
[in]inputImgthe original image on which we want to extract sub-image aligned on the 2D contour
[in]contourthe contour defined with four 2D points
[out]patchthe sub-image or patche resulting from the warping and cropping of the original image according to the 2D contour
Returns
FrameworkReturnCode::SUCCESS if succeed, else FrameworkReturnCode::_ERROR.

◆ correct() [2/2]

virtual FrameworkReturnCode SolAR::api::image::IPerspectiveController::correct ( const SRef< SolAR::datastructure::Image inputImg,
const std::vector< SolAR::datastructure::Contour2Df > &  contours,
std::vector< SRef< SolAR::datastructure::Image > > &  patches 
)
pure virtual

Warps and crops an image given a set of contour defined with four 2D points.

Parameters
[in]inputImgthe original image on which we want to extract sub-images aligned on the set of 2D contours
[in]contoursthe set of contours each defined with four 2D points
[out]patchesthe set of sub-images or patches resulting from the warping and cropping of the original image according to the set of 2D contours
Returns
FrameworkReturnCode::SUCCESS if succeed, else FrameworkReturnCode::_ERROR.

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