RGB map into numerical data

1 回表示 (過去 30 日間)
Ahmed Abdulla
Ahmed Abdulla 2019 年 6 月 13 日
回答済み: KSSV 2019 年 6 月 13 日
he image below uses an RGB scale (the values of the scale are displayed on the image) to show the magnetic field strength at each point on the map. I've been struggling to find a way to convert this image into an array that shows the x and y coordinates of the pixel along with the magnetic field value at each coordinateIMG_2830.jpg

採用された回答

KSSV
KSSV 2019 年 6 月 13 日
I = imread('IMG_2830.jpeg') ;
I1 = imcrop(I) ; % Exactly crop the required borders/ exclude axis
[nx,ny] = size(I1) ;
x = linspace(0,360,ny) ;
y = linspace(0,90,nx) ;
[X,Y] = meshgrid(x,y) ;
image([0 360],[0 90],I1);

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by