Missing samples in image
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154878/image.jpeg)
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.
0 个评论
回答(1 个)
Image Analyst
2014-1-9
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 个评论
Image Analyst
2014-1-10
It should look exactly like mine, except that your variable names may be different.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!