Answer the question
In order to leave comments, you need to log in
How to decompose a color image into maximum contrast b/w channels for object recognition?
I am training software for automatic cell recognition. Usually this image is in monochrome channels and it is easily divided into contrasting components:
We decompose into two channels and count the objects:
However, recently it has become necessary to count full-color images, where the target object has a color not 0,0,200, but, for example, 90,47,30 - brown dye. For normal recognition, it is necessary to decompose into channels so that the background is maximally absent relative to the object. You can decompose into a black and white image in different channel proportions. But I just can't think of an algorithm to get the maximum possible contrast of objects relative to the background. That is, the resulting value of the brightness delta of the object and background pixels should be maximum. Empirical decomposition into pure RGB gives good results, but I want to improve. Can someone suggest at least a direction in calculating the proportions of the decomposition?
Example:
You need to select brown cells relative to purple ones.
After spreading over the RGB channels respectively:
Answer the question
In order to leave comments, you need to log in
In short, the most promising option is the color deconvolution algorithm. Wrote software for mass processing https://github.com/meklon/morphostain
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question