MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / area

Method area

utils/visualizer.py:143–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 return mask_util.decode(rle)[:, :]
142
143 def area(self):
144 return self.mask.sum()
145
146 def bbox(self):
147 p = mask_util.frPyObjects(self.polygons, self.height, self.width)

Callers 2

overlay_instancesMethod · 0.80
draw_binary_maskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected