Superpixel Benchmark
Superpixel benchmark, tools and algorithms.
Public Member Functions | List of all members
ShearDriver Class Reference

Vertical and horizontal shear driver. More...

#include <robustness_tool.h>

Inheritance diagram for ShearDriver:
RobustnessToolDriver

Public Member Functions

 ShearDriver (std::string type, int crop, const std::vector< float > &m)
 Constructor. More...
 
void computeImage (const cv::Mat &image, cv::Mat &computed_image)
 Apply the transformation with the current parameters. More...
 
void computeSegmentation (const cv::Mat &segmentation, cv::Mat &computed_segmentation)
 Apply the transformation with the current parameters on the ground truth. More...
 
bool next ()
 Select next parameter set. More...
 
std::string identify ()
 Identify current parameter settings. More...
 

Detailed Description

Vertical and horizontal shear driver.

Constructor & Destructor Documentation

ShearDriver::ShearDriver ( std::string  type,
int  crop,
const std::vector< float > &  m 
)

Constructor.

Parameters
[in]typehorizontal or vertical [in] crop crop the image
[in]mstrenght of shear

Member Function Documentation

void ShearDriver::computeImage ( const cv::Mat &  image,
cv::Mat &  computed_image 
)
virtual

Apply the transformation with the current parameters.

Parameters
[in]imageinput image to apply transformation on
[out]computed_imagetransformed image

Implements RobustnessToolDriver.

void ShearDriver::computeSegmentation ( const cv::Mat &  segmentation,
cv::Mat &  computed_segmentation 
)
virtual

Apply the transformation with the current parameters on the ground truth.

Parameters
[in]segmentationsegmentation to transform
[out]computed_segmentationtransformed segmentation

Implements RobustnessToolDriver.

std::string ShearDriver::identify ( )
virtual

Identify current parameter settings.

Returns
identifier for current parameter setting

Implements RobustnessToolDriver.

bool ShearDriver::next ( )
virtual

Select next parameter set.

Implements RobustnessToolDriver.


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