필터 지우기
필터 지우기

How can i compress the text file using huffman encoding?

조회 수: 2 (최근 30일)
Sanjeeb Behera
Sanjeeb Behera 2016년 9월 27일
댓글: Walter Roberson 2020년 8월 29일
Hi
I am using a text file to hide inside an image file in lsb plane. But i want to compress the text file using huffman encoding and hide inside the lsb plane of image file. After retrieve the text file, the text file should be decompressed using huffman encoding.
Can you help in this matter.
  댓글 수: 1
Prakruthi gowda
Prakruthi gowda 2018년 2월 3일
Hi I took steganography as my project using lsb and lsb+huffman coding can anyone help me with correct matlab codes for encoding and decoding and mail me @prakruthi.1110@gmail.com

댓글을 달려면 로그인하십시오.

채택된 답변

Massimo Zanetti
Massimo Zanetti 2016년 9월 27일
  댓글 수: 2
Sanjeeb Behera
Sanjeeb Behera 2016년 9월 27일
Thank u for ur immediate reply
Thanks a lot
Massimo Zanetti
Massimo Zanetti 2016년 9월 27일
If it helped you, please accept this answer.

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Walter Roberson
Walter Roberson 2016년 9월 27일
편집: Walter Roberson 2016년 9월 27일
  댓글 수: 9
Walter Roberson
Walter Roberson 2016년 9월 29일
The output of the execution of what is not clear? Please clarify what you mean by not clear.
Sanjeeb Behera
Sanjeeb Behera 2016년 10월 3일
편집: Walter Roberson 2016년 10월 3일
Here i have given execution code of above program
At first it require to read the file i.e paper4
Then it needs to enter the destination huffman code file name: paper5
Enter huffman table: table
Enter the destination file: paperx
paper5, table and paperx file created but no data is saved in this file.
So can u help me, how can i get correct result?

댓글을 달려면 로그인하십시오.


Usairum Mirza
Usairum Mirza 2019년 10월 16일
편집: Usairum Mirza 2019년 10월 16일
A simple and easy way for encoding and decoding with a text file is give below:(We have used huffman functions in this code).
keep in mind make your text file in capital letters and with no nex line or comms or fullstop
  댓글 수: 2
Ateeb Khawaja
Ateeb Khawaja 2020년 5월 19일
but in this code Encoding is not mentioned. its only decoding
Usairum Mirza
Usairum Mirza 2020년 6월 3일
편집: Usairum Mirza 2020년 7월 10일
By making a dictionay assigning their probabilities and using huffman commands like huffman enco this is where encoding part is. Also after running we can see the compression ratio or number of bits that are compressed just look it up.

댓글을 달려면 로그인하십시오.


Sai Sriram Sunkavalli
Sai Sriram Sunkavalli 2020년 8월 29일
Consider the given file(James C. Maxwell.docx). Compute the probabilities of alphabet and number (ratio of the number of occurrences to the total count of alphabets and numerals) and create a table with symbols and probabilities. Determine the Huffman code for the symbols and create the table of symbols and Huffman codewords. Using the above constructed table encode your name and Roll number.

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by