- import the vector using the most suitable import function: http://www.mathworks.com/help/matlab/data-import-and-export.html.
- reshape the vector into an array of the right size.
- display the array using image or imshow.
display an image in matlab from a matrix
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Souhir FH
le 22 Avr 2016
Modifié(e) : Stephen23
le 29 Avr 2016
Hello, I work in image processing and the software Code Composer Studio, so I took the matrix of an image from matlab to code composer studio as a vector, after i applied an algorithme on this vector who contains pixels, now I would display the new image from the new generated vector on matlab to see the result of the algorithm applied, how can I convert the vector of pixels in a matrix who contains n number of colomne and n number of rows then I displays the image from this matrix in matlab? Help me please
2 commentaires
Stephen23
le 22 Avr 2016
Modifié(e) : Stephen23
le 29 Avr 2016
You don't tell us anything about what format the vector is in, so here is some very general advice to match your very general question:
Réponse acceptée
Image Analyst
le 22 Avr 2016
Type imformats on the command line to see what image formats MATLAB can read in. You should be able to read it in if you can get your Code Composer Studio to export your new/modified image in a format that MATLAB can read in.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!