Hi !! I have a tiff image, which i have altered to get another matrix say a .Now, I want to compress and decompress it.
Mostrar comentarios más antiguos
i want to compress my matrix(large size) a by using Huffman coding and then decode it again to get the original matrix a. can u post links of any coding u might know that solves my problem
14 comentarios
nayana
el 6 de En. de 2013
Walter Roberson
el 6 de En. de 2013
The output stores only 1 bit per array element; the input had 16 bits per array element. You should be able to calculate from there.
Walter Roberson
el 7 de En. de 2013
Please show size() and class() of your input image.
nayana
el 7 de En. de 2013
Walter Roberson
el 7 de En. de 2013
You must have done something wrong with your compression.
nayana
el 7 de En. de 2013
Editada: Walter Roberson
el 7 de En. de 2013
Walter Roberson
el 7 de En. de 2013
Why are you storing all the coordinate values? Is your image not defined over a regular grid? Why not at most store the first coordinate and the last coordinate for each of the two dimensions, if the coordinates are equally spaced?
Walter Roberson
el 8 de En. de 2013
fwrite() each of the uint8 that encodes a bit; use 'ubit1' precision.
nayana
el 9 de En. de 2013
Walter Roberson
el 9 de En. de 2013
Make sure you write a multiple of 8 bits, as files can only store multiples of 8 bits.
Respuestas (1)
Jan
el 5 de En. de 2013
1 voto
Categorías
Más información sobre Denoising and Compression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!