How can i get RGB value if i have position(x,y)
古いコメントを表示
if i have position of image(pixel) . How can i get RGB value of this position?
採用された回答
その他の回答 (2 件)
Andrew Fowler
2012 年 1 月 21 日
Since RGB images are really 3D matrices, you can use the squeeze command :
pixelRGB = squeeze(yourImage(x,y,:));
Sukuchha
2012 年 1 月 22 日
use function impixel if you have image processing toolbox
P = impixel(RGB,c,r)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!