Normalize a set of serializable non mutable ROIs in BLISS
For ROIs i have to play with 4 representations of the data from BLISS to FLINT.
That's not very convenient. Too painful to update.
- BLISS ROI -> dict for the GUI -> SILX ROI -> result to BLISS as dict -> tuple -> BLISS ROI
It would be good to just share the ROI as data container.
The pipeline will became this one:
- BLISS ROI -> SILX ROI -> BLISS ROI
So we improve the flexibility a lot: easy to add new ROIs.
class RectangleROI(NamedTuple): x: float y: float width: float height: float class ArcROI(NamedTuple): ...
That's abstract data representation without behaviour.
Each transformation add it's own complexity steps with data representation issues.
With this kind of object i could just do that
- BLISS ROI <-> FLINT ROI