how to find impulse location of an image?
1 回表示 (過去 30 日間)
古いコメントを表示
the image can be cosine function, after taking dft we will get impulse at some points, here i need to find the position of impulse. pls help me
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 2 月 25 日
How about thresholding followed by regionprops() to ask for the centroid?
binaryImage = real(fftImage) > threshold;
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, 'Centroid');
How about imregionalmax() followed by regionprops() to ask for the centroid?
binaryImage = imregionalmax(real(fftImage));
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, 'Centroid');
You forgot to post your image by the way.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!