Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6323323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:29:44+00:00 2026-05-24T16:29:44+00:00

I have been assigned to encode and decode images using the Shannon-Fano technique. I’ll

  • 0

I have been assigned to encode and decode images using the Shannon-Fano technique. I’ll be writing in Matlab.

I am able to access the data array of the image in Matlab, so I can see the value of each pixel. I understand the basics of using the Shannon-Fano technique for text, but not images.

Would I need to loop through each pixel and count the number of occurrences for each pixel value?

Thanks for pointing me in the right direction.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:29:45+00:00Added an answer on May 24, 2026 at 4:29 pm

    Imagine that this picture is actually a text and every pixel is a letter. If you have 8-bit picture, then you might have 256 different letters. How would you encode a text with 256 different letters? Yes, exactly the same way you encode text with 26 different letters, or 5 different letters, for that matter.

    What you want to do in each case, is to make a histogram, sort it, based on frequency of each value, and then encode the image/text. So yes, you have to count each pixel value. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI, I have been assigned a task of exploring unit testing using tools available
I have been assigned to make a mail client which access the mail from
I have been assigned to create a secure server-client access lock, so that server
I have been assigned a project to develop a set of classes that act
I have been assigned wit the task to write a program that takes a
For my assignment I have been assigned the task of creating a DTD for
Part of a new product I have been assigned to work on involves server-side
My company has a web document management application and I have been assigned to
I need some help with a work project I have been assigned. At the
I have recently been assigned a CSS & design project that's in a CakePHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.