compare images 2 signal and indentify difference

4 ビュー (過去 30 日間)
Shruthimol
Shruthimol 2022 年 8 月 13 日
編集済み: Walter Roberson 2022 年 8 月 18 日
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 ?

採用された回答

Image Analyst
Image Analyst 2022 年 8 月 13 日
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:
  3 件のコメント
Image Analyst
Image Analyst 2022 年 8 月 15 日
Sounds like you have some data collection to do and some work to do.
Walter Roberson
Walter Roberson 2022 年 8 月 15 日
編集済み: Walter Roberson 2022 年 8 月 18 日
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');

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by