added access methods to retreive retina input and output buffers sizes

pull/13383/head
Alexandre Benoit 13 years ago
parent bb23288c3d
commit 3892ce1f73
  1. 10
      modules/contrib/include/opencv2/contrib/retina.hpp
  2. 11
      modules/contrib/src/retina.cpp

@ -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

@ -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);

Loading…
Cancel
Save