open3d.t.geometry.Image¶
-
class
open3d.t.geometry.
Image
¶ The Image class stores image with customizable rols, cols, channels, dtype and device.
-
__init__
(*args, **kwargs)¶ Overloaded function.
__init__(self: open3d.cpu.pybind.t.geometry.Image, rows: int = 0, cols: int = 0, channels: int = 1, dtype: open3d.cpu.pybind.core.Dtype = Float32, device: open3d.cpu.pybind.core.Device = CPU:0) -> None
Row-major storage is used, similar to OpenCV. Use (row, col, channel) indexing order for image creation and accessing. In general, (r, c, ch) are the preferred variable names for consistency, and avoid using width, height, u, v, x, y for coordinates.
__init__(self: open3d.cpu.pybind.t.geometry.Image, tensor: open3d.cpu.pybind.core.Tensor) -> None
Construct from a tensor. The tensor won’t be copied and memory will be shared.
-
as_tensor
(self: open3d.cpu.pybind.t.geometry.Image) → open3d.cpu.pybind.core.Tensor¶
-
clear
(self)¶ Clear stored data.
- Returns
open3d.cpu.pybind.t.geometry.Image
-
static
from_legacy_image
(image_legacy: open3d.cpu.pybind.geometry.Image, device: open3d.cpu.pybind.core.Device = CPU:0) → open3d.cpu.pybind.t.geometry.Image¶ Create a Image from a legacy Open3D Image.
-
get_max_bound
(self)¶ Compute max 2D coordinates for the data ({rows, cols}).
- Returns
open3d.cpu.pybind.core.Tensor
-
get_min_bound
(self)¶ Compute min 2D coordinates for the data (always {0, 0}).
- Returns
open3d.cpu.pybind.core.Tensor
-
is_empty
(self)¶ Is any data stored?
- Returns
bool
-
to_legacy_image
(self)¶ Convert to legacy Image type.
- Returns
open3d.cpu.pybind.geometry.Image
-
property
channels
¶ Get the number of channels of the image.
-
property
columns
¶ Get the number of columns of the image.
-
property
device
¶ Get the device of the image.
-
property
dtype
¶ Get dtype of the image
-
property
rows
¶ Get the number of rows of the image.
-