The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: how to assign rgb2ind output to a reference
Replies: 5   Last Post: Mar 26, 2011 9:37 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Walter Roberson

Posts: 7,678
Registered: 1/20/06
Re: how to assign rgb2ind output to a reference
Posted: Mar 26, 2011 12:00 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 25/03/11 8:03 PM, Andy Harvie wrote:
> When you use the rgb2ind quantization technique, you end up with two
> outputs (x, map), which need to be shown together (imshow(x,map)).
> Is there a way to assign the matrix you get when using imshow(x,map), to
> a name?

You would need to getframe() or the like to get the colored image.

Easier is to use the original image array; or if you used a different
color map, then ind2rgb(x,map) to get the new RGB.

Though _maybe_ what you are asking about can be answered as "You can
set() the Tag property of the image handle you get back from imshow()"

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.