Missing samples in image

Can any body guide me how to convert image and its DFT like the above one using MATLAB. The region in black means that the value of these pixels is 0.

回答(1 个)

Make a binary image which is true where there is supposed to be black pixels and false where there is the gray. Then just zero out your image at the true locations
yourImage(binaryImage) = 0;

3 个评论

rest12
rest12 2014-1-10
编辑:rest12 2014-1-10
No actually I want to convert below right image (which is my input image) in to left image which is my output. How can I do that?
I find the solution.
It should look exactly like mine, except that your variable names may be different.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by