Skip to content

unienv_interface.transformations.image_resize

Classes:

Name Description
ImageResizeTransformation

ImageResizeTransformation

ImageResizeTransformation(new_height: int, new_width: int)

Bases: DataTransformation

Methods:

Name Description
get_target_space_from_source
transform
direction_inverse
serialize
deserialize_from
close

Attributes:

Name Type Description
has_inverse
new_height
new_width

has_inverse class-attribute instance-attribute

has_inverse = True

new_height instance-attribute

new_height = new_height

new_width instance-attribute

new_width = new_width

get_target_space_from_source

get_target_space_from_source(source_space)

transform

transform(source_space, data)

direction_inverse

direction_inverse(source_space=None)

serialize

serialize(
    source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None,
) -> Dict[str, Any]

deserialize_from classmethod

deserialize_from(
    json_data: Dict[str, Any],
    source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None,
) -> ImageResizeTransformation

close

close()