| 61 | img[y,x] = 128 |
| 62 | |
| 63 | class Mark(): |
| 64 | def __init__(self, line): |
| 65 | self.line = line |
| 66 | |
| 67 | def draw(self, dc, f, **key): |
| 68 | dc.SetPen(wx.Pen((255,0,0), width=2, style=wx.SOLID)) |
| 69 | dc.DrawLines([f(*i) for i in self.line]) |
| 70 | |
| 71 | class Plugin(Tool): |
| 72 | title = 'Graph Cut' |