Fourier Domain of Binary image by binary mask

2 views (last 30 days)
Lee
Lee on 29 Dec 2013
Commented: Image Analyst on 29 Dec 2013
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
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.

Community Treasure Hunt

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

Start Hunting!