How can I send or transfer matrix data into empty image?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello experts,
Can any one suggest me how to send or transfer matrix(132x1000) data into empty image? here, what makes me curious about image is that,how does an image pixel create in empty image(need some explanation) and would like to see resulted image in colour view.Please help me. Thanks in advance.
0 commentaires
Réponse acceptée
Walter Roberson
le 5 Juil 2013
If you have no existing image object in your axes, then you need to use image() to create the image object. imagesc() and imshow() call upon image() to create the image object.
If you have an existing image object, then you can change which image it shows by updating the CData property of the image object. For example,
im1 = image(rand(65,65));
pause(3);
set(im1, 'CData', rand(32, 96));
pause(3)
will draw an image, leave it for 3 seconds, and then update the image object with new data.
If the CData property associated with an image object is a scalar or a vector or is 2 dimensional, then the current colormap() will be used to determine the colors the image object is displayed with. If the CData property associated with the image object is a 3D matrix in which the third dimension is length 3 (an M x N x 3 array), then the CData will be interpreted as RGB color information and the colormap() will not be used for that image object.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Red dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!