Commit 540415dc authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #11989 from csukuangfj:patch_2

parents f058b5fb 84f2f376
......@@ -513,10 +513,6 @@ bool findChessboardCorners(InputArray image_, Size pattern_size,
{
cvtColor(img, img, COLOR_BGR2GRAY);
}
else
{
img.clone();
}
int prev_sqr_size = 0;
......@@ -578,6 +574,7 @@ bool findChessboardCorners(InputArray image_, Size pattern_size,
{
if (flags & CALIB_CB_NORMALIZE_IMAGE)
{
img = img.clone();
equalizeHist(img, img);
}
......
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