필터 지우기
필터 지우기

mathematical morphology in ecg signal

조회 수: 1 (최근 30일)
Kirthika
Kirthika 2012년 2월 12일
댓글: Image Analyst 2016년 2월 26일
can someone please tell me the matlab codes for dilating a ecg signal using imdilate function?

채택된 답변

Image Analyst
Image Analyst 2012년 2월 12일
Unless an ecg signal is different than any other signal for some reason, the help on imdilate should have explained it. But anyway, try this:
% Make some random data.
ecg = rand(100,1);
% Dilate it.
filtered_ecg = imdilate(ecg, ones(3,1), 'same');
% Plot the signals.
subplot(2,1,1);
plot(ecg, 'b-', 'LineWidth', 2);
grid on;
title('Original ecg signal', 'FontSize', 30);
subplot(2,1,2);
plot(filtered_ecg, 'b-', 'LineWidth', 2);
grid on;
title('Dilated ecg signal', 'FontSize', 30);
% Enlarge figure to full screen.
set(gcf, 'units','normalized','outerposition',[0 0 1 1]); % Maximize figure.
set(gcf,'name','Demo by ImageAnalyst','numbertitle','off')
Nothing tricky or unusual at all. Since this is just the standard call to imdilate like you'd do for any signal (and probably just what you tried already), you'll have to explain why it's not appropriate for ecg signal. Or maybe dilation is just not really what you want to do???
  댓글 수: 1
Kirthika
Kirthika 2012년 2월 13일
thanks a lot..we got dilated image..

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

SMY
SMY 2016년 2월 24일
Hello Image Analyst,
I would to ask, what is means by one(3,1) in the coding that you provided below? Is it structuring elements?
% Make some random data. ecg = rand(100,1); % Dilate it. filtered_ecg = imdilate(ecg, ones(3,1), 'same');
  댓글 수: 5
SMY
SMY 2016년 2월 26일
I am very sorry. I made a mistake before. I got the dilated signal now. But can I know how to choose the value for the filter window?
Image Analyst
Image Analyst 2016년 2월 26일
I have no idea. I don't have any idea why you even want to do this or what you want to achieve, in higher sense. You didn't supply the "big picture" at all. I simply told you how to dilate the signal (to find the local max) like you asked.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by