How can i do the sampling of a binary image?
显示 更早的评论
How can i do the sampling of a binary image?
2 个评论
BHAVIN kakani
2013-2-5
function sampling(x,step)
plot(x(1:step:end),'-o')
plot(abs(fft(x(1:step:end))))
Image Analyst
2013-2-5
Who asked anything about the Fourier transform? Also, an image is usually 2D or 3D, not 1D, though it can be.
回答(3 个)
Jan
2013-1-31
0 个投票
It depends on what "sampling" exactly means. Also "binary image" is not defined, so please post the inputs, the definition of the calculations and an example for the wanted outputs.
Image Analyst
2013-1-31
Here's a way:
subsampledImage = binaryImage(1:2:end, 1:8:end);
How's that? It does exactly what you asked. It you want something more specific, you should explain further.
BHAVIN kakani
2013-2-5
0 个投票
function sampling(x,step)
plot(x(1:step:end),'-o')
plot(abs(fft(x(1:step:end))))
It may help you out......If don't then do contact me with further details.
类别
在 帮助中心 和 File Exchange 中查找有关 Communications Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!