Re: IHC Image color deconvolution

2016-08-30 Thread Koundinya Desiraju
Thank you Cedric. That helped a lot.

Regards,
Koundinya

On Fri, Aug 26, 2016 at 9:47 AM Cedric Espenel 
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:
>
>
>
> 
>
>
>
> 
>
>
> 
>
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to scikit-image@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
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scikit-image+unsubscr...@googlegroups.com.
To post to this group, send an email to scikit-image@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/scikit-image/CAM1uj-B7vzSQ0G2a%2BF9MLwWTe%2BRRM9_-oKoGJ0q-u7rV9oPuqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: IHC Image color deconvolution

2016-08-25 Thread Cedric Espenel


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: 









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 the Google Groups 
"scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scikit-image+unsubscr...@googlegroups.com.
To post to this group, send an email to scikit-image@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.
For more options, visit https://groups.google.com/d/optout.