Fourier Domain of Binary image by binary mask
Show older comments
Hi Going over exam questions and was wondering if someone could guide me through this; I have a binary image B which is multiplied by a binary mask M, the resulting amplitude is B' I have to come up with 3 binary masks for the exam and describe what each corresponding B' would look like.
Would really appreciate if someone could help out or even point towards somewhere I can read up about it. Thanks :)
Answers (1)
Image Analyst
on 29 Dec 2013
Maybe start with a standard demo image supplied with MATLAB such as eight.tif or coins.png. Then threshold to get a binary image
binaryImage = grayImage > 128; % or whatever.
Then make up some maks, like a rectangle
mask = false(size(binaryImage);
mask(100:200, 100:300) = true;
Then multiply them with .*, not * so that you do an element-by-element multiplication. Use subplot(), imshow(), and title to display them all in one figure.
1 Comment
Image Analyst
on 29 Dec 2013
And after that do whatever Fourier operations you wanted to do.
Categories
Find more on Matched Filter and Ambiguity Function in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!