How to create an image from an RGB Matrix
2 次查看(过去 30 天)
显示 更早的评论
I have a RGB matrix and that is very big. However I would like to create an image out of it. Can you please help?
7 个评论
Greg
2018-3-22
You keep mentioning loops, what in the world are you looping?
KSSV gave the full answer, don't put any other code with it. 1584x2780x3 is not a big RGB matrix. That should display nearly instantaneously.
Jan
2018-3-22
@Pavel Chatterjee: I agree with Greg: The problem is not the display of the array, but the creation. Then post the code, which takes so much time. Usually a forgotten pre-allocation is a cause for slow code, but a 1584x2780 array is not large, such that this would waste some seconds of runtime only.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!