I can't use function jpeg2im

5 views (last 30 days)
Jila
Jila on 3 Oct 2013
Commented: Liang Qiaoyi on 18 Dec 2020
when i type i.e. >> f1=jpeg2im(c1);
i face these errors
??? Attempt to execute SCRIPT unravel as a function: C:\Program Files\MATLAB\R2010b\bin\unravel.m
Error in ==> huff2mat at 61 x = unravel(y.code', link, m * n); % Decode using C 'unravel'
Error in ==> jpeg2im at 42 x = huff2mat(y.huffman); % Huffman decode.
and unravel.m has not any code.
%UNRAVEL Decodes a variable-length bit stream. % X = UNRAVEL(Y, LINK, XLEN) decodes UINT16 input vector Y based on % transition and output table LINK. The elements of Y are % considered to be a contiguous stream of encoded bits--i.e., the % MSB of one element follows the LSB of the previous element. Input % XLEN is the number code words in Y, and thus the size of output % vector X (class DOUBLE). Input LINK is a transition and output % table (that drives a series of binary searches): % % 1. LINK(0) is the entry point for decoding, i.e., state n = 0. % 2. If LINK(n) < 0, the decoded output is LINK(n); set n = 0. % 3. If LINK(n) > 0, get the next encoded bit and transition to % state [LINK(n) - 1] if the bit is 0, else LINK(n).
% Copyright 2002-2009 R. C. Gonzalez, R. E. Woods, and S. L. Eddins % From the book Digital Image Processing Using MATLAB, 2nd ed., % Gatesmark Publishing, 2009. % % Book web site: http://www.imageprocessingplace.com % Publisher web site: http://www.gatesmark.com/DIPUM2e.htm

Answers (2)

vivek kumar
vivek kumar on 14 May 2018
facing the same issue please help

xi jiang
xi jiang on 26 May 2020
  1 Comment
Liang Qiaoyi
Liang Qiaoyi on 18 Dec 2020
请问这个问题是怎么解决的,可以具体说说吗?

Sign in to comment.

Categories

Find more on Get Started with MATLAB 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!