i have a matrix of class unit8. how could i make an image using it

 Réponse acceptée

image(YourArray)

4 commentaires

But this function make gray scale image and i want a color image ,which function should i use
Image Analyst
Image Analyst le 5 Oct 2013
Modifié(e) : Image Analyst le 5 Oct 2013
That function displays an image in a rectangle on your computer screen. It does not create a gray scale image or create any image whatsoever in a variable. Why do you say that it makes a gray scale image? You can use that function, or use imshow() instead.
If your data is 35*57*3 then applying image() to your data will show it in as much RGB information as is present. If it looks greyscale then that is because the data itself has all three color planes equal (or nearly so.)

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 28 Sep 2013
Seems to me you already have an image. Why do you think you don't?

Catégories

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by