divide an image to blocks
이전 댓글 표시
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
2014년 10월 31일
Nadia - if you have the Image Processing Toolbox, you should check the example from here DCT with blockproc.
답변 (1개)
Image Analyst
2014년 11월 1일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Neighborhood and Block Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!