Extract nuclei from images with dark cytoplasm?

Hello and thank you in advance for your help.
Please, see, for instance, the following two images.

cell-4-9-1.jpg

cell-4-9-2.jpg

Any ideas for a correct isolation of the nuclei?
Unfortunately, these images are from our archive and they cannot be recaptured. The sample also cannot be re-prepared.
This is a “tricky” challenge. Nothing seems to work for a correct isolation.

Hi Sotirios,

here comes a simple first guess:

ClearAll["Global`*"]
web = {"http://community.wolfram.com//c/portal/getImageAttachment?\
filename=cell-4-9-1.jpg&userId=1438211", 
   "http://community.wolfram.com//c/portal/getImageAttachment?\
filename=cell-4-9-2.jpg&userId=1438211"};
imgs0 = Import /@ web;
thrh = FindThreshold /@ imgs0;
nucs = ColorNegate /@ MapThread[MorphologicalBinarize, {imgs0, thrh}];
MapThread[HighlightImage, {imgs0, nucs}]

This gives:

nucs.png

Does that help?

Regards – Henrik

Dear Henrik,

Thank you very much for your very valuable help!!!

I will inform you about the results.

Thank you once again!

Best regards,
Sotirios

Hi,

I recommend to apply a machine learning algorithm. In a first step you make the correct annotations on your own in a training sample. This means you draw the line for the nuclei.

In a second step you use this training sample and apply U-net as it is described here : UNET image segmentation in stem cells research

if the images are not too large (say smaller than 192x192 pixels), I can help you and apply U-net for you.

Best Wolfgang