Apply Threshold


I was wondering if you guys could help me add the “Subtract the threshold value from the remaining values from the remaining pixel intensities?” capability to a module that I developed. I’m having a difficult time plugging in the code. I would appreciate any help. (12.2 KB)

I would think the following to replace lines 217-218 in your code would work: nucleus_subtracted = nucleus_pixels - nucleus_ci nucleus_processed = sp.multiply(nucleus_subtracted , nucleus_pixels > nucleus_ci)