monai.deploy.core.domain.Image

class monai.deploy.core.domain.Image(data, metadata=None)[source]

Bases: monai.deploy.core.domain.domain.Domain

_summary_

Parameters

Domain (_type_) – _description_

This class encapsulates array-lile object along with its associated metadata dictionary.

It is designed to represent an image object, without constraining the specific format of its data. Derived classes should be created for more specific type of images. The default implementation assumes the internal data object is a ndarray, and the metadata dictionary is expected to hold the key attributes associated with the original image, e.g., for image converted from DICOM instances, the pixel spacings, image orientation patient, etc.

Parameters
  • data (Union[ArrayLike]) – Numpy Array object.

  • metadata (Optional[Dict], optional) – A dictionary of the object’s metadata. Defaults to None.

Methods

__init__(data[, metadata])

This class encapsulates array-lile object along with its associated metadata dictionary.

asnumpy()

rtype

Any

metadata()

rtype

Dict

__init__(data, metadata=None)[source]

This class encapsulates array-lile object along with its associated metadata dictionary.

It is designed to represent an image object, without constraining the specific format of its data. Derived classes should be created for more specific type of images. The default implementation assumes the internal data object is a ndarray, and the metadata dictionary is expected to hold the key attributes associated with the original image, e.g., for image converted from DICOM instances, the pixel spacings, image orientation patient, etc.

Parameters
  • data (Union[ArrayLike]) – Numpy Array object.

  • metadata (Optional[Dict], optional) – A dictionary of the object’s metadata. Defaults to None.