Surface Roughness Image Analysis is a Python program developed for the analysis and processing of images related to surface roughness of microscopic specimens. It provides tools to calculate elements like waviness, roughness, and profile, enabling comprehensive information about the irregularity of the specimen's surface. This project was developed as part of a Ph.D. thesis in additive manufacturing.
To install the Surface Roughness Image Analysis program, follow these steps:
- Clone this repository to your local machine using git.
- Install the required dependencies using pip.
- Place the required images in the specified directory.
- Open the Python code and modify the
pathImageFilevariable to set the file path of the image you want to analyze.
- Binarization of images to obtain specimen edges.
- Polynomial fitting to calculate the initial profile.
- One-dimensional interpolation for centering the profile.
- Gaussian filtering to compute the waviness profile.
- Simple interface with adjustable parameters for sigma and cutoff of the Gaussian function.
- Visualization of four graphs showing the shape, profile, waviness, and roughness of the specimen.
- Visualization of average, cuadratic mean, max and minium peak and valley of profile, waviness and roughness.
- Obtain a photo or image corresponding to the piece you want to analyze
Use
ImageJ
to convert the image to binary format.
- Find edges using the "Find Edges" function and invert with Ctrl + Shif + I.
- Refine the image by removing any unwanted elements that should not be considered in the analysis.
- Once you are satisfied with the image, save it as a .tiff file in the repository directory.
- Provide the image's file path in the Python code by setting the variable
pathImageFile. - Run the program.
- It will display an initial analysis with predefined sigma values.
- You can modify these values in the upper section.
- Examples:
The program requires the following software and dependencies:
- Python (version 3.10)
- ImageJ
Adrian Rivas E.















