Fixed negative Odom/ImageDecimation not handled

This commit is contained in:
matlabbe
2021-06-24 12:44:18 -04:00
parent dddf6378ae
commit 5a676e9032
2 changed files with 38 additions and 18 deletions
+2 -2
View File
@@ -585,11 +585,11 @@ void Memory::parseParameters(const ParametersMap & parameters)
UASSERT_MSG(_maxStMemSize >= 0, uFormat("value=%d", _maxStMemSize).c_str());
UASSERT_MSG(_similarityThreshold >= 0.0f && _similarityThreshold <= 1.0f, uFormat("value=%f", _similarityThreshold).c_str());
UASSERT_MSG(_recentWmRatio >= 0.0f && _recentWmRatio <= 1.0f, uFormat("value=%f", _recentWmRatio).c_str());
if(_imagePreDecimation == 0)
if(_imagePreDecimation <= 0)
{
_imagePreDecimation = 1;
}
if(_imagePostDecimation == 0)
if(_imagePostDecimation <= 0)
{
_imagePostDecimation = 1;
}