Beruflich Dokumente
Kultur Dokumente
Abstract –– This work presents a technique for digital image In this work a technique based on decomposing an image in
processing. The technique consists on splitting the original its bits planes is presented to do digital image processing.
image with 256 gray levels into its equivalent 8 binary images. II. METHODOLOGY
The method is extended for true RGB color images by working
out each color plane as a gray scale image and applying the
To separate an intensity image into eight bits planes, we
same algorithm development for the former case to convert any
intensity level into a byte of 8 bits. The results shown out to be proceed as shown in Fig. 1. The intensity of each pixel in
useful for some basic applications such as separating the fine the original image is considered to be some value between 0
features of an image. Memory space for storing images is and 255 that is converted in a byte of 8 bits. Depending of
reduced since the images can be written in binary formats. Bits the intensity value of each pixel on the original image, there
planes technique allows for logical operations and after that, will be a bit on one, some or all the bits planes. By scanning
get back to a gray scale image or color image very easily. The the whole image, there will appear eight images that
potential application of this technique is being studied in order correspond to the eight bits planes; from the least
to detect some anomalies in digital mammographies. A script in significative B0 to the most significative B7.
MatLab has been development with some menus to implement
the bits planes technique for different image formats.
To transform the complete image, a simple algorithm was
Keywords –– Bits Planes, Color Bits Planes, Digital Image implemented and it is described in the following steps:
Processing, Gray Scale Image, RGB Color Image
1.- We start with the first pixel on the image: r=[i], c=[j];
I. INTRODUCTION 2.- The intensity level of the pixel is read: Level;
3.- If Level=0, the least significative plane has a zero:
During the last years with the increasing use of the b(0)=0;
computer and its associate software, the digital image 4.- If Level 0, the planes that have ones must be
processing has become a powerful tool. Several methods determine:
and a multitude of algorithms have been development to 5.- While Level 1
perform processing on images and to explore new 6.- The half part of Level is calculated: Half=Level/2;
applications. 7.- Half is rounded towards zero: Rounded;
8.- The difference between Half and Rounded is calculated:
One of the major objectives of digital image processing is Dif=Half-Rounded;
oriented to improve the image appearance. Some techniques 9.- If Dif=0, the plane gets a zero: b(q)=0;
are designed to suppress interferences or noise, to enhance 10.- If Dif 0, the plane gets an one: b(q)=1;
contrast, etc. But also the measurements of some features of 11.- The value of Level is adjusted: Level=Rounded;
the image are important to do automatic processing. The 12.- We move to the next most significative plane: q=q+1;
areas of application of the digital image processing are 13.- Steps 5 to 12 are repeated until Level<1;
growing very fast. For example, in medicine it is used to 14.- Zeros and ones are collocated in the different image
improve X-ray images, to understand with better accuracy planes: If b(0)=0, B0(i,j)=0, if b(0)=1, B0(i,j)=1; if b(1)=0,
the body´s functions, the effects of some drugs by analyzing B1(i,j)=0, … if b(7)=1, B7(i,j)=1.
pictures with colored substances, to investigate the features 15.- Auxiliar variables are reset and the level of the next
and behavior of tumors, etc. In the artistic field, digital pixel is read;
processing is used to restore photographs and famous 16.- Steps 3 to 15 are repeated until the whole image is
pictures that have been deteriorated. Another application is scanned.
in reconstruction and improvement of images send by
spatial missions, photographs of satellites for weather or The images corresponding to the different bits, from the
natural resources applications. Today, an important area that least significative to the most significative, will be
needs more and more image processing are movies and represented by the matrices: B0(i,j), B1(i,j), …B7(i,j),
electronic games industries. Of course there are several respectively.
military applications of digital image processing [1].
Fig. 2. Image of Saturn in tiff format, 328X438 pixels in size and 0 to 255
gary scale
III. RESULTS
A script in MatLab was also development to implement the Binary Plane, B6 Binary Plane, B7 (the most significative)
B. Recovering the original intensity image Sometimes it is convenient to enhance or to show only some
intensities of a mammography for further processing. For
In order to recover the original image, each matrix purposes of time consuming, in Fig. 5 it is shown a reduced
corresponding to each bits plane, has to be multiply by the original mammography and in Figs. 6 and 7, there are
appropriate decimal: the B0 plane has to be multiply by 1, shown images obtained by the use of AND and OR logic
the B1 plane by 2, the B2 plane by 4, … , the B6 plane by operations of some of the bits planes for the image of Fig. 5
64, and the B7 plane by 128. After that, all matrices can be where some relevant characteristics of the mammography
added and the original image is obtained. are enhanced.
Since the bits planes least significative contribute only with Converted image from RGB.jpeg to gray scale
the finest details of the image, the addition of the five most
significative bits planes will give an image that is almost as
good as the original is. This is shown in Fig. 4.
C. Logic Operations with Bits Planes Image of the logic Operation OR: Planes B7 and B6
Since the resulting images for the different bits planes are all
them binary images, it allows the direct use of logic
operations between them. During the last few years, the
digital image processing has been used with great success in
medical applications. One of the most promising
applications is the possibility to be able to make diagnoss of
cancerigen tumors during the early faces throw the good use
of digital mammographies [2-6].
D. Bits Planes for a RGB True Color Image Color Image: Blue Plane
Fig. 12. Examples of bits planes in intensity for each color plane of Figs. 9,
10 and 11
The resulting planes for the image of Fig. 8 that also Red Color Image. All the Planes
REFERENCES