A MATLAB library for atomic force microscopy (AFM) image analysis
NanoLocz-lib is a lightweight, scriptable MATLAB library designed for high-throughput AFM, high-speed AFM (HS-AFM), and Localization-AFM (LAFM) image analysis. It provides the core functionality behind the NanoLocz GUI app for users who prefer scripting or batch processing workflows.
- Read AFM file types: .spm, .asd, .jpk, .h5-jpk, .ibw, .ARIS, .tiff, .nhf, .gwy
- Image Levelling
- Image Alignment
- Mask Analysis
- Particle Detection
- Single Particle Tracking
- Simulation AFM
- Localization AFM
- Export as: .tiff, .gif, .avi, .png, .jpeg, .pdf, .txt, .csv, .xls, .h5
- Batch processing–ready functions for automated workflows
NanoLocz-lib uses core MATLAB and requires the following toolboxes:
- Image Processing Toolbox
- Computer Vision Toolbox
- Signal Processing Toolbox
- Curve Fitting Toolbox
- Statistics and Machine Learning Toolbox
- Optimization Toolbox
- Clone or download this repository.
- Add the NanoLocz-lib folder (and its subfolders) to your MATLAB path:
addpath(genpath('path/to/NanoLocz-lib')) - Call functions directly in your scripts, see the Example Workbooks scripts included in the repository as templates for common analysis workflows.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contributions are extremely welcome.
Distributed under the terms of the GNU GPL v3.0 license.
If using the NanoLocz libary please cite:
Heath, G.R, Micklethwaite, E. and Storer, T.M.
NanoLocz: Image analysis platform for AFM, high-speed AFM and localization AFM.
Small Methods 2024, 2301766.
If using the Localization Atomic Force Microscopy method please cite:
Heath, G.R., Kots, E., Robertson, J.L. et al.
Localization atomic force microscopy.
Nature 594, 385–390 (2021)