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
60 stars 11 forks source link

Add upper threshold option for grain height #487

Open SylviaWhittle opened 1 year ago

SylviaWhittle commented 1 year ago

Currently, grains are detected as being more than threshold above or below the background. Sometimes however, we want to be able to prevent the masking of data that lie too far from the background. For example, 'blobs' are often a lot higher than DNA, and we don't want them detected as parts of grains.

Here is an attempt at drawing (side on) what this would look like for DNA data.

'o' is dna 'X' is blob

                     XX       blob height
---------------------XX------ "upper" threshold for data above the background
    oooo      oo    XXX       DNA height
--ooooooo----ooo---XXXX-----  "lower" threshold for data above the background
============================= Background level

  ~~~~~~~    ~~~   ~~          Data Mask
derollins commented 1 year ago

Any update on this? I would like to implement this in my "haribo rings" project.

SylviaWhittle commented 1 year ago

I'll do that now 👍

derollins commented 1 year ago

To clarify, I'd like to just unmask parts of a grain that are above a threshold, not get rid of the whole grain.

SylviaWhittle commented 1 year ago

@derollins Yep!