MCPcopy Create free account
hub / github.com/Image-Py/imagepy / run

Method run

imagepy/menus/Edit/edit_plg.py:85–92  ·  view source on GitHub ↗
(self, ips, imgs, para = None)

Source from the content-addressed store, hash-verified

83 note = ['all']
84
85 def run(self, ips, imgs, para = None):
86 if ips.roi == None:
87 ClipBoardManager.img = ips.get_subimg().copy()
88 ClipBoardManager.roi = RectangleRoi(0, 0, ips.size[1], ips.size[0])
89 else:
90 box = ips.roi.get_box()
91 ClipBoardManager.img = ips.get_subimg().copy()
92 ClipBoardManager.roi = ips.roi.affine(np.eye(2), (-box[0], -box[1]))
93
94class Sketch(Filter):
95 ## TODO: What is this?

Callers

nothing calls this directly

Calls 4

RectangleRoiClass · 0.90
get_subimgMethod · 0.80
affineMethod · 0.80
get_boxMethod · 0.45

Tested by

no test coverage detected