ROI with hole/s

39 views
Skip to first unread message

itay peled

unread,
Nov 12, 2019, 3:44:16 AM11/12/19
to pyqtgraph
does someone have an idea how to create an ROI with hole/s (by sub-classing ROI and implement some changes)?

Thanks

BPT

unread,
Dec 17, 2019, 10:26:03 AM12/17/19
to pyqtgraph
If you are considering a DICOM-type ROI with multiple contour segments (some of which are holes), you can draw this with a pg.PlotDataItem.
You can "chain" together segments of an ROI with holes by inserting a (numpy.inf,numpy.inf) point in between the segments, and setting the "connect" option to connect = 'finite'. 
Reply all
Reply to author
Forward
0 new messages