필터 지우기
필터 지우기

divide an image to blocks

조회 수: 1 (최근 30일)
nadia
nadia 2014년 10월 31일
답변: Image Analyst 2014년 11월 1일
hi i have an 256*256 image and i want to divide it to 8*8 blocks without overlapping and then calculate DCT for each blocks. how to do it?please help me
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 10월 31일
Nadia - if you have the Image Processing Toolbox, you should check the example from here DCT with blockproc.

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

답변 (1개)

Image Analyst
Image Analyst 2014년 11월 1일
There are code samples in the FAQ using two different methods, mat2cell() and regular indexing. That just gives you the subimages. You can call a function on them if you want to process each subimage. If you want to use blockproc(), see my attached demos.

Community Treasure Hunt

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

Start Hunting!

Translated by