Yes i want it in 1D vector signal. I have tried in this way " A(:) ", but it gives only an 1d array as output. At the receiver side i want to apply pan-tompkins algorithm as i have applied at sender side to get 2d image from 1d signal. At that time the 1d array like structure is not working.
I have no idea what you are going to do in the receiver, but as per the title of question 2D to 1D, @KSSV has already answered, resulting in a 1D array. It would be more clear, if you can restructure the question again.
First i have loaded the "100m.mat" file and got the 1D ECG signal from that. Then i have used the Pan-Tompkins algorithm to convert the 1D ECG signal to 2D ECG image. After doing all the embedding processes, I want to convert the watermarked image to the 1D signal before transmitting to the receiver.
When i have tried the reshape function for the 2D to 1D conversion, then i have to use reshape() only at the receiver side to get the 1D to 2D image. Sir, i want to ask you that is there any other way of conversion of 2D image to 1D ECG signal so that i can follow the same steps that i have done in sender side, i.e., using Pan-Tompkins algorithm for the 1D to 2D conversion. I am using the online matlab platform, that's why i am unable to add my .m file here.
As i am new to this field, i am getting stuck in the basic steps.
Pan Tompkins algorithm is commonly used to detect QRS complexes in ECG signals through various filtering processes. There is no straight forward way to get back the ECG signal from an Image (may look over some papers that do so using Deep learning algo). For more insights upon Watermarking kindly go through the following link
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
5 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_981713
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_981713
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_981785
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_981785
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_982064
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_982064
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_984245
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_984245
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_984614
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/583022-how-to-convert-2d-ecg-image-to-1d-ecg-signal#comment_984614
Sign in to comment.