How to create envelope of local maximum and minimum differentlly of an input image ?

4 次查看(过去 30 天)
Hello, I get max and min values of one row of an image and now I want to create envelope of them differently is my query. Now I got single envelope of combined(maximum and min) points. For this prog is like - grayImage = dicomread('mri_7.dcm');% Get the dimensions of the image oneRow = grayImage(55, :); figure; plot(oneRow); [maxtab, mintab] = peakdet(oneRow, 0.5); hold on; plot(mintab(:,1), mintab(:,2), 'g*'); plot(maxtab(:,1), maxtab(:,2), 'r*'); grid on; set(gcf, 'units','normalized','outerposition',[0 0 1 1]); envelope = abs(hilbert(y)); plot(x, envelope, 'b.-'); grid on; legend('y', 'Envelope of y', 'Hilbert Envelope');
please help me to solve this.
than u

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by