AFM-SPM / TopoStats

An AFM image analysis program to batch process data and obtain statistics from images
https://afm-spm.github.io/TopoStats/
GNU Lesser General Public License v3.0
57 stars 10 forks source link

[feature] : Surface RMS roughness metric #862

Open MaxGamill-Sheffield opened 3 months ago

MaxGamill-Sheffield commented 3 months ago

Is your feature request related to a problem?

It would be nice if an RMS roughness metric was obtained for the background of each image.

Describe the solution you would like.

The filters stage obtains a background only mask (inverse of foreground mask) which could be used to obtain this using some code @SylviaWhittle has previously written. This could be appended to the image_stats output.

Describe the alternatives you have considered.

No response

Additional context

No response

SylviaWhittle commented 3 months ago

I just remembered - we already have RMS roughness for the whole image, was written a while back. Adding background roughness will just be a case of passing a masked array (and possibly updating the function to accept masked arrays), roughness_rms function from TopoStats.statistics