Memory space

May 20, 2010 02:34 am | Updated 02:34 am IST

Why do the same photos taken from the same camera take up different memory space?

Ruben Jackson, Kottayam, Kerala

Some pictures take up less storage space in memory because patterns within the picture mean they can be represented more compactly.

A digital picture is made up of many small coloured dots called pixels. These pixels are packed so closely together that we do not see them individually, but rather they merge into each other to create the picture. Most digital cameras take photographs that are made up of millions of pixels.

Each pixel is represented by a series of numbers that contain information about the colour and brightness of the pixel

Mathematical techniques called compression algorithms are used to reduce the memory space required. The algorithms use patterns in the picture to reduce memory size. For instance, if there are 10 white pixels in a row, it is more compact to store this information as a code that means "10 white pixels" rather than simply repeating the same information for each of the white pixels. The algorithms are more sophisticated than this, but essentially they search for all sorts of patterns to make the information storage smaller.

Simple pictures can be stored in less space than complicated pictures. A simple picture has simple relationships among the pixels and these can be represented by simple codes. You can try this by taking a photograph of a white page and one of an ordinary scene. The memory size of the photo of the white page will be much smaller. No two photos will be exactly the same, and there will be different amounts of compression in each.

The compression algorithm may also approximate some parts of the picture to reduce the memory storage. This may lead to the loss of some of the detail in the picture, but often it cannot be detected by eye. Such algorithms are called "lossy", and the "jpeg" format commonly used in cameras is an example of this type.

When a photograph is stored in memory, it means that the numbers representing the pixels need to be stored. Therefore each picture requires the storage of many millions of numbers. However, large picture files are a problem since they take up more memory and are slower to copy and transmit.

Ian Cathers

Educational Consultant,

IID Community College,

Chennai

0 / 0
Sign in to unlock member-only benefits!
  • Access 10 free stories every month
  • Save stories to read later
  • Access to comment on every story
  • Sign-up/manage your newsletter subscriptions with a single click
  • Get notified by email for early access to discounts & offers on our products
Sign in

Comments

Comments have to be in English, and in full sentences. They cannot be abusive or personal. Please abide by our community guidelines for posting your comments.

We have migrated to a new commenting platform. If you are already a registered user of The Hindu and logged in, you may continue to engage with our articles. If you do not have an account please register and login to post comments. Users can access their older comments by logging into their accounts on Vuukle.