How can i do the sampling of a binary image?

How can i do the sampling of a binary image?

댓글 수: 2

function sampling(x,step)
plot(x(1:step:end),'-o')
plot(abs(fft(x(1:step:end))))
Who asked anything about the Fourier transform? Also, an image is usually 2D or 3D, not 1D, though it can be.

댓글을 달려면 로그인하십시오.

답변 (3개)

Jan
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
Image Analyst 2013년 1월 31일

0 개 추천

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
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에 대해 자세히 알아보기

질문:

Sbh
2013년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by