Load Image From Path

This function block is designed to load image data from a specified file path. It can either take a folder path and a file name as separate inputs or just the folder path to directly load the image.

📥 Inputs

Folder Path This input accepts the directory path where the desired image file is located.

File Name This input allows you to specify the name of the image file you want to load, including its file extension. If not provided, the block will only use the folder path.

📤 Outputs

Image This output provides the loaded image data as the result of this function block.

🕹️ Controls

This block does not have specific controls for user interaction, but it relies on the correct input paths for functionality.

🎨 Features

Flexible File Path Handling The block allows users to load an image by specifying a full file path or by providing a folder path along with the file name.

Error Handling Displays a message when the required input paths are not connected properly.

📝 Usage Instructions

  1. Provide Folder Path: Connect a source producing the folder path to the Folder Path input if using a full file path.

  2. Specify File Name: Optionally, connect a source producing the file name including the extension to the File Name input.

  3. Load Image: Run the block. The image will be loaded and outputted as an image data.

📊 Evaluation

Upon evaluation, this function block will read the specified image file and output the corresponding image data for further processing or visualization.

🛠️ Troubleshooting

Image Not Loaded

If the image is not loading, ensure that the folder path and file name are correct. Check for typos in the file names or invalid folder paths.

File Type Issues

This block works best with standard image file types (e.g., JPG, PNG). Ensure that the file you are trying to load is of a supported format.

Last updated