i need to find the dark spot in this image which is the first minimum of the pattern.(pattern is sinc funtion in y -axis)

1 Ansicht (letzte 30 Tage)
  2 Kommentare
AADITYA DARAKH
AADITYA DARAKH am 18 Jan. 2023
I need to figure out the o-ordinates of the firsmt min'm dark point
this is a 16 bit image , and the code to get the image is as follows;
o=170
C=imread("cameraman.tif");
h=fspecial("motion",15,o);
z=imfilter(C,h);
C=fft2(z);
C=fftshift(C);
C=abs(log(1+C));
R=radon(C);
%imtool(R)
%R(1:140,:)=2500;
%R(220:367,:)=2500
%R=edge(R,"canny",0.3)
imshow(R,[])
AADITYA DARAKH
AADITYA DARAKH am 18 Jan. 2023
this pattern varies depending on the value of o(angle), therfore finding the minimum, value is important.(first darkspot) in the pattern (sinc function).

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 18 Jan. 2023
Try
minR = min(R, 'all')
[row, column] = find(R == minR)
  2 Kommentare
AADITYA DARAKH
AADITYA DARAKH am 18 Jan. 2023
hey, thanks for responding, i want to make my question more clear . these co-ordinates depend on the value of o. i need a code which can detect these co-ordinates which are the first min'm value of the pattern shown in the previous picture.
Image Analyst
Image Analyst am 18 Jan. 2023
Looks like you're finding the brightest point.
minR = min(R, 'all')
maxR = max(R, 'all')
[rowMax, colMax] = find(R == maxR)
You might also like my attached radon demo.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by