From: omar on
Hi, i have a classification problem where i classify certain crop classes over satellite images, I've been able to do all the classification, now i just need a way to plot the classes over the image to compare. i mean i need the area of rice (predicted) to be red and area of wheat to be blue, etc. and plotted over the original image as a semi transparent layer, or even in a separate image.

btw the image has 4 bands, and i haven't been able to use multibandread.
From: Walter Roberson on
omar wrote:
> Hi, i have a classification problem where i classify certain crop
> classes over satellite images, I've been able to do all the
> classification, now i just need a way to plot the classes over the image
> to compare. i mean i need the area of rice (predicted) to be red and
> area of wheat to be blue, etc. and plotted over the original image as a
> semi transparent layer, or even in a separate image.

If you can use the OpenGL renderer, then you can use patch() with a
alpha transparency. Note, though, that you will need to put the overlay
at a Z coordinate closer to the viewer than 0: otherwise the overlay
might get drawn _below_ the image no matter which order you drew the two
of them (this is a property of the OpenGL renderer and the graphics
driver when two objects are in the same plane -- and some drivers get it
exactly backwards.)
From: ImageAnalyst on
Check out Steve Eddins example:
http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/