Closed TobiasKletter closed 4 years ago
Another sample, but less grave: https://www.dropbox.com/s/14qaatv5k0ck7ms/20200826_R1E309_TubGFP_SiRDNA__PFAGA_NoMounting_014-2.tif?dl=0
edit: Here I could solve the problem by pre-processing the original with background subtraction (rolling ball radius 50)
The issue with these images seems to be that there is a very high offset of the signal (here around 500 gray values). I will try to change the code to handle this.
I think I fixed it:
The initial threshold was too low due to the offset. I am accounting now for the image offset when computing the initial threshold:
Pair< Double, Double > minMaxValues = Algorithms.getMinMaxValues( dnaDownscaledToMetaphasePlateWidth );
Logger.log( "DNA downscaled minimum value: " + minMaxValues.getA() );
Logger.log( "DNA downscaled maximum value: " + minMaxValues.getB() );
Logger.log( "DNA initial threshold factor: " + settings.dnaThresholdFactor );
double initialDnaThreshold = ( minMaxValues.getB() - minMaxValues.getA() ) * settings.dnaThresholdFactor + minMaxValues.getA() ;
Logger.log( "DNA initial threshold (max-min)*factor + min: " + initialDnaThreshold );
I pushed a new version 0.7.1
including the changes.
Please try it out and let me know how it works.
Despite clean DNA signal, sometimes this happens:
https://www.dropbox.com/s/0jtu2lqdystyd3h/20200826_HeLa309_TubGFP_SiRDNA__PFAGA_NoMounting_005-1.tif?dl=0