Hi everyone,
I want to import a PNG bitmap derived from an SEM image containing nanostructures with no well-defined periodicity, and use it to define the geometry and dimensions of the nanostructures in the simulation. How should the bitmap be scaled to physical dimensions (nm) per pixel? Is the correct approach to assign a fixed real-space length to each pixel based on the SEM scale bar and then map this to the simulation cell size, as shown below?
geom2D := Imageshape("filename.png")
geom := geom2D.Scale(dx, dy, 1)
SetGeom(geom2D)
Save(geom)
where dx and dy are the cell sizes along the x and y directions.
I really appreciate any help you can provide.