jeanollion / bacmman

GNU General Public License v3.0
11 stars 0 forks source link

Segmentation bacterial cells #8

Closed EdoardoBoscounipv closed 1 year ago

EdoardoBoscounipv commented 2 years ago

Hello, I'm currently working with your software on a set of mother-machine time laps videos. The images are not in phase-contrast but simple bright field so sometimes it happens to have dark zones in the middle of the channels (but still slightly brigther than the cells) which the segmentation algorithm keeps returning as cells. I thought to add a post-filter module to set a sort of threshold for the mean intensity inside the segmented region but I get an error which I cannot interprete. Could you give me some advice about it? I would really appreciate. Thank you so much.

Here are one sample from the pre-proprocessed images and one from the results with the problem I mentioned (top segmented region is actually empty).

Preprocessed ResSegmTrackConErrore
jeanollion commented 2 years ago

Hello Edoardo, Which segmentation/tracking algorithm are you using ? Can you provide the full error stack please ? You may try to filter using a TrackPostFilter that filter at the level of tracks; you set PostFilter as filter and then FeatureFilter.

If you haven't tried yet, I suggest you try DiSTNet that rely on deep learning, although the available trained weights are for phase-contrast images. If it works not so bad but not perfectly you can fine-tune it (there is a page on the wiki for this). Otherwise, if you can generate a training set with fluorescent cells + bright-field or phase-contrast + bright-field, then it is possible to train DiSTNet. Best Regards