Re: coloring- pixel [message #70926] |
Fri, 21 May 2010 14:29  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On May 21, 11:26 am, afzal <afzal....@gmail.com> wrote:
> is anybody help me to give different colors to different pixels in an
> image
You don't give much information.
You probably want some steps like this, assuming you have a byte
intensity map called MAP.
device, decomposed=0 ;; Use color table mode
loadct, 14 ;; Pick the color table you wish, 14 is an example
tv, map ;; Display the image with the color table you chose
If you have a non-byte map, then you will want to use TVSCL. There
are better procedures for making labeled images like TVIMAGE,
PLOTIMAGE, or IMDISP, which you can try when you understand color
better.
Good luck,
Craig
|
|
|
Re: coloring- pixel [message #71101 is a reply to message #70926] |
Wed, 26 May 2010 21:52  |
afzal
Messages: 8 Registered: February 2010
|
Junior Member |
|
|
On May 22, 2:29 am, Craig Markwardt <craig.markwa...@gmail.com> wrote:
> On May 21, 11:26 am, afzal <afzal....@gmail.com> wrote:
>
>> is anybody help me to give different colors to different pixels in an
>> image
>
> You don't give much information.
>
> You probably want some steps like this, assuming you have a byte
> intensity map called MAP.
>
> device, decomposed=0 ;; Use color table mode
>
> loadct, 14 ;; Pick the color table you wish, 14 is an example
>
> tv, map ;; Display the image with the color table you chose
>
> If you have a non-byte map, then you will want to use TVSCL. There
> are better procedures for making labeled images like TVIMAGE,
> PLOTIMAGE, or IMDISP, which you can try when you understand color
> better.
>
> Good luck,
> Craig
actually i want to highlight some points(pixels) of binary image with
some color(eg:-red)
thanking you
afzal
|
|
|