Shortcuts

mmedit.datasets.transforms.get_masked_image

Module Contents

Classes

GetMaskedImage

Get masked image.

class mmedit.datasets.transforms.get_masked_image.GetMaskedImage(img_key='gt', mask_key='mask', out_key='img', zero_value=127.5)[源代码]

Bases: mmcv.transforms.base.BaseTransform

Get masked image.

参数
  • img_key (str) – Key for clean image. Default: ‘gt’.

  • mask_key (str) – Key for mask image. The mask shape should be (h, w, 1) while ‘1’ indicate holes and ‘0’ indicate valid regions. Default: ‘mask’.

  • img_key – Key for output image. Default: ‘img’.

  • zero_value (float) – Pixel value of masked area.

transform(results)[源代码]

transform function.

参数

results (dict) – A dict containing the necessary information and data for augmentation.

返回

A dict containing the processed data and information.

返回类型

dict

__repr__()[源代码]

Return repr(self).

Read the Docs v: latest
Versions
master
latest
stable
zyh-doc-notfound-extend
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.