Skip to content

Commit

Permalink
Preset transformation matrices appear to be overwritten - assume inst…
Browse files Browse the repository at this point in the history
…ead that one exists
  • Loading branch information
jonclayden committed Sep 24, 2024
1 parent b7e7476 commit 8b61df2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reg-lib/_reg_aladin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ void reg_aladin<T>::InitialiseRegistration()
reg_thresholdImage<T>(this->FloatingPyramid[l],this->FloatingLowerThreshold, this->FloatingUpperThreshold);
}

// Initialise the transformation
// Initialise the transformation - for R this is guaranteed to have been done
#ifndef HAVE_R
if (this->InputTransformName != NULL)
{
#ifndef HAVE_R
if (FILE *aff = fopen(this->InputTransformName, "r")) {
fclose(aff);
}
Expand All @@ -338,7 +338,6 @@ void reg_aladin<T>::InitialiseRegistration()
reg_exit();
}
reg_tool_ReadAffineFile(this->TransformationMatrix, this->InputTransformName);
#endif
}
else // No input affine transformation
{
Expand Down Expand Up @@ -372,6 +371,7 @@ void reg_aladin<T>::InitialiseRegistration()
this->TransformationMatrix->m[2][3] = floatingRealPosition[2] - referenceRealPosition[2];
}
}
#endif
}
/* *************************************************************** */
template<class T>
Expand Down

0 comments on commit 8b61df2

Please sign in to comment.