anyone suggest me a code for dct2() and blockproc()

2 ビュー (過去 30 日間)
Dhines
Dhines 2012 年 9 月 28 日
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?

採用された回答

Wayne King
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 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by