By using rgb2bind function 512x512x3 image is converted into 512x512 for algorithm implementation.If i have to convert 512x512 image into 512x512x3 image what needs to be done?
13 次查看(过去 30 天)
显示 更早的评论
A=imread('airplane.bmp');
[Z,map]=rgb2ind(A,256);
A is 512x512x3 and Z is 512x512.
I want to perform reverse operation.
0 个评论
回答(1 个)
Walter Roberson
2017-1-10
A_rebuilt = ind2rgb(Z, map);
1 个评论
Jan
2017-1-10
@Sudeep Albal: This answer looks a kind of trivial. You can find such solutions by reading the "See also" line of the commands.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!