Dear all,

Thank you very much for the many helpful replies to my question! I greatly
appreciate the time you have taken to share your suggestions, macros, and
plugins.

I am currently working through the different approaches that have been
proposed.

If I have any further questions, I will get back to the list.

Best,
Themis

Στις Παρ 5 Ιουν 2026 στις 10:03 π.μ., ο/η Michael Schmid <
[email protected]> έγραψε:

> Hi Themis,
>
> here is a macro that you could use as a starting point for the example-1
> image.
> It is essential to correct for the different brightness-dependent
> contrast that is caused by the nonlinear transfer curve (gamma-like) of
> a jpg image. The gamma=2 correction is only a rough approximation for
> this. A raw or tiff image with no gamma correction (i.e. gamma=1) would
> be clearly preferable!
>
> run("Gamma...", "value=2");
> run("Duplicate...", "title=example_1-background.jpg");
> run("Subtract Background...", "rolling=2 create sliding disable");
> run("Median...", "radius=5");
> imageCalculator("Subtract", "example_1.jpg","example_1-background.jpg");
>
>
> Michael
> ________________________________________________________________
> On 03.06.26 17:58, Moraitou Themis wrote:
> > Thank you for your responses.
> >
> > Unfortunately, the images we have are only available in JPG format. I
> have
> > attached two files as references for what I described in my previous
> posts.
> >
> > If you have any additional suggestions or comments based on these
> examples,
> > I would greatly appreciate them.
> >
> > Best
> >
> > Themis
> >
> > Στις Τρί 2 Ιουν 2026 στις 1:35 μ.μ., ο/η Gluender <[email protected]>
> έγραψε:
> >
> >> You wrote:
> >>
> >> "[...] is there a tool that we can use to select only the fungal hyphae
> >> of the emulsion surface?"
> >>
> >> A tool?
> >> There may be methods / approaches to reduce the impact of image
> >> artifacts and to more or less isolate the structures of interest but, as
> >> mentioned before, without typical images, I see no way to provide
> >> substantial help.
> >>
> >> Good luck
> >>
> >> Herbie
> >>
> >> :::::::::::::::::::::::::::::::::::::::::::::
> >> Am 02.06.26 um 14:26 schrieb Moraitou Themis:
> >>> Thank you very much Herbie!
> >>>
> >>> Just one more question...
> >>> Since our images have been taken using transmitted light, and the
> surface
> >>> of a photographic slide is never absolutely clean (there are always
> >> surface
> >>> deposits/dust, scratches etc), is there a tool that we can use to
> select
> >>> only the fungal hyphae of the emulsion surface?
> >>>
> >>> Best
> >>> Themis
> >>>
> >>> Στις Τρί 2 Ιουν 2026 στις 10:48 π.μ., ο/η Gluender <[email protected]>
> >>> έγραψε:
> >>>
> >>>> Greetings Moraitou Themis!
> >>>>
> >>>> Without seeing typical images in their original non-lossy file-format
> >>>> (no JPGs, no screen-shots) it is near to impossible to help.
> >>>>
> >>>> "What would be the best approach to improve the separation of hyphae
> >> from
> >>>> the background before thresholding?"
> >>>>
> >>>> Frankly speaking:
> >>>> The best pre-processing is no pre-processing but better images.
> >>>>
> >>>> You may try to improve image acquisition by using color lighting for
> >>>> better contrast. Phase contrast may also be of some help. Avoid
> >>>> "structures or artifacts are present in the image", etc.
> >>>>
> >>>> Best
> >>>>
> >>>> Herbie
> >>>>
> >>>> :::::::::::::::::::::::::::::::::::::::::::::
> >>>> Am 02.06.26 um 11:29 schrieb Moraitou Themis:
> >>>>> Dear all,
> >>>>>
> >>>>> I am interested in quantifying fungal hyphae growth on the surface of
> >>>>> photographic color slides using images taken with a Dino-Lite
> >> microscope.
> >>>>>
> >>>>> The basic workflow that I follow in ImageJ  roughly  includes:
> >>>>>
> >>>>> 1. Convert the image to 8-bit grayscale.
> >>>>> 2. Apply Subtract Background.
> >>>>> 3. Use automatic thresholding (Otsu and Li seem to give the best
> >> results
> >>>> so
> >>>>> far).
> >>>>>
> >>>>> However, I encounter two main issues:
> >>>>>
> >>>>> - The background is not uniform, and some structures or artifacts are
> >>>>> present in the image. As a result, background subtraction is often
> not
> >>>>> sufficient to isolate the hyphae.
> >>>>> - In some regions, the contrast between the hyphae and the background
> >> is
> >>>>> too low, so the threshold does not detect all hyphae consistently.
> >>>>>
> >>>>> What would be the best approach to improve the separation of hyphae
> >> from
> >>>>> the background before thresholding? Are there specific preprocessing
> >>>> steps,
> >>>>> filters, color-space transformations, or segmentation methods in
> >>>>> ImageJ/Fiji that could help achieve more reliable detection and
> >>>>> quantification?
> >>>>>
> >>>>> Any suggestions or examples of similar workflows would be greatly
> >>>>> appreciated.
> >>>>>
> >>>>> Thank you!
> >>>>>
> >>>>> --
> >>>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >>>>>
> >>>>
> >>>> --
> >>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >>>>
> >>>
> >>>
> >>
> >> --
> >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >>
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>


-- 
*Efthymia (Themis) Moraitou, PhD*
Conservation of Antiquities & Works of Art
Cultural Informatics & Communication

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Reply via email to