added access methods to retreive retina input and output buffers sizes

This commit is contained in:
Alexandre Benoit 2012-01-30 09:40:02 +00:00
parent bb23288c3d
commit 3892ce1f73
2 changed files with 21 additions and 0 deletions

View File

@ -165,6 +165,16 @@ public:
virtual ~Retina();
/**
* retreive retina input buffer size
*/
Size inputSize();
/**
* retreive retina output buffer size
*/
Size outputSize();
/**
* try to open an XML retina parameters file to adjust current retina instance setup
* => if the xml file does not exist, then default setup is applied

View File

@ -93,6 +93,17 @@ Retina::~Retina()
delete _retinaFilter;
}
/**
* retreive retina input buffer size
*/
Size Retina::inputSize(){return cv::Size(_retinaFilter->getInputNBcolumns(), _retinaFilter->getInputNBrows());}
/**
* retreive retina output buffer size
*/
Size Retina::outputSize(){return cv::Size(_retinaFilter->getOutputNBcolumns(), _retinaFilter->getOutputNBrows());}
void Retina::setColorSaturation(const bool saturateColors, const float colorSaturationValue)
{
_retinaFilter->setColorSaturation(saturateColors, colorSaturationValue);