이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
Hi !! I have a tiff image, which i have altered to get another matrix say a .Now, I want to compress and decompress it.
조회 수: 1 (최근 30일)
이전 댓글 표시
nayana
2013년 1월 5일
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
nayana
2013년 1월 6일
I have tried the file in this link http://www.mathworks.in/matlabcentral/fileexchange/19870-adaptive-huffman-coding
I got the result but my encoded output is uint8 class and of 110458233 bytes where as my original image is 839640 bytes and of uint16 type, so my question is did it really get compressed as the bytes are more in encoded image than in original
Walter Roberson
2013년 1월 6일
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.
nayana
2013년 1월 7일
편집: nayana
2013년 1월 7일
@walter Roberson, Thanks a lot for your help.Actually i am new to mat lab. so i could not figure this out... As you said the output stores less bits per each array element but on whole total no of bits of output is more than total bits of input.so can u clarify whether its compressed or not pls!!
nayana
2013년 1월 7일
편집: Walter Roberson
2013년 1월 7일
@ walter Roberson
i have used code in this link http://www.mathworks.in/matlabcentral/fileexchange/19870-adaptive-huffman-coding and even other codes but whatever i try output size is more than input.
can u please suggest me some coding to compress an array, where i am storing all the coordinate values and intensity values of an image in that array.
Walter Roberson
2013년 1월 7일
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?
nayana
2013년 1월 8일
편집: nayana
2013년 1월 8일
I need to compress such array, that's the job my professor gave to me.anyway i just want output size to be decreased,if 5 elements are there i want it to take it as 5 bits ,but since its of type uint8 its taking 1 byte. i want to convert it into a suitable format so that it will take only 1 bit or something less than 1 byte... By storing the output it in a text file or any other file or by changing its format, if its possible to reduce size, can u please suggest me
nayana
2013년 1월 9일
Thank you.Its working but after storing output into file when i try to read it, the size of the result is one less than that of input.. Do u have an idea about this???
Walter Roberson
2013년 1월 9일
Make sure you write a multiple of 8 bits, as files can only store multiples of 8 bits.
답변 (1개)
Jan
2013년 1월 5일
참고 항목
카테고리
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!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)