Accessing "List of Landmarks" from Image import GUI

Hi all,
I am trying to write some script that automatically aligns user given (GUI) landmarks to a predefined set of markers in the design. However after browsing the image classes for a while, I couldnt find any way to access/retrieve the "List of landmarks" seen in the Image import GUI.
Does anybody know, whether this is possible and if so, how?
Thanks :)

Comments

  • Nevermind, I just found the forum discussion about this exact problem xd.
    So there is still no solution to access them automatically?

  • No, there is not. Where did you find that mentioned?

    Landmarks in my perception are alignment helpers, but so far I did not consider them part of the display properties of an image.

    The only way to manipulate landmarks currently is to convert the image to a string using "str(image)" or "image.to_s", and manipulate the landmarks array there. The landmarks array is a somewhat stupid component:

    landmarks=[x1,y1,x2,y2,x3,y3,...];
    

    You can place it anywhere in the string - i.e at the beginning, but if you manipulate it, make sure you remove the original one.

    Matthias

  • edited December 4

    Hi Matthias,
    thanks for the quick reply. I found the previous discussion about the topic in this post: https://www.klayout.de/forum/discussion/1088/landmarks-in-images
    Basically what my "task" is that i regularly design something where I need to align microscope images in Klayout and design based on these images. So what want to do is to manually position the landmarks in the image GUI and have the code automatically transform the image based on them (the "destination" markers are always the same).
    I will test out your suggestion and comment if it works.
    Best, Leo.

Sign In or Register to comment.