Answer the question
In order to leave comments, you need to log in
Getting an array of values from a signal image
What is the fastest way to get an array of values of some signal shown in the picture?))
Answer the question
In order to leave comments, you need to log in
I found a handy tool for such things GetData . Maybe it will be useful for someone too.)
Well, you have a picture, for example, JPEG. It shows a sine.
You need to identify this sine and get an array of value pairs (x,y). =)
"Digitize" some signal from the picture.
For the future, formulate a question immediately. In Matlab it looks something like this:
function [ x y] = GetFuncByImage(imname, rptname)
im = imread(imname);
try
im = rgb2gray(im);
catch
end
%%
[m indx] = min(im);%черный график - меньшие значения
[N M] = size(im);
x = 1:M;
y = N-indx;%переворачиваем
plot(x,y);
%%
xlswrite(rptname, num2cell([ x' y']));%сохраняем данные в XLS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question