Threshold in Calibrated images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Threshold in Calibrated images

Josep M. Lanau
Hi all,

Probably an obious answer for this, but I don't find a way...

I am building a macro to batch measure OD calibrated images within a
threshold. The threshold levels vary each image, since they depend on the
maximum and minimum OD pixel in the image.

So the overall process, briefly, is as follows:

- Global calibration
- Global scale
- Open folder images and for each image:
    - measure images
    - get Max and min pixel values
    - Threshold (at max/3; min values)
    - Measure
    - print results to log file

The problem is that since the image is calibrated, min and max values are
given in OD, but threshold macro function parameters must be  given in
grayscale (0-255) values.

I will apreciate any help on this. Thank you in advance.

Regards,

Josep M. Lanau Galceran

BEMF - Bank of Medicinal and Edible Fungi
Departament de Biologia Vegetal, Unitat de Botànica
Universitat de Barcelona