Imagine processing, elimination of oscillations
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I need to follow only the max peacks of the figure shown. I want a figure without oscillations. How can I do?
Regards, Nello
1 个评论
Image Analyst
2014-3-17
What about the dip around 200? Do you want that to go straight across at 0.08, or still dip down?
采纳的回答
Image Analyst
2014-3-17
You can use imdilate() which gives the max value inside a sliding window. Or just scan the data replacing with the max if it ever falls below the prior value.
out = inputSignal % Make copy.
for k = 2 : length(out)
if out(k) < out(k-1)
out(k) = out(k-1);
end
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!