// We are not trying to find out which of the moving points corresponds to which of the fixed points. Instead, we will simply take that rotation whose absolute value is below 180°.
while (rotation > PI) {
// We are not trying to find out which of the moving points corresponds to which of the fixed points. Instead, we will simply take that 180° rotation whose absolute value is below 90°.
while (rotation > PI/2) {
rotation -= PI;
}
while (rotation <= -PI) {
while (rotation <= -PI/2) {
rotation += PI;
}
@@ -858,7 +858,7 @@ function processImage(imageIndex, imageToAnalyzeTitle) {
if ((currentImageEmptyRegionsROIIndex > -1) && (currentImageLimitingROIIndex > -1)) {
roiManager("AND"); // TODO: It seems intersecting with "Empty Regions Between Fiducials From First Image" can yield shifted results, resulting in significantly incorrect are measurements later.
roiManager("AND"); // TODO: BUG: It seems intersecting with "Empty Regions Between Fiducials From First Image" can yield shifted results, resulting in significantly incorrect area measurements later.
if (selectionType > -1) {
setSelectionName(imageToAnalyzeTitle + " Empty Regions Between Fiducials");