Hi, I want to apply arithmetic coding to the image. Can anyone help me?

Hi, I want to apply arithmetic coding to the image. Can anyone help me?

2 件のコメント

Jan
Jan 2021 年 12 月 25 日
The question is too vague to be answered.
javad danesh
javad danesh 2021 年 12 月 25 日
MATLAB code I wanted arithmetic encoding for images.

サインインしてコメントする。

回答 (2 件)

yanqi liu
yanqi liu 2021 年 12 月 27 日

0 投票

clc; clear all;
close all;
img = imread('cameraman.tif');
data = img(:);
input=double(data);
[alphabet,~,seq]=unique(input);
counts = histc(input,alphabet);
code = arithenco(seq,counts);
dseq = arithdeco(code,counts,length(input));
dseq = reshape(dseq,size(img,1),size(img,2));

カテゴリ

ヘルプ センター および File ExchangeImage Processing Toolbox についてさらに検索

質問済み:

2021 年 12 月 25 日

回答済み:

2021 年 12 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by