scallops.io.get_pixel_positions
- scallops.io.get_pixel_positions(path)
Gets the stage pixel positions from the image at the specified path.
This function extracts stage pixel positions from the metadata of an image file located at the specified path. It returns an array with the pixel positions assuming that the image file contains said metadata.
- Parameters:
path (str) – Path to the image file.
- Returns:
Array with pixel positions.
- Example:
- Return type:
ndarray
import scallops.io import numpy as np # Define the path to the image file image_path = "path/to/image.nd2" # Get pixel positions from the image positions = scallops.io.get_pixel_positions(image_path) print(positions)