how to find impulse location of an image?

2 visualizaciones (últimos 30 días)
anish m r
anish m r el 25 de Feb. de 2015
Respondida: Image Analyst el 25 de Feb. de 2015
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

Respuestas (1)

Image Analyst
Image Analyst el 25 de Feb. de 2015
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.

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by