Sequel of a Specified Region

1 view (last 30 days)
Tricky
Tricky on 28 Oct 2011
sorry ImageAnalyst...
Unfortunately I deleted a question answered by ImageAnalyst and accepted by Me.
ImageAnalyst after doing filtering for particular portion is it possible to apply Fourier transform for that portion only to extract frequencies.
  1 Comment
Image Analyst
Image Analyst on 28 Oct 2011
Par for the course. Not only do accepted (or unaccepted) questions I've answered get deleted, but it's been noted that sometimes people accept worse or wrong answers in preference to my better or "right" answers. I'm sure it happens to others also. You weren't the first and you won't be the last.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 28 Oct 2011
Yes, of course. You should know however that since your "infinite" image is multiplied by a mask (whatever region zeros out and crops stuff out) your spectrum will be convolved with the FT of the mask shape. Recall that multiplication in the spatial domain corresponds to convolution in the spectral domain.
  6 Comments
Tricky
Tricky on 30 Oct 2011
Thanks for the Information.....
But In your *Demo Of Filtering a particular portion of Image* I created the binary image by cropping the image in a polygon shape instead of selecting it with mouse as your code does because the polygon selected region contains EDGES so I thought to do highpass filtering for that portion and finally extracting frequencies of that region.
here vertex_x and vertex_y are coordinates of that polygon in binaryimage.
Please explain something about how to extract frequencies in the frequency domain image(FT) by multiplying by a mask.
Thanks In Advance
Image Analyst
Image Analyst on 30 Oct 2011
Yes, but the high pass filtered image was on the original image. I didn't crop it like you did. When you did that, your polygon now fell outside of your new cropped region, unless you take care to subtract an offset from your polygon coordinates. So do that subtraction and then your polygon will now lie over your cropped image, and you can do the masking. Then take the FT and you'll have it. I'd have all the images be single or double so you don't have any problems due to integer quantization.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!