morganjwilliams / autopew

Automating sample targeting for geological microanalysis systems.
https://autopew.rtfd.io
Other
4 stars 3 forks source link

[FEATURE] - Direct transform from .align files #28

Open lavender22 opened 3 years ago

lavender22 commented 3 years ago

Describe the solution you'd like The Align files are created when importing and aligning images into the laser ablation stage. This is a normal part of the workflow for navigation of samples. A transform should be able to be created directly from the align files to have time picking reference points on the laser stage.

lavender22 commented 2 years ago

details: .align files are automatically generated XML files that are created when a mosaic image is take on the laser ablation software. contains center, and size fields that can be used in autopew to place the analysed points on the mosaic image.

example---

<?xml version="1.0" encoding="Windows-1252" standalone="no"?>
<MappedImage>
  <Alignment>
    <Rotation>0</Rotation>
    <Center>49613.87,47475.71</Center>
    <Size>21732.27,86168.60</Size>
    <Focus>20533.5</Focus>
  </Alignment>
</MappedImage>
lavender22 commented 2 years ago

these align files are also generated when importing an image into the laser control software but when this happens, rotation occurs (and the rotation field is populated) as well as the image being re-sized. These align files may be more difficult to deal with than the automatically generated files paired with the mosaic images (that have no rotation and no resizing)

<?xml version="1.0" encoding="Windows-1252" standalone="no"?>
<MappedImage>
  <Alignment>
    <Rotation>-14.79</Rotation>
    <Center>17589.00,8896.00</Center>
    <Size>34305.00,22868.00</Size>
    <Focus>0</Focus>
  </Alignment>
</MappedImage>