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

Method set_hist

imagepy/ui/widgets/cmappanel.py:124–126  ·  view source on GitHub ↗
(self, hist)

Source from the content-addressed store, hash-verified

122 wx.BufferedPaintDC(self, self.buffer)
123
124 def set_hist(self, hist):
125 self.hist = (hist*255/hist.max()).astype(np.uint8)
126 self.update()
127
128 def set_pts(self, pts):
129 self.x1, self.x2 = x1, x2

Callers 5

on_applyMethod · 0.45
on_clearMethod · 0.45
on_resetMethod · 0.45
on_invertMethod · 0.45
cmappanel.pyFile · 0.45

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected