Skip to content

Commit

Permalink
BUG: Fix origin value in FindBiasedFeatures 2D algorithm (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarquisbq authored Feb 21, 2023
1 parent 08083d4 commit df6a76e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ void FindBoundingBoxFeatures::find_boundingboxfeatures2D()
float xOrigin = 0.0f;
float yOrigin = 0.0f;
// float zOrigin = 0.0f;
const FloatVec3Type imageOrigin = imageGeom->getOrigin();

float boundbox[6] = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
float coords[4] = {0.0f, 0.0f, 0.0f, 0.0f};
Expand All @@ -338,6 +339,8 @@ void FindBoundingBoxFeatures::find_boundingboxfeatures2D()
{
xPoints = imageGeom->getYPoints();
yPoints = imageGeom->getZPoints();
xOrigin = imageOrigin[1];
yOrigin = imageOrigin[2];
spacing = imageGeom->getSpacing();
centroidShift0 = 1;
centroidShift1 = 2;
Expand All @@ -346,6 +349,8 @@ void FindBoundingBoxFeatures::find_boundingboxfeatures2D()
{
xPoints = imageGeom->getXPoints();
yPoints = imageGeom->getZPoints();
xOrigin = imageOrigin[0];
yOrigin = imageOrigin[2];
spacing = imageGeom->getSpacing();
centroidShift0 = 0;
centroidShift1 = 2;
Expand All @@ -354,6 +359,8 @@ void FindBoundingBoxFeatures::find_boundingboxfeatures2D()
{
xPoints = imageGeom->getXPoints();
yPoints = imageGeom->getYPoints();
xOrigin = imageOrigin[0];
yOrigin = imageOrigin[1];
spacing = imageGeom->getSpacing();
centroidShift0 = 0;
centroidShift1 = 1;
Expand Down

0 comments on commit df6a76e

Please sign in to comment.