International Conference on Informatics for Development 2011 (ICID 2011)

The Binary Addition Method in Digital Image

Sumarsono Informatic Department, Faculty of Science and Technology Sunan Kalijaga Islamic State University Yogyakarta [email protected]

Abstract - Digital image is a sequence of real or complex Digital image data format is closely related to color. numbers are represented by specific bits. Possible image to In most cases, particularly for purposes of visual appearance, be processed and developed into a better and beneficial to the value of digital data representing the color of the processed mankind. In a digital image of a wide range of image image. Digital image format that is widely used is the Binary processing can be performed on that image. One operation Image (), gray scale image (gray scale), Image in image processing is applied to the image of hiding secret color (true color), and images. data in the image so that the existence of secret data is In the digital image a wide range of image processing unknown (steganography). A process used in this method of can be performed on that image. One operation in image binary digital image for the application of steganography. processing is applied to the image of hiding secret data in the This process has the characteristics of data input and image so that the existence of confidential data is not known output information in the form of a new image that is (steganography). encrypted. The new image of the binary sum of the two Steganorafi word comes from the Greek meaning images to form a new image so that the original form of the "covered writing". Steganography takes the container image can not be seen. receptacle and confidential data that will be hidden. Digital This application aims to create a software to help steganography using digital media as a reservoir container, secure the data in the form of a image (bmp) and such as images, sounds, text, and video. The hidden secret data create applications for merging the digital image with a can also be images, sounds, text, or video. bitmap image type (bmp) 24 bits. Based on the above background, the application is made to The value of the summed image is the result of the help secure the data in the form of a bitmap image (bmp) by conversion value of the second source image so that it changing the image into a decimal then converted into becomes a new value to form an image. The results from binary, so that later can figure out how to add up the binary in the summation method of two binary images can be the two images and can figure out how to display image results generated a new image encryption to the true value of the in a format bitmap (bmp). original image. II. Image Representation Keywords - steganography, binary addition method, digital The image is a representation of an object. As output an image imagery. data recording system can be analog, in the form of video I. Introduction signals, such as the image on the monitor or television that is digital that can be directly stored on a magnetic tape. The development of information technology that is According to the precision used to express the coordinates of characterized by the development of computer science has a points on the spatial domain (field), and to declare the value of positive effect on the world of multimedia and the arts. One of gray or color of an image, then theoretically the image can be the art which greatly helped with the development of grouped into four classes, namely the image of the continuous- information technology is that photography is an art form continuous, continuous-discrete, discrete- continuous, and based on the image. Possible image to be processed and discrete-discrete. The first label stating the precision of developed into a better and beneficial to mankind. coordinate points in the image field, while the second label Image processing is the processing and image analysis stating the precision value of gray or color. Continuous which involves a lot of visual perception. This process has the expressed with infinite precision numbers, while the discrete characteristics of data input and output information in the form expressed with infinite precision numbers. Digital computers of images. The term digital image processing is generally work with finite precision numbers. Thus, only the image of defined as two-dimensional image processing by computers. In discrete classes that can be processed by computer. The image a broader definition, digital image processing includes all two- of the class known as a digital image. dimensional data. Digital image is a sequence of real or Image in bitmap format (bmp) better than the image in JPEG complex numbers are represented by certain bits. format, which generally does not eliminate many of the Generally, a digital image of a rectangular or square original data so that no information is lost. Free translation of (on multiple imaging systems there is also a form of hexagons) the bitmap is a bit mapping. That is, the pixel intensity values which has a certain width and height. This size is usually in the image is mapped to a specific number of bits. A common expressed in number of dots or so the image size is bit map is 8, meaning that each pixel is 8 bits long. These eight always worth a round. Each point has a corresponding position bits represent the pixel intensity values. Thus there are as many in image coordinates. The coordinates are usually expressed in as 28 = 256 degrees of gray, ranging from 0 to 255. positive integers, which can start from 0 or 1 depending on the Image in bitmap format (bmp) there are three kinds: a binary system used. Each point also has a numeric value that image, color images, and image of the black-white (). represents digital information is represented by a point. Binary image has only two gray values, namely 0 and 1. ISSN:2088-5520 C2-125 International Conference on Informatics for Development 2011 (ICID 2011)

Therefore, 1 bit is enough to represent pixel values. Color Start image is the image of the more common. The colors in the bitmap image (bmp) is a combination of three basic colors, Main Menu namely red, green, and blue. Each pixel is composed by three Yes No Input Source Image encription color components: R (red), G (green) and B (blue). The encription combination of the three RGB colors produces a distinctive No No Convertion process color for the pixel in question. Image encription Yes

The value of each pixel does not state the degree of gray Input Image Inserted directly, but the value RGB pixel index table states that make No Conversion Process the grayish red (R), the gray-green (G), and the gray-blue (B) Image Inserted for the pixel in question. In image, the value R Yes Output = G = B to indicate that the black-white image has only one Result Image color channel. Black and white images are generally 8 bit Yes No Input source image description image (Ahmad, 2004) description

No Converstion Process No III. Binary Addition description Yes Input image Summation by arithmetic summation performed as in decimal, key if there is a carry then this number is added to the figure left. No Description process

(Kf Ibrahim, 2008). Ya 225  1 1 1 0 0 0 0 1 Output : result Image

30  1 1 1 1 0 No Saving

255  1 1 1 1 1 1 1 1 + Yes No Quit Frame-Based Operation (Frame) is an arithmetic operation Yes involving two or more images and produce an output image End which is the result of mathematical operations. The operation is performed point per point with a location corresponding to the Fig. 1. Research Framework images of these inputs. Generally written as follows: (IKG Darma Putra, 2010) C(x,y) = A(x,y) op B(x,y) V. Results and Discussions op is the operator that will be applied to the image. In this application there are 3 pieces of the image is the original A, B is the input image image, the image and image encryption key, as shown in C is the output image Figure 2. X is the horizontal coordinates (width) Y is the vertical coordinate (height)

IV. Research Framework

The design process for the encryption and description of the method of summation of a binary digital image, described in Figure 1

Original Image and Picture Lock function to view or locate an image that will be the input of a folder and display the images that have been in-out input. Images that can be input only a bitmap image format (bmp). Encryption keys, functions to perform the encryption process. Encryption process is the process of converting an image (pixel) to decimal and binary. The Save button, serves to store the results of image encryption. Save the results of encryption with bitmap format (bmp). The results of the pilot trial encryption with enkipsi 372x279 pixel original image is larger than the key image with 250x200 pixels can be seen in Figure 3

ISSN:2088-5520 C2-126 International Conference on Informatics for Development 2011 (ICID 2011)

Fig 3. Encryption of the original image is larger than the key

image Fig 5. Key is larger than the original image

The test result of encryption with the original image 450x292 Description of the test results the original image pixel is pixels smaller than the key images with 499x499 pixels can be greater than the key image. Display shown in Figure 6 seen in Figure 4

Fig 4. Encryption of the original image is smaller than the key image a. Analysis of Encryption The file size on the key image Fig 6 The description of the image pixels bigger must be less than or equal to the original image because the image becomes a key parameter for the description. Description of Analysis b. In the encryption process visible on the image pixels and a. Process description will be successful (terenkrip can size similar to the results of key images. restore the image back into the original image) when c. To process the images look abstract encryption. using an image as a key lock to make the description d. The results of image encryption for a specific image can b. Loading images can only be done using a bitmap file still be seen form the original image so that image quality format, both images will be described and key images is not very strong encryption is used only once because the corresponding to the encryption process. summation method. c. Image size (pixels / dimension) between the images to e. The results are less optimal image encryption (not whole) be dideskrip with key images if the image is larger than encryption keys. To obtain d. on the process descriptions have the same size, this is optimal image results (intact) so when inputting the due to the size of the image encryption process that original image pixel should be equal to the key image will follow the size of the encrypted key images. f. In the fusion of two images encryption, shapes and colors e. The description of an image will not be an election of new images is the sum of the converted value. Every that is not an image with a size equal to the encryption single pixel of the image represents the second new images process. are added up, which when subtracted by one of the images into the parameters it will return the initial image VI. REFERENCES terenkrip. [1] Ahmad, Balza, 2004, Digital Image Processing Techniques The results of the trial decryption key images larger than with Delphi, Penerbit Gava Media, Yogyakarta the original image can be seen in Figure 5 [2] Darma Putra IKG, 2010, Digital Image Processing Yogyakarta : Andi Offset [3] Fadlisyah, dkk, 2008, Image Processing Using the Delphi, Yogyakarta : Graha Ilmu

ISSN:2088-5520 C2-127 International Conference on Informatics for Development 2011 (ICID 2011)

[4] HM., Jogiyanto, 2005. Information Systems Analysis and Design Approach Theory and Practice of Business Applications, Yogyakarta : Andi Offset [5] Kf Ibrahim , 2008, Digital Techniques, Yogyakarta : Andi Offset [6] Madcoms, 2003, Programming Borland Delphi Yogyakarta : Andi Ofset [7] Martina, Inge, 2001, Delphi 7.0, Jakarta : Elex Media Komputindo [8] Simarta J, 2007, Grafika Komputer, Yogyakarta : Andi Offset [9] William Stallings, 2003, “Cryptography and Network Security: Principles and Practices” , 3rd edition, Pearson Education International.

ISSN:2088-5520 C2-128