MATLAB Answers

0

i have an RGB image and i would like to convert it into numerical data

Asked by Ahmed Abdulla on 13 Jun 2019
Latest activity Answered by Theron FARRELL on 13 Jun 2019
the image below uses an RGB scale 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 coordinate using MATLAB
The radial component of the field scaled to +.- 220 nT.jpeg

  0 Comments

Sign in to comment.

1 Answer

Answer by Theron FARRELL on 13 Jun 2019

I suppose you know how to read an image
% I will be a numerical array, then
I = imread(...)
% Then you may use
% k is ones of channels
surf(I(:, :, k));
mesh(I(:, :, k));
% If you want to examine each pixel precisely, you may use
imtool(I)

  0 Comments

Sign in to comment.