Skip to content

Commit

Permalink
BUG: Fix out of bounds NCC value in viewport clipping
Browse files Browse the repository at this point in the history
Regression introduced in 4704f9b ("BUG: Clip bounds of DRR projection to the
bounds of the radiograph", 2023-11-01).

Previously whenever a volume was outside the bounds of a radiograph image the
NCC value would be appended as 0. In this case it is possible that the PSO could
try to move the volume to be outside the bounds of all the radiographs.
  • Loading branch information
NicerNewerCar authored and jcfr committed Mar 14, 2024
1 parent a476d70 commit e78b70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libautoscoper/src/Tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ std::vector<double> Tracker::trackFrame(unsigned int volumeID, double* xyzypr) c
double viewport[4];
if (!this->calculate_viewport(modelview, *views_[i]->camera(), viewport)) {
std::cerr << "Tracker::trackFrame(): Volume " << volumeID << " is not in view of camera " << i << std::endl;
correlations.push_back(0.0);
correlations.push_back(9999.0);
continue;
}

Expand Down

0 comments on commit e78b70e

Please sign in to comment.