matlab - Finding the pixel values corresponding to each intensity peaks -
matlab - Finding the pixel values corresponding to each intensity peaks -
i have interference fringe pattern. applied fourier transform on gave image few sharp peaks corresponding each spatial frequency. question is there way(algorithm) observe coordinates(pixel value) corresponding these intense peaks?
please note there more 1 peaks(but not many) different magnitudes.
you can utilize built-in findpeaks, example:
[pks,locs] = findpeaks(data) returns local maxima or peaks, pks, in input data, indices of local peaks locs. input data requires row or column vector real-valued elements minimum length of three. findpeaks compares each element of info neighboring values. if element of info larger both of neighbors or equals inf, element local peak. if there no local maxima, pks empty vector.
to set threshold utilize of next handles: 'minpeakheight' , 'minpeakdistance', or , 'threshold'
for example:
[pks,locs] = findpeaks(data,'minpeakheight',10) matlab matlab-guide
Comments
Post a Comment