Commit 69b8f304 authored by Alexandre Benoit's avatar Alexandre Benoit

memory safety test added

parent c02b5f1d
...@@ -77,19 +77,20 @@ namespace cv ...@@ -77,19 +77,20 @@ namespace cv
Retina::Retina(const std::string parametersSaveFile, const cv::Size inputSize) Retina::Retina(const std::string parametersSaveFile, const cv::Size inputSize)
{ {
_retinaFilter = 0; _retinaFilter = 0;
_init(parametersSaveFile, inputSize, true, RETINA_COLOR_BAYER, false); _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) 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; _retinaFilter = 0;
_init(parametersSaveFile, inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght); _init(parametersSaveFile, inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght);
}; };
Retina::~Retina() Retina::~Retina()
{ {
delete _retinaFilter; if (_retinaFilter)
delete _retinaFilter;
} }
void Retina::setColorSaturation(const bool saturateColors, const float colorSaturationValue) void Retina::setColorSaturation(const bool saturateColors, const float colorSaturationValue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment