TopoStats icon indicating copy to clipboard operation
TopoStats copied to clipboard

Add upper threshold option for grain height

Open SylviaWhittle opened this issue 2 years ago • 4 comments

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

SylviaWhittle avatar Mar 01 '23 14:03 SylviaWhittle

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

derollins avatar Sep 14 '23 14:09 derollins

I'll do that now 👍

SylviaWhittle avatar Sep 14 '23 14:09 SylviaWhittle

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

derollins avatar Sep 14 '23 14:09 derollins

@derollins Yep!

SylviaWhittle avatar Sep 14 '23 14:09 SylviaWhittle