필터 지우기
필터 지우기

how to find the change in curve

조회 수: 4 (최근 30일)
prashant singh
prashant singh 2017년 9월 25일
답변: Image Analyst 2017년 9월 25일
i have plotted a curve on my image. The curve is shown in red. I want to find the jump in my curve with some good algroithm. The area in the curve where i want to detect jump is shown in blue. I have tried to find difference between two point to detect jump but that always does not return me the points in the curve i want(show in blue).
  댓글 수: 2
Cedric
Cedric 2017년 9월 25일
But you have the red curve as e.g. a row vector already? If so, could you attach it?
prashant singh
prashant singh 2017년 9월 25일
Attaching row vector for the curve.

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

채택된 답변

Image Analyst
Image Analyst 2017년 9월 25일
Have you tried findchangepts()?

추가 답변 (1개)

Star Strider
Star Strider 2017년 9월 25일
Try this:
D = load('ridx.mat');
ridx = D.ridx;
ridx = max(ridx)-ridx;
x = 1:length(ridx);
dt_ridx = detrend(ridx);
mask = dt_ridx > 27;
figure(1)
plot(x, ridx)
hold on
plot(x(mask), ridx(mask), '-r', 'LineWidth',1.2)
hold off
grid
Here mask is a logical vector that identifies the ‘jump’ region.

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by