pysdic.Image.from_file#

classmethod Image.from_file(file_path)[source]#

Create an Image object by loading image data from a file.

Parameters:

file_path (str) – The path to the image file to be loaded.

Returns:

An Image object initialized with the image data loaded from the specified file.

Return type:

Image

Examples

Create an Image object by loading image data from a file.

1from pysdic import Image
2
3# Create an Image object by loading from a file
4image = Image.from_file("path_to_image.jpg")