I can't use function jpeg2im

7 visualizaciones (últimos 30 días)
Jila
Jila el 3 de Oct. de 2013
Comentada: Divyashree el 6 de En. de 2025
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 comentarios
Stephen23
Stephen23 el 4 de En. de 2025
Editada: Stephen23 el 4 de En. de 2025
@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
Divyashree el 6 de En. de 2025

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.

Iniciar sesión para comentar.

Respuestas (1)

xi jiang
xi jiang el 26 de Mayo de 2020
  1 comentario
Liang Qiaoyi
Liang Qiaoyi el 18 de Dic. de 2020
请问这个问题是怎么解决的,可以具体说说吗?

Iniciar sesión para comentar.

Categorías

Más información sobre Import, Export, and Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by