memory safety test added

pull/13383/head
Alexandre Benoit 13 years ago
parent c02b5f1d45
commit 69b8f304d7
  1. 7
      modules/contrib/src/retina.cpp

@ -77,19 +77,20 @@ namespace cv
Retina::Retina(const std::string parametersSaveFile, const cv::Size inputSize)
{
_retinaFilter = 0;
_retinaFilter = 0;
_init(parametersSaveFile, inputSize, true, RETINA_COLOR_BAYER, false);
}
Retina::Retina(const std::string parametersSaveFile, const cv::Size inputSize, const bool colorMode, RETINA_COLORSAMPLINGMETHOD colorSamplingMethod, const bool useRetinaLogSampling, const double reductionFactor, const double samplingStrenght)
{
_retinaFilter = 0;
_init(parametersSaveFile, inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght);
_init(parametersSaveFile, inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght);
};
Retina::~Retina()
{
delete _retinaFilter;
if (_retinaFilter)
delete _retinaFilter;
}
void Retina::setColorSaturation(const bool saturateColors, const float colorSaturationValue)

Loading…
Cancel
Save