compare images 2 signal and indentify difference
1 view (last 30 days)
Show older comments
Shruthimol
on 13 Aug 2022
Edited: Walter Roberson
on 18 Aug 2022
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);
y=na(:,2);
na2=readmatrix('Default Dataset (1).csv');
x1= na2(:,1);
y1=na2(:,2);
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 ?
0 Comments
Accepted Answer
Image Analyst
on 13 Aug 2022
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:
3 Comments
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');
More Answers (0)
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!