Ask Your Question

Revision history [back]

Example Stitching_detailed and refine_mask

Hi,

I have tried example opencv\samples\cpp\stitching_detailed.cpp and I have got an problem with parameters --ba_refine_mask (mask). in this sample five parameters are defined at line 534-538

if (ba_refine_mask[0] == 'x') refine_mask(0, 0) = 1;
if (ba_refine_mask[1] == 'x') refine_mask(0, 1) = 1;
if (ba_refine_mask[2] == 'x') refine_mask(0, 2) = 1;
if (ba_refine_mask[3] == 'x') refine_mask(1, 1) = 1;
if (ba_refine_mask[4] == 'x') refine_mask(1, 2) = 1;

If we look now in code of opencv\modules\stitching\src\motion_estimators.cpp at line 407, 417, 427 and 437 only refine_mask(0, 0), refine_mask(0, 2), refine_mask(1, 1) and refine_mask(1, 2) are used.

So In opencv\samples\cpp\stitching_detailed.cpp parameter ba_refine_mask[1] seems to be unused. Is ir right?

Thanks for your answer.