Multiple ColorChecker Detection. This code implements a multiple colorChecker detection method, as described in the paper Fast and Robust Multiple ColorChecker Detection.
error lines may be added to get wrong rectangle, so inf is got.
for (int kk = 0; kk < k; kk ++)
{
if (abs(atan2(Lc[kk].y / Lc[kk].z, Lc[kk].x / Lc[kk].z) - atan2(ln.y / ln.z, ln.x / ln.z)) < 0.3)
{
replace = 0;
break;
}
}
the code can be added in CBoundMin::calculate() to control add the lines.
error lines may be added to get wrong rectangle, so inf is got. for (int kk = 0; kk < k; kk ++) { if (abs(atan2(Lc[kk].y / Lc[kk].z, Lc[kk].x / Lc[kk].z) - atan2(ln.y / ln.z, ln.x / ln.z)) < 0.3) { replace = 0; break; } } the code can be added in CBoundMin::calculate() to control add the lines.