Hi, I want to apply arithmetic coding to the image. Can anyone help me?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I want to apply arithmetic coding to the image. Can anyone help me?
2 Kommentare
Antworten (2)
yanqi liu
am 27 Dez. 2021
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));
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!