scallops.registration.landmarks.find_landmarks
- scallops.registration.landmarks.find_landmarks(image, template, slice_size=200, template_padding=750, step_size=1000, template_labels=None, image_labels=None, translation='com', image_spacing=None, template_spacing=None, com_min_quantile=0.25, com_max_quantile=0.75)
Match image to template across a grid of coordinates.
- Parameters:
image (DataArray) – The image to match
template (DataArray) – The template to search
slice_size (float) – The slice size of the image in physical coordinates
template_padding (float) – Template padding in physical coordinates.
step_size (float) – Image step size.
template_labels (DataArray | None) – Optional template labels.
image_labels (DataArray | None) – Optional image labels.
translation (tuple[float, float] | None | Literal['com', 'none']) – Global translation between template and image in physical coordinates. Use “com” for center of mass.
image_spacing (tuple[float, float] | None) – Optional image spacing. If not provided, determined from metadata.
template_spacing (tuple[float, float] | None) – Optional template spacing. If not provided, determined from metadata.
com_max_quantile (float | None) – Include values <= specified quantile for center of mass computation.
com_min_quantile (float | None) – Include values >= specified quantile for center of mass computation.
- Returns:
Delayed object that resolves to a data frame.
- Return type:
DataFrame