irtk.ioΒΆ

Functions

exr2png(image_path[, verbose])

Converts EXR images to PNG format recursively.

linear_to_srgb(l)

Converts a linear color space image to sRGB.

read_image(image_path[, is_srgb, remove_alpha])

Reads an image from a file.

read_mesh(mesh_path)

Reads a mesh from a file.

srgb_to_linear(s)

Converts an sRGB image to linear color space.

to_linear(image)

Converts an image to linear color space.

to_numpy(data)

Converts a torch tensor to a numpy array.

to_srgb(image)

Converts an image to sRGB color space.

to_torch(data, dtype)

Converts a numpy array to a torch tensor.

to_torch_f(data)

Converts a numpy array to a torch float tensor.

to_torch_i(data)

Converts a numpy array to a torch integer tensor.

write_image(image_path, image[, is_srgb])

Writes an image to a file.

write_mesh(mesh_path, v, f[, uv, fuv])

Writes a mesh to a file.

write_video(video_path, frames[, fps, kwargs])

Writes a video from a sequence of frames.