필터 지우기
필터 지우기

How to divide an image into blocks(non overlapping)?

조회 수: 1 (최근 30일)
Vinay Kumar
Vinay Kumar 2014년 10월 1일
댓글: Vinay Kumar 2014년 10월 15일
I'm facing a problem in dividing an image into non overlapping blocks. I am supposed to take a Fourier transform of the divided blocks.can i use "blockproc" to do this?
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2014년 10월 1일
편집: Geoff Hayes 2014년 10월 1일
Yes, you can use blockproc to do this. See the examples at blockproc for details on how to do this.
Note that you will need the Image Processing Toolbox to use this function.
Vinay Kumar
Vinay Kumar 2014년 10월 15일
Thank you Geoff Hayes

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

채택된 답변

Image Analyst
Image Analyst 2014년 10월 1일
You can use mat2cell() or indexing(). Both of these methods are shown in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F
If you also want to call a function on each block, then you can use blockproc() as illustrated in my two attached demos.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by