quantitativeTEM / StatSTEM

GNU General Public License v3.0
47 stars 25 forks source link

Peak finding only the lower Z columns in an image #4

Closed thomasaarholt closed 6 years ago

thomasaarholt commented 6 years ago

Currently, I don't think there is a way to select only the lower Z elements in a binary sample. For instance in this sample of ZnSb, there is no way (other than manually clicking) to select the Zn (lighter element) columns: image

thomasaarholt commented 6 years ago

Actually on this - there exists a "import peak locations" function, but I don't know what sort of formatting this file should have, and there doesn't seem to be a "Export peak locations"? Otherwise I could use other software for finding the positions, and then import a list of those positions.

hentr commented 6 years ago

If you already have got the peak coordinates (input and/or fitted coordinates) in StatSTEM, you can save a bunch of data (image plus coordinates?) in a .mat file by the save button under the StatSTEM logo. You can load coordinates again from this .mat file. Though, I have not looked at how it is formated.

thomasaarholt commented 6 years ago

Ah cool. I didn't realise more information was saved. That makes sense.

karelvandenbos commented 6 years ago

Hi Thomas, This is also documented in the included manual (page 9). Coordinates can be imported as an (nx2) vector, when positions are defined in Angstom. When saving the StatSTEM file, you can also see the coordinates in MATLAB (load the StatSTEM filem, input coordinates for fitting are given in "input.coordinates" again in Angstrom.

We are currently working on a statistical based method to assign peak locations, which will be much better then the simple peak finder routine I included now in StatSTEM