This repository contains the companion code for the paper "Feature Characterization for Profile Surface Texture". The algorithm is based on the definitions in ISO 21920-2.
In the following are some illustrations to show the idea of watershed segmentation. For more information, see the paper.
animation.mp4
The Convention is summarized in the following figure:
The functionality can be tested directly using "minimal_example.m" with or "minimal_example.py" an editable dummy profile. Alternatively, there is a GUI for Matlab "GUI.mlapp" where, for example, the profiles from "data/profiles for case studies" can be loaded and the algorithm applied by varying the various input arguments.Add "featurecharacterization2d"-folder to search path of Matlab
addpath(*path to featurecharacterization2d*)
to permanently save the path
save path
- MATLAB 2017a and higher
Install featurecharacterization2d package.
cd python
pip install .Additional dependencies for development and plotting (scipy, matplotlib, jupyter notebook) are installed by
pip install .[extra]- python>=3.11

