anyone suggest me a code for dct2() and blockproc()
조회 수: 3 (최근 30일)
이전 댓글 표시
i take one image with any kind of size. for that image how to apply 8x8 dct. anyone suggest me what is the code for this?
댓글 수: 0
채택된 답변
Wayne King
2012년 9월 28일
Hi, You should have just continued the post that you started here:
Did you read the help for dct2() and blockproc()?
fun = @(block_struct) dct2(block_struct.data);
RGB = imread('autumn.tif');
I = rgb2gray(RGB);
Y = blockproc(I,[8 8],fun);
댓글 수: 0
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!