IHC Image color deconvolution

Koundinya Desiraju drkoundinyadesiraju at gmail.com
Tue Aug 30 03:56:06 EDT 2016


Thank you Cedric. That helped a lot.

Regards,
Koundinya

On Fri, Aug 26, 2016 at 9:47 AM Cedric Espenel <cedric.espenel at gmail.com>
wrote:

> 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
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "scikit-image" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/scikit-image/yumvSsa7irc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> scikit-image+unsubscribe at googlegroups.com.
> To post to this group, send email to scikit-image at googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/scikit-image/5394a2f0-98a1-4254-ac14-851e9c956bb7%40googlegroups.com
> <https://groups.google.com/d/msgid/scikit-image/5394a2f0-98a1-4254-ac14-851e9c956bb7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20160830/382c48ad/attachment.html>


More information about the scikit-image mailing list