I want to create an image using a matrix.
1 次查看(过去 30 天)
显示 更早的评论
1) Suppose i have a (8x8) matrix and i want this matrix to be converted into image (as shown in below image).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147099/image.jpeg)
Note that each row of the matrix correspond to the each row of color in the image.
2) Also if i have R,G,B matrix, then how can i create the image (as shown in below image)
10 个评论
采纳的回答
Eduardo Márquez
2015-2-13
编辑:Eduardo Márquez
2015-2-13
Using:
imwrite(A,'Image.jpg')
where A is a matrix 3D, A(:,:,1) = Red channel, A(:,:,2) = Green Channel, A(:,:,3) = Blue Channel;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!