Incorrect rgb values from image matrix

2 ビュー (過去 30 日間)
p
p 2012 年 8 月 21 日
I read an truecolor image (rgb) with size 1200x1600x3 in matlab.Using imtool(image), i see for example that pixel (620,250) corresponds to RGB values=[172,174,96] and i have checked from bitmap that this is the right.When i call image(620,250,1:3) i take as answer (151,158,151).I take wrong rgb values for every pixel exept from pixel (1,1) and pixel (1200,1600).what's the wrong????? Thanks in advance

回答 (1 件)

Titus Edelhofer
Titus Edelhofer 2012 年 8 月 21 日
Hi,
you will need to access image(250, 620, :) to see the RGB values of pixel (620, 250). You see this, when you move the mouse across you image that the row corresponds to y and the column to x.
Titus

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by