small fix
This commit is contained in:
parent
8524056e0c
commit
7694fc1825
|
@ -153,7 +153,7 @@ struct LinearizeBase {
|
||||||
} else {
|
} else {
|
||||||
valid = cam.project(point3d, proj);
|
valid = cam.project(point3d, proj);
|
||||||
}
|
}
|
||||||
if (!valid) return;
|
if (!valid || !proj.array().isFinite().all()) return;
|
||||||
|
|
||||||
Eigen::Vector2d residual = proj - corner_pos;
|
Eigen::Vector2d residual = proj - corner_pos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue