Skip to content
Snippets Groups Projects
Commit 714ae848 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

rebase

parent 14d50ab0
No related branches found
No related tags found
1 merge request!2234Convert mask coords to bins before passing to detector (#823)
Pipeline #123621 passed
...@@ -54,9 +54,9 @@ void MaskUnitsConverter::convertMask(MaskItem* maskItem) ...@@ -54,9 +54,9 @@ void MaskUnitsConverter::convertMask(MaskItem* maskItem)
pointItem->setPosY(convert(pointItem->posY(), Axis::Y)); pointItem->setPosY(convert(pointItem->posY(), Axis::Y));
} }
} else if (auto* vlineItem = dynamic_cast<VerticalLineItem*>(maskItem)) { } else if (auto* vlineItem = dynamic_cast<VerticalLineItem*>(maskItem)) {
vlineItem->setPosX(convert(vlineItem->posX(), Axis::X)); vlineItem->setPos(convert(vlineItem->pos(), Axis::X));
} else if (auto* hlineItem = dynamic_cast<HorizontalLineItem*>(maskItem)) { } else if (auto* hlineItem = dynamic_cast<HorizontalLineItem*>(maskItem)) {
hlineItem->setPosY(convert(hlineItem->posY(), Axis::Y)); hlineItem->setPos(convert(hlineItem->pos(), Axis::Y));
} else if (auto* ellItem = dynamic_cast<EllipseItem*>(maskItem)) { } else if (auto* ellItem = dynamic_cast<EllipseItem*>(maskItem)) {
double xc = ellItem->xCenter(); double xc = ellItem->xCenter();
double yc = ellItem->yCenter(); double yc = ellItem->yCenter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment