Open In App

Basic Attributes of an Image

Last Updated : 26 Aug, 2021
Like Article

Image :

Most of the multimedia applications have to handle the various types of images. Digital image is the integral part of almost all multimedia applications. The digital image is sampled and mapped as a grid of dots or pictures elements. Each pixel is assigned a tonal value(black, white, shades of gray or color) which is represented by binary code. the binary digits for each pixel are stored in a sequence by a computer. To reduce the storage requirement, the image is often stored in a compressed file format.

Basic Attributes of Image :

The quality of an image depends upon certain parameters. These are as follows:

Image Size:

Every image has a width and length expressed either using physical dimensions (cm, inches, etc.) or logical dimensions (pixels). For editing and manipulation of the image, the logical size is considered but if you are going to print it, uses physical dimensions. The dimension of the pixel is the horizontal and vertical measurements of an image that is expressed in pixels. The pixel dimensions can be determined by multiplying both the width and height by the dpi.

Pixel =  ( height and width ) * dpi

Example : An 8″ x 10” document that is scanned at 300 dpi has the pixel dimensions of 2,400 pixels by 3,000 pixels.

File Size :

The file size of the image is the digital size of an image file in kilobytes (kb), megabytes (mb), or gigabytes (gb). It is proportional to the pixel dimension of the image. Images with more pixels require more disk space to store. 

Factors affecting the file size :

  • The larger the size of a file, the more time it will take to load.
  • The file format also affects the file size.

The file size is calculated by multiplying the surface area of a document to be scanned by the but depth and the dpi2 .As we know the file size is represented in bytes which is made up of 8 bits, so divide by 8 :

File Size = (height x width x bit depth x dpi2)/8

If the pixel dimensions are given, multiply them by each other and the bit depth to determine the number of bits in an image file.

File Size = (pixel dimensions x bit depth)/8

Example : 24-bit image is captured with a digital camera with a pixel dimension of 2,048 x 3,072 equals 18,874,368 bytes.

Clock depth/bit depth :

The number of possible shades or tonal degrees that a color can have from black to white. 

Example :

  • Bitonal image is 1-bit i.e. two colors.
  • Grayscale images are typically 8-bit i.e. 256 values.
  • Color images are typically 24 bit colors i.e. 3 colors, 8 bit per color and 16 million values.

Bit depth measures how many unique colors are available in an image’s color palette in terms of numbers of 0’s and 1’s. For a grayscale images, the bit depth counts how many shades of grays are available.

Example : In a 2-bit image, there are four possible combinations: 00,01,10,11.

  • If “00” represents black.
  • If “11” represents white.
  • If “01” represents dark gray.
  • If “10” represents light gray.

The bit depth is two, but the number of tones that can be represented is 22 i.e. 4.

Most color images from digital cameras have 8-bits per channel. This allows for 256 different combinations. When all the three primary colors are combined at each pixel, this allows for as many as 256*256*256 = 16,777,216 different colors, or “true colors”.

1 bit = 2 tones
2 bits = 4 tones
3 bits = 8 tones
4 bits= 16 tones
8 bites = 256 tones
16 bites = 65,536 tones
24 bites = 16.7 million tones

Resolution :

It refers to the number of pixels in an image. A pixel is actually a unit of the digital image. More the count of pixels, the higher the resolution of the image. Higher the resolution of the image, the quality of the image is high. It is also referred to as Pixel Count Resolution. It is expressed in megapixels or pixel dimensions. The term megapixels simply means million of pixels. One megapixel value equals 1 million of pixels. Spatial resolution refers to the number of independent pixel values per un it length. The spatial resolution of an image is commonly referred to in terms of dpi.

Similar Reads

List of basic AutoCAD Terminology
AutoCAD is Computer-Aided Design, which is used to design variety of drawings. It provides various kinds of tools with the help of which different kinds of drawings can be made and viewed easily. Basic AutoCAD Terminology : As, we know meaning of terminology is specific term used in any field. Here we are discussing about AutoCAD, so we are talking
4 min read
Basic Graphic Programming in C++
Introduction So far we have been using C language for simple console output only.  Most of us are unaware that using C++, low level graphics program can also be made. This means we can incorporate shapes,colors and designer fonts in our program. This article deals with the steps to enable the DevC++ compiler to generate graphics . Configuring DevC+
2 min read
Basic Illumination Models
Illumination model, also known as Shading model or Lighting model, is used to calculate the intensity of light that is reflected at a given point on surface. There are three factors on which lighting effect depends on: Light Source : Light source is the light emitting source. There are three types of light sources: Their position, electromagnetic s
2 min read
Components of Image Processing System
Image Processing System is the combination of the different elements involved in the digital image processing. Digital image processing is the processing of an image by means of a digital computer. Digital image processing uses different computer algorithms to perform image processing on the digital images. It consists of following components:- Ima
2 min read
Digital Image Processing Chain
A digital camera image processing chain is constituted to imitate the major functions of the Human Visual System (HVS). The above figure explains the chain. The camera sensor produces a “raw” Colour Filter Array (CFA) which is the input to this chain. Autofocus, auto exposure and automatic white balancing algorithms are collectively referred to as
3 min read
Difference between Image Sampling and Quantization
To create a digital image, we need to convert the continuous sensed data into digital form. This process includes 2 processes: Sampling: Digitizing the co-ordinate value is called sampling. Quantization: Digitizing the amplitude value is called quantization. To convert a continuous image f(x, y) into digital form, we have to sample the function in
1 min read
What is Image Compression?
In the field of Image processing, the compression of images is an important step before we start the processing of larger images or videos. The compression of images is carried out by an encoder and output a compressed form of an image. In the processes of compression, the mathematical transforms play a vital role. A flow chart of the process of th
6 min read
C program to perform reflection of the given 2D image using computer graphics
In this article, we will discuss how to perform reflection in C using computer graphics using logic rather than the direct matrix formula of translation followed by rotation and translation. This technique has currently been applied for the object taken as a triangle, the code can be applied to any object, provided the (Xn, Yn) coordinates are adap
5 min read
Image Formats
Image Format describes how data related to the image will be stored. Data can be stored in compressed, Uncompressed, or vector format. Each format of the image has a different advantage and disadvantage. Image types such as TIFF are good for printing while JPG or PNG, are best for the web. TIFF(.tif, .tiff): Tagged Image File Format this format sto
3 min read
Bitwise Algorithms | Basic
Find the element that appears once Detect if two integers have opposite signs Add 1 to a given number Multiply a given Integer with 3.5 Turn off the rightmost set bit Find whether a given number is a power of 4 or not Compute modulus division by a power-of-2-number Rotate bits of a number Find the Number Occurring Odd Number of Times Check for Inte
5 min read