Lines Matching refs:iMinLevel
67 void ThresholdingParam(IplImage *imgGray, int iNumLayers, int &iMinLevel, int &iMaxLevel, float &st…
274 int iMinLevel = 0, iMaxLevel = 255; in FindContours() local
276 ThresholdingParam(img, nLayers / 2, iMinLevel, iMaxLevel, step, power, 4); in FindContours()
277 int iMinLevelPrev = iMinLevel; in FindContours()
278 int iMaxLevelPrev = iMinLevel; in FindContours()
284 if (iMinLevelPrev < iMinLevel) in FindContours()
286 iMaxLevelPrev += iMinLevel - iMinLevelPrev; in FindContours()
287 iMinLevelPrev = iMinLevel; in FindContours()
292 if (iMinLevelPrev < iMinLevel) in FindContours()
293 iMinLevelPrev = iMinLevel; in FindContours()
298 step = float(iMinLevelPrev - iMinLevel + iMaxLevel - iMaxLevelPrev) / float(n); in FindContours()
301 for (level = (float)iMinLevel; level < iMinLevelPrev && j < nLayers; level += step, j++) in FindContours()
613 void ThresholdingParam(IplImage *imgGray, int iNumLayers, int &iMinLevel, int &iMaxLevel, float &st… in ThresholdingParam() argument
635 iMinLevel = i; in ThresholdingParam()
642 if (iMaxLevel <= iMinLevel) in ThresholdingParam()
645 iMinLevel = 0; in ThresholdingParam()
650 for (i = iMinLevel; i < (iMinLevel + iMaxLevel) / 2; i++) in ThresholdingParam()
652 for (i = (iMinLevel + iMaxLevel) / 2; i < iMaxLevel; i++) in ThresholdingParam()
656 step = float(iMaxLevel - iMinLevel) / float(iNumLayers); in ThresholdingParam()