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

Method __init__

imagepy/core/wraper/imageplus.py:15–33  ·  view source on GitHub ↗
(self, imgs, title=None, is3d=False)

Source from the content-addressed store, hash-verified

13class ImagePlus:
14 """ImagePlus: a class to make operation more flexible """
15 def __init__(self, imgs, title=None, is3d=False):
16 self.set_title(title)
17 self.snap = None
18 self.cur = 0
19 self.dirty = False
20 self.scrchanged = False
21 self.roi = None
22 self.mark = None
23 self.msk = None
24 self.mskmode = None
25 self.lut = ColorManager.get_lut('grays')
26 self.backimg = None
27 self.backmode = (0.5, 'Mean')
28 self.tool = None
29 self.data = None
30 self.info = {}
31 self.unit = (1, 'pix')
32 self.range = (0, 255)
33 self.set_imgs(imgs)
34
35 def update(self): self.dirty = True
36

Callers

nothing calls this directly

Calls 3

set_titleMethod · 0.95
set_imgsMethod · 0.95
get_lutMethod · 0.80

Tested by

no test coverage detected