Skip to content

unienv_interface.transformations.image_resize

ImageResizeTransformation

ImageResizeTransformation(new_height: int, new_width: int)

Bases: DataTransformation

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()