py4dstem / py4D-browser

A 4D-STEM GUI data browser for py4DSTEM
GNU General Public License v3.0
13 stars 6 forks source link

Save scalebar with image #18

Open joshuaritt opened 4 months ago

joshuaritt commented 4 months ago

These are more feature suggestions. When exporting a diffraction pattern, it would be excellent to have the option to save an overlayed scale bar with the pattern. The same would be applicable for virtual images. Also, it appears that the export function does not save images with adjustments to brightness, contrast, etc., and having the ability to save images exactly as they are shown in the viewer would be extremely beneficial. Overall, though, the whole GUI is already feature rich and well layed out. I very much appreciate having a tool to quickly and thoroughly review data.

sezelt commented 4 months ago

If you have the latest version, then part of this already exists in File > Export {Diffraction Pattern/Virtual Image} > {TIFF/PNG} (display), which saves the image using the contrast levels and scaling set in the GUI.

So far I haven't added the ability to save a scalebar because currently the images are exported at the native resolution of the data, but to make a good scalebar it will have to scale the image smartly so there is sufficient resolution for the text. But this is a good suggestion and I'll add it to the plans.