i have an RGB image and i would like to convert it into numerical data
2 次查看(过去 30 天)
显示 更早的评论
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224247/The%20radial%20component%20of%20the%20field%20scaled%20to%20+.-%20220%20nT.jpeg)
0 个评论
采纳的回答
Theron FARRELL
2019-6-13
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!