divide an image to blocks
1 回表示 (過去 30 日間)
古いコメントを表示
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 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!