Z
Z
zavg2011-07-06 23:52:52
Image processing
zavg, 2011-07-06 23:52:52

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

4 answer(s)
S
simplecode, 2011-07-07
@simplecode

learn how to ask questions...

Z
zavg, 2011-07-07
@zavg

I found a handy tool for such things GetData . Maybe it will be useful for someone too.)

Z
zavg, 2011-07-07
@zavg

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.

Y
Yakhnev, 2011-07-07
@Yakhnev

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 question

Ask a Question

731 491 924 answers to any question