Hi Bobby,
Just look at the ImageView source code, you will have the answer. The interesting lines are:
1. creation of the ROI
self.roi.setZValue(20)
self.view.addItem(self.roi)
2. creation of the plotDataItem
self.roiCurve
= self.ui.roiPlot.plot()
3. connection of the ROI to its data in the PlotWidget
self.roi.sigRegionChanged.connect(
self.roiChanged)
What you could do is to consider not a single ROI but rather a list of ROI that could be connected to a list of PlotDataItem through the signal sigRegionChanged. The best way to do so is to subclass ImageView. That should be quite simple to do. Let us know if you face some troubles coding it!
Regards,
Vincent