IHC Image color deconvolution

Cedric Espenel cedric.espenel at gmail.com
Fri Aug 26 00:17:42 EDT 2016



Hi Koundinya,

I'm not sure if that will answer your question but if you try:

from matplotlib.colors import LinearSegmentedColormap
cmap_Hema = LinearSegmentedColormap.from_list('mycmap', ['white', 'navy'])
cmap_DAB = LinearSegmentedColormap.from_list('mycmap', ['white', 
'saddlebrown'])
cmap_Eosin = LinearSegmentedColormap.from_list('mycmap', ['darkviolet', 
'white'])

You won't be able to get back to the original color but it will do a descent job: 


<https://lh3.googleusercontent.com/-I4YYHbj6CFY/V7_CZ2tDCII/AAAAAAAAGFg/xSbdDrFFM6sqAH5nPqVhZpRR5u6QNWoFwCLcB/s1600/immuno.png>


<https://lh3.googleusercontent.com/-I4YYHbj6CFY/V7_CZ2tDCII/AAAAAAAAGFg/xSbdDrFFM6sqAH5nPqVhZpRR5u6QNWoFwCLcB/s1600/immuno.png>

<https://lh3.googleusercontent.com/-I4YYHbj6CFY/V7_CZ2tDCII/AAAAAAAAGFg/xSbdDrFFM6sqAH5nPqVhZpRR5u6QNWoFwCLcB/s1600/immuno.png>

Sincerely,

Cedric


On Monday, August 22, 2016 at 10:40:06 PM UTC-7, Koundinya Desiraju wrote:
>
> In this tutorial, 
> http://scikit-image.org/docs/dev/auto_examples/color_exposure/plot_ihc_color_separation.html#sphx-glr-auto-examples-color-exposure-plot-ihc-color-separation-py
>
> After color deconvolution the haematoxylin and DAB channels were plotted 
> in grayscale but I want to show them in respective colors. For example, I 
> want to show DAB channel in brown. Can anyone kindly post How to do that?
>
> Thanks,
> Koundinya
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20160825/a96c38b3/attachment.html>


More information about the scikit-image mailing list