pysdic.Image.from_file#
- classmethod Image.from_file(file_path)[source]#
Create an
Imageobject by loading image data from a file.- Parameters:
file_path (
str) – The path to the image file to be loaded.- Returns:
An
Imageobject initialized with the image data loaded from the specified file.- Return type:
Examples
Create an
Imageobject 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")