Hi, I want to apply arithmetic coding to the image. Can anyone help me?
조회 수: 4(최근 30일)
표시 이전 댓글
Hi, I want to apply arithmetic coding to the image. Can anyone help me?
답변(2개)
yanqi liu
2021년 12월 27일
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
참고 항목
범주
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!