I can't use function jpeg2im
조회 수: 14 (최근 30일)
이전 댓글 표시
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
댓글 수: 4
Stephen23
2025년 1월 4일
편집: Stephen23
2025년 1월 4일
@Divyashree: I do not see any syntax in the BLOCKPROC dodocumentation that matches how you are calling it. After the 3rd input (the function handle) the documentation states that you can provide name-value pairs. But instead of following what the documentation describes, you have provided a single numeric input:
x = blockproc(x, blockSize, @(x) x .* p1, m);
% ^ what do you expect this to do?
The function handle is not written to accept a BLOCK STRUCT as the documenation explains:
P1 is not defined anywhere.
The syntax of the next BLOCKPROC call does not follow the documentation either.
Divyashree
2025년 1월 6일
Thank you so much I got the output. Can you give me refrence text book name for video compression using matlab like Digital image processing using matlab (Gonzalez). So it will be useful for my research work.
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
