I can't use function jpeg2im
5 views (last 30 days)
Show older comments
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
0 Comments
Answers (2)
See Also
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!