Landmarks in Images

When inserting an image manually, I have the option of defining Landmarks and using those to align the image to geometric objects. This is useful functionality and I would like to script it, so I 'm looking for ways to

1) Access the landmarks through the API
2) Invoke the window where Landmarks are manually defined
3) Ideally compute the Matrix that transforms and translates the image to align it with a given set of coordinates.

Are there ways to do these things programmatically? I couldn't find any information about it the docs.

Comments

  • edited July 2018

    Hi,

    the landmarks are not part of the image object itself, so they are not stored there. That's why they are not accessible through the API either.

    But the computation of the matrix is available: https://www.klayout.de/doc-qt4/code/class_Matrix3d.html#method17. The Matrix3d#adjust method will derive a Matrix from a given set of landmarks before and after the transformation.

    Matthias

Sign In or Register to comment.