CGraphicsConversion

class ikomia.core.pycore.CGraphicsConversion

Expose conversion operations based on graphics objects and images.

Import

from ikomia.core import CGraphicsConversion

Methods

__init__(arg1)

__init__( (object)self) -> None :

graphics_to_binary_mask(self, graphics)

Convert from a list of given graphics to a binary mask.

Details

__init__((object)arg1) None
__init__( (object)self) -> None :

Default constructor

__init__( (object)self, (int)width, (int)height) -> None :

Construct a graphics conversion object handling images of given dimensions.

Args:

width (int): image width

height (int): image height

graphics_to_binary_mask((CGraphicsConversion)self, (object)graphics) object :

Convert from a list of given graphics to a binary mask.

Parameters:

graphics (list of CGraphicsItem)