compare images 2 signal and indentify difference

3 views (last 30 days)
I need to compare outputs of ultrasonic scan of one with no damage to one with damage. The results are in image form and I used a graph digitizer to extract the graph and has saved it as a csv file.
I have absolutely no basis in matlab or any other cording enviornments but i was able to generate a plot of the signals.
na=readmatrix('Default Dataset.csv');
x= na(:,1);
na2=readmatrix('Default Dataset (1).csv');
x1= na2(:,1);
plot (x,y);
hold on
plot (x1,y1)
I tried comparing the same as imgaes but it doesnt give any desired results
When trying to create a signal, it says the data intervals are irregular and I'm stuck at this point. Is there another way to proceed forward and compare the peaks of the graphs ?

Accepted Answer

Image Analyst
Image Analyst on 13 Aug 2022
Like with findpeaks?
Mathworks had a seminar/demo of this using Deep Learning to look at spectrograms of ECG signals. Maybe you could apply that but you'd need dozens or hundreds of signals that were labeled as normal or defective.
Lots more hits here:
Walter Roberson
Walter Roberson on 15 Aug 2022
Edited: Walter Roberson on 18 Aug 2022
Assuming that you have a 2D array Signal that has one column for each distinct signal (so time proceeds with increasing rows), and assuming you know the sample rate in Hz:
dt = 1/Sample_Rate; %or assign dt directly if you know it
nsamp = size(Signal,1);
timevec = (0:nsamp-1).' * dt;
time_and_Signal = [timevec, Signal];
writematrix(time_and_Signal, 'NameOfCSVFileGoesHere.csv');

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!