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

조회 수: 6 (최근 30일)
javad danesh
javad danesh 2021년 12월 25일
답변: yanqi liu 2021년 12월 27일
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개)

Walter Roberson
Walter Roberson 2021년 12월 25일

yanqi liu
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));

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by