Finding points above half max of peak in 2D data
조회 수: 3 (최근 30일)
이전 댓글 표시
Lets say I have a 1000 by 1000 array with each cell containing an intensity value.
The data is an image from fluorescence microscopy, so it contains a background and several peaks.
I have the coordinates of the local maxima in the picture, now i just want to find the points that are above the half maximum of each peak.
I'd appreciate a solution for both the case where the peaks aren't overlapping, and if possible, for the case they are overlapping.
Thanks,
Guy
댓글 수: 0
답변 (1개)
kjetil87
2013년 7월 23일
maybe this will help you on your way?
x=rand(5,5);
xMax=max(max(x));
idx=find(x> (xMax/2) );
%% or if u want row and col indx instead [m,n]=find(x>(xMax/2));
Obviously if you want it to work on a local max point, just subtract a small submatrix around the maxima.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!