Re: Overlay a coloured boundary on a gray scale image [message #81651] |
Fri, 12 October 2012 03:00  |
titan
Messages: 59 Registered: March 2006
|
Member |
|
|
On Thursday, October 11, 2012 1:46:51 PM UTC+2, titan wrote:
> Hi all,
>
> I have a grey scale image and I'm able to overlay the boundary of my region but it is in black.
>
>
>
> To improve its visualization I would like to color it(for example in blue)
>
>
>
> Is there a way to do it?
>
>
>
> since I have the array where the boundary indexes are stored, is there a way to associate to the the RGB triplet of a color?
>
>
>
> thanks in advance
Hi all,
probably my question is not clear :( and I'm sorry for this.
I try to explain it better:
I'm able to read a shapefile from which I'm able to obtain the corresponding image which is a binary one. Then I can extract those subscripts values where the boundary is
boundary_index = WHERE(boundary_array NE 0)
my gray scale image has the same dimension of the boundary image and as a consequence I can draw the line over it (in white)
image[boundary_index]=255
What I would like to do i to understand if I could draw this line not in white but in another color, for example yellow.
Is there this possibility?
thanks a lot
|
|
|