Skip to content

Programetic image alignment tool #117

@YooSunYoung

Description

@YooSunYoung

Leftover work from testing in October, 2025 at ODIN.

For spatial resolution measurement with Siemenstar using MTF method, we need a reference image to be well aligned with the measure sample.
It's not so easy to align the sample in the camera view so it's easier to manipulate the reference image instead.

There is a python package called pystackreg that has automatic alignment of image.
We can make a wrapper that can use scipp data structure or make sth like this.

Example Images

Here are examples of alignment.
The refernce image needs, all three types of manipulations:

  • Rotation: The pictures are rotated from how the camera is mount or sample is mount.
  • Scaling: Based on the camera setting, the picture can be zoomed in or out.
  • Translation

Reference Image

Image

Measured Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions