How to find pixel value vector for a colour image?
1 次查看(过去 30 天)
显示 更早的评论
Can we find pixel value vector for a colour image using MATLAB?
4 个评论
Guillaume
2015-2-6
编辑:Guillaume
2015-2-6
pixel value vector or vector of an image does not mean anything. You'll have to be a lot clearer on what you're asking. Use examples, if needed.
You're allowed to use more than one sentence, you know. The onus is on you to make yourself understood, not on us to try to decipher what you mean.
回答(1 个)
Guillaume
2015-2-6
Possibly, that's what you mean:
img = imread('peppers.png'); %read a demo image
rgbvalue = img(20, 30, :) %get rgb values of pixel at row 20, column 30
It's basic matrix indexing.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!