Skip to content

Commit b084d1e

Browse files
author
nils-hamel
committed
Restoring previous optimal intersection computation for research
1 parent 110885e commit b084d1e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/framework-structure.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,27 @@ void Structure::computeOptimalPosition(unsigned int lowViewpoint){
279279

280280
}
281281

282+
//void Structure::computeOptimalPosition(){
283+
// Eigen::Vector3d acc(Eigen::Vector3d::Zero());
284+
// unsigned int count(0);
285+
//
286+
// for(unsigned int i(0); i<features.size(); i++){
287+
// for(unsigned int j(i+1); j<features.size(); j++){
288+
//
289+
// acc+=compute_intersection(
290+
// features[i]->getViewpoint()->getPosition(),
291+
// features[i]->getModel(),
292+
// features[j]->getViewpoint()->getPosition(),
293+
// features[j]->getModel()
294+
// );
295+
// count++;
296+
//
297+
// }
298+
// }
299+
// position=acc/count;
300+
// optimised=true;
301+
//}
302+
282303
void Structure::computeRadius(unsigned int lowViewpoint){
283304

284305
// Feature position in absolute frame

0 commit comments

Comments
 (0)