image processing - Extracting Data from a Plot in a png using Matlab -
i'd extract curves plot using matlab. select color of curves wish extract, , have coordinates output. realize having done relative graph complicated, need pixel locations. there can analyze correspond to. example image provided, i'd take red curves, , output locations text file.
an extremely nice addition 'curve fit' extracted pixels. extracted graph values come +5 pixel width curves numeric data have width. ideal average out behaviour , thin data.
red pixels on curve, blue effective pixels extracted instead. see being done in 2 ways: transformation on image, extract values, or vice-versa. i'm not sure better.
almost same solution mark setchell, in matlab.
i = imread('doeve.png'); % select red pixels ired = i(:,:,1) == 255 & i(:,:,2) == 0 & i(:,:,3) == 0; figure imshow(ired) [x, y] = find(ired); % extract (x, y) coordinates of red pixels hold on plot(y, x, 'b.'); % plot result validate 


Comments
Post a Comment