Proposed ZAH_BAU filter for RGB color image enhancement

Similar documents
A Methodology to Create a Fingerprint for RGB Color Image

Efficient Methods used to Extract Color Image Features

A Novel Method for Color Image Recognition

Window Averaging Method to Create a Feature Victor for RGB Color Image

Comparative Analysis of Methods Used to Remove Salt and Pepper Noise

Gray Image Reconstruction

Effective and Secure Method of Color Image Steganography

Stamp Colors. Towards a Stamp-Oriented Color Guide: Objectifying Classification by Color. John M. Cibulskis, Ph.D. November 18-19, 2015

A Methodology to Analyze Objects in Digital Image using Matlab

MATHEMATICAL MORPHOLOGY AN APPROACH TO IMAGE PROCESSING AND ANALYSIS

CSE 332/564: Visualization. Fundamentals of Color. Perception of Light Intensity. Computer Science Department Stony Brook University

A Method of Multi-License Plate Location in Road Bayonet Image

Brightness Calculation in Digital Image Processing

Color Image Processing

Color and More. Color basics

An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

A Hybrid Technique for Image Compression

Developing a New Color Model for Image Analysis and Processing

Distributed Algorithms. Image and Video Processing

Color Image Enhancement by Histogram Equalization in Heterogeneous Color Space

A Locally Tuned Nonlinear Technique for Color Image Enhancement

Image Processing of Two Identical and Similar Photos

Figure 1: Energy Distributions for light

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Image Representation using RGB Color Space

The Technology of Duotone Color Transformations in a Color Managed Workflow

Recovering highlight detail in over exposed NEF images

Reference Free Image Quality Evaluation

Low Contrast Image Enhancement Technique By Using Fuzzy Method

Color: Readings: Ch 6: color spaces color histograms color segmentation

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

DESIGN & DEVELOPMENT OF COLOR MATCHING ALGORITHM FOR IMAGE RETRIEVAL USING HISTOGRAM AND SEGMENTATION TECHNIQUES

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Face Detection System on Ada boost Algorithm Using Haar Classifiers

ABSTRACT I. INTRODUCTION

A Real Time Algorithm for Exposure Fusion of Digital Images

Analysis of various Fuzzy Based image enhancement techniques

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Using Curves and Histograms

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Terms and Definitions. Scanning

Realistic Image Synthesis

the RAW FILE CONVERTER EX powered by SILKYPIX

Content Based Image Retrieval Using Color Histogram

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Graphics and Image Processing Basics

Introduction. The Spectral Basis for Color

Image Restoration and De-Blurring Using Various Algorithms Navdeep Kaur

Keywords: Image segmentation, pixels, threshold, histograms, MATLAB

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

The Unique Role of Lucis Differential Hysteresis Processing (DHP) in Digital Image Enhancement

Bit Depth. Introduction

Chapter 3 Part 2 Color image processing

Brain Tumor Segmentation of MRI Images Using SVM Classifier Abstract: Keywords: INTRODUCTION RELATED WORK A UGC Recommended Journal

Interactive Computer Graphics

Human Vision, Color and Basic Image Processing

Lecture 3: Grey and Color Image Processing

Compression Method for High Dynamic Range Intensity to Improve SAR Image Visibility

Visual Communication by Colours in Human Computer Interface

IMAGE INTENSIFICATION TECHNIQUE USING HORIZONTAL SITUATION INDICATOR

Color and Images. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 16

A Real Time Static & Dynamic Hand Gesture Recognition System

NORMALIZED SI CORRECTION FOR HUE-PRESERVING COLOR IMAGE ENHANCEMENT

A Saturation-based Image Fusion Method for Static Scenes

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

Calibration-Based Auto White Balance Method for Digital Still Camera *

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Additive Color Synthesis

Fig 1: Error Diffusion halftoning method

Urban Feature Classification Technique from RGB Data using Sequential Methods

Histograms& Light Meters HOW THEY WORK TOGETHER

Identification of Fake Currency Based on HSV Feature Extraction of Currency Note

PARAMETRIC ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES

An Improved Bernsen Algorithm Approaches For License Plate Recognition

Image processing & Computer vision Xử lí ảnh và thị giác máy tính

Digital Radiography using High Dynamic Range Technique

Color Theory: Defining Brown

Gernot Hoffmann. Sky Blue

The Classroom Collection. H i s t o g r a m

Prof. Feng Liu. Winter /09/2017

IMAGE PROCESSING: POINT PROCESSES

LECTURE 07 COLORS IN IMAGES & VIDEO

Bi-Level Weighted Histogram Equalization with Adaptive Gamma Correction

Single Image Haze Removal with Improved Atmospheric Light Estimation

ROTATION INVARIANT COLOR RETRIEVAL

1. Brightness/Contrast

IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10

HDR imaging Automatic Exposure Time Estimation A novel approach

PHOTOSHOP. pixel based image editing software (pixel=picture element) several small dots or pixels make up an image.

ISSN: (Online) Volume 2, Issue 1, January 2014 International Journal of Advance Research in Computer Science and Management Studies

Non Linear Image Enhancement

FOG REMOVAL ALGORITHM USING ANISOTROPIC DIFFUSION AND HISTOGRAM STRETCHING

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images

Colour correction for panoramic imaging

Detection and Verification of Missing Components in SMD using AOI Techniques

ADJUSTMENT LAYERS TUTORIAL

Performance Analysis of Color Components in Histogram-Based Image Retrieval

Session 1. by Shahid Farid

Transcription:

IJCSI International Journal of Computer Science Issues, Volume 14, Issue 1, January 217 www.ijcsi.org https://doi.org/1.2943/12171.7478 74 Proposed ZAH_BAU filter for RGB color image enhancement Ashraf Abdel-Karim Abu-Ein 1, Ziad A. Alqadi 2 and Hazem (Moh'd Said) Hatamleh 3 1 Computer Engineering and Computer Networks Department, Al-Balqa Applied University Amman, 158 Amman 11134 Jordan, Jordan 2 Computer Engineering and Computer Networks Department, Al-Balqa Applied University Amman, 158 Amman 11134 Jordan, Jordan 3 Applied Science Department, Al-Balqa Applied University Ajloun, Jordan Abstract Image contrast enhancement is an important step in almost every digital image preprocessing phase. The objective of image enhancement is to increase the visual perception of the image so that it is more suitable for human viewers and readers or machine vision applications. In this paper a new ZAH_BAU filter will be proposed, this filter can be used to control the brightness of RGB color image, and control individual channel in color image. The filter can be used also for different applications such as certain color removal and color image enhancement. Keywords: RGB image, HSV image, ZAH_BAU filter, color removing. blue primaries of the device or of the particular RGB space[4],[5],[6], table 1 shows some RGB values and there equivalents in HSV model. To convert the R,G,B of the color image values are divided by 255 to change the range from..255 to..1 we can apply the following formulas: R' = R/255 G' = G/255 B' = B/255 Cmax = max(r', G', B') Cmin = min(r', G', B') Δ = Cmax - Cmin Hue calculation: 1. Introduction RGB color image is a 3 dimensional matrix [1], [2], [3], and it is an additive color model. It means that different proportions of Red, Blue and Green light can be used to produce color. The RGB color model was created specifically for display purposes (display screens, projectors etc). HSV color system is based on the Hue shift, Saturation and Value. Unlike the RGB color system, which has to do with "implementation details" regarding the way RGB displays color, HSV has to do with the "actual color" components. Another way to say this would be RGB is the way computers treats color, and HSV try to capture the components of the way we humans perceive color. The main reason to work on the HSV version of an image is because using Hue component makes the algorithms less sensitive (if not invariant) to lighting variations. Because HSL and HSV are simple transformations of devicedependent RGB models, the physical colors they define depend on the colors of the red, green, and Saturation calculation: Value calculation: V = Cmax Color Table 1: RGB values and there equivalents in HSV model Color name (R,G,B) (H,S,V) Black (,,) (,%,%) White (255,255,255) (,%,1%) Red (255,,) (,1%,1%) Lime (,255,) (12,1%,1%)

IJCSI International Journal of Computer Science Issues, Volume 14, Issue 1, January 217 www.ijcsi.org https://doi.org/1.2943/12171.7478 75 2. Related works Blue (,,255) (24,1%,1%) Yellow (255,255,) (6,1%,1%) Cyan (,255,255) (18,1%,1%) Magenta (255,,255) (3,1%,1%) Silver (192,192,192) (,%,75%) Gray (128,128,128) (,%,5%) Maroon (128,,) (,1%,5%) Olive (128,128,) (6,1%,5%) Green (,128,) (12,1%,5%) Purple (128,,128) (3,1%,5%) Teal (,128,128) (18,1%,5%) Navy (,,128) (24,1%,5%) Image contrast enhancement is an important step in almost every digital image preprocessing phase. The objective of image enhancement is to increase the visual perception of the image so that it is more suitable for human viewers and readers or machine vision applications [4], [5]. One of the mostly used methods to examine the clearance of the gray image is to represent the image by a histogram [6]. The histogram in Fig. 1 represents the pixels in the image with a vertical bar for each of the 256 brightness levels from to 255. The height of the bar indicates the relative number of pixels for a given brightness level. Brightness level is at the far left side of the histogram, and level 255 is at the far right hand side. Shades of gray represented by different brightness levels range in between [7]. Because we have a limited amount of space for the histogram display, each vertical bar that represents an individual brightness level will be very narrow. The bars will be crowded touching each other without any space in between, if we do, in fact, we will have pixels for each possible level in the image. There are 256 different brightness levels to work with in an 8-bit image. Each level is represented by a vertical bar in the histogram's bar graph, but because there are so many to be displayed in such a limited space, individual bars cannot be differentiated because they all run together. By examining the histogram, we can tell if data has been lost, or if the brightness range of the image does not match the available dynamic range we have to work with[8], [9]. 3. Unused Dynamic Range = Tones Not Used Since we have a limited range of tones to work with in a digitized image (usually 256 in each channel), one of our main goals is to make sure we closely match the brightness range of the image to the available dynamic range of the tones we have to work with. Doing so optimizes the tonal data and maximizes the contrast of the image [1]. Clipped Data = Data Lost If we overexpose a slide film, details will not be recorded in the important highlights. On the film where the highlights should be, the film will literally be transparent. There will be no data recorded there. If this happens, there is no way to restore these lost details later. Likewise, if we underexpose an image, no details will be recorded in critical shadow areas of the image [11], [12]. If such detail are not recorded when the exposure is made, there is no way to put it in later. Similar situations can occur when scanning an image. If some details present in the original film image are not recorded in the scan, then there is no recovery possible later unless it is re-scanned. Details in the shadows and highlights of an image can be lost by the scanner setting the wrong exposure for the clipped shadow detail (CSD) in the pre-scan, or by the scanner operator incorrectly setting the black and white points after the prescan, or by incorrectly adjusting the brightness or contrast of the scan. Removing unwanted parts or colors [13], leads to image enhancement but we have still need to control the parts or colors in RGB image to be removed, Here an example of how we can control the process of color removing (Figure 1) by processing the following mat lab code: myrgb = rand(5,5,3); imagesc(myrgb),figure floatnorm = 255; tad = repmat(4, [5, 5, 3]); target = repmat([15,112,175], 5*5, 1); target = reshape(target, [5, 5, 3]); threshold = (target + tad)/floatnorm; myfilt = abs(myrgb - 1/2) <= threshold; myrgb(myfilt) = ; imagesc(myrgb)

IJCSI International Journal of Computer Science Issues, Volume 14, Issue 1, January 217 www.ijcsi.org https://doi.org/1.2943/12171.7478 76 1 2 3 4 5 Original image 5 1 15 2 25 3 35 4 45 5 Here we can control the tad, the rang (low and high values, the channel to be enhanced, thus giving more flexibility to the user to apply the filter for deferent application. 5. ZAH_BAU filter implementation 1 2 3 4 5 Ranging color 5 1 15 2 25 3 35 4 45 5 Figure 1: Color removing and enhancement 4. The proposed ZAH_BAU filter The proposed ZAH_BAU filter (stands for Ziad Ashraf Hazem Al-Balqa Applied University) can be implemented applying the following steps: The following matlab code was written to implement the proposed algorithm close all, clear all, clc %step 1: Acqiure the input image a = imread('peppers.png'); raw_frame=a; imshow(a), title 'Original image' figure %step 2: Get the R, G, B channels redchannel = a(:, :, 1); greenchannel = a(:, :, 2); bluechannel = a(:, :, 3); [redcount graycount] = imhist(redchannel); [greencount graycount] = imhist(greenchannel); [bluecount graycount] = imhist(bluechannel); plot(graycount,redcount,graycount,greencount,graycoun t,bluecount) legend('original Red','Original Green','Original Blue') tic %step 3: Define the targets for each channel targetrgb(1,1,1) = 15; targetrgb(1,1,2) = 112; targetrgb(1,1,3) = 175; %step 4:Convert the required channel to HSV targethsv = rgb2hsv(targetrgb); %step 5:Convert the original RGB image to HSV framehsv = rgb2hsv(raw_frame); framesize = size(raw_frame); %step 6: Define the tad htad =.5; %Step 7: Calculate the range(low and high) targethlow = (targethsv(1) - htad + 1) floor (targethsv(1) - htad + 1); targethhigh = (targethsv(1) + htad) - floor (targethsv(1) + htad ); %Step 8: Create the filter with size = one channel size. % Fill the filter with zeros hfilter = zeros(framesize(1),framesize(2)); %Set the filter element to 1 according to the following condition hfilter(hfilter<targethlow) = 1; hfilter(hfilter>targethhigh) = 1; %Step 9: Zero out the value channel. framev = framehsv(:,:,3); framev(hfilter) = ; framehsv(:,:,3) = framev; %Step 1: Convert the modified HSV back to RGB.

IJCSI International Journal of Computer Science Issues, Volume 14, Issue 1, January 217 www.ijcsi.org https://doi.org/1.2943/12171.7478 framefiltered = hsv2rgb(framehsv); toc figure,imshow(framefiltered), title 'Filtered image' figure redchannel = framefiltered(:, :, 1); greenchannel =framefiltered(:, :, 2); bluechannel = framefiltered(:, :, 3); [redcount graycount] = imhist(redchannel); [greencount graycount] = imhist(greenchannel); [bluecount graycount] = imhist(bluechannel); plot(graycount,redcount,graycount,greencount,graycoun t,bluecount) legend ('Filtered Red','Filtered Green','Filtered Blue') Several RGB images with deferent sizes were treated using the proposed algorithm and the results of implementation satisfied the needed process of RGB color image enhancement, figure 2 to 5 shows some experimental results. Original image 77 Filtered image FIGURE 3: FILTERED IMAGE 12 Filtered Red Filtered Green Filtered Blue 1 8 6 4 2.1.2.3.4.5.6.7.8.9 1 FIGURE 3: FILTERED IMAGE CHANNELS VALUES The execution time of the filter does not exceed.156 seconds. 6. Conclusions FIGURE 2: ORIGINAL INPUT IMAGE 12 Original Red Original Green Original Blue 1 8 6 4 2 5 1 15 2 25 3 Taking the results of implementation in consideration we can conclude the following facts: The proposed filter suits gray and color image enhancement. The proposed filter can be used to remove unwanted colors within RGB image or unwanted colors within a color channel. The parameters of the proposed filter (Low, High, range, Tad and channels) are controllable by the user. The proposed filter is flexible and efficient. FIGURE 3: ORIGINAL IMAGE CHANNELS VALUES References [1] Jamil Al Azzeh, Ziad A. Alqadi, Hussein Alhatamleh, 216. Mohammad Khalil Abuzalata, Creating a Color Map to be used to Convert a Gray Image to Color Image, International Journal of Computer Applications (975 8887) Volume 153 No 2. [2]: Majed O Al-Dwairi Ziad A Alqadi Amjad A Abujazar Rushdi Abu Zneit, Optimized True-Color Image Processing, WAS journal: 8(1), 1175-1182, 211. [3]: Haitham Alasha'ary, Abdullah Al-Hasanat, Khaled Matrouk, Ziad Al-Qadi, Hasan Al-Shalabi, 214. A Novel Digital

IJCSI International Journal of Computer Science Issues, Volume 14, Issue 1, January 217 www.ijcsi.org https://doi.org/1.2943/12171.7478 78 Filter for Enhancing Dark Gray Images, European Journal of Scientific Research ISSN 145-216X / 145-22X Vol.122 No.1, pp.99-16. [4] Barten P. G., 1999. Contrast Sensitivity of the Human Eye and its Effects on Image Quality, SPIE - The International Society for Optical Engineering, P.O. Box 1 Bellingham Washington 98227-1. ISBN -8194-3496-5. [5] Fattal R., Lischinski D., and Werman M., 22. Gradient Domain High Dynamic Range Compression, ACM Transactions on Graphics, Proceedings of ACM Siggraph 21(3), pp. 249 256. [6] Hanmandlu M., Jha D., and Sharma R., 2. Color Image Enhancement by Fuzzy Intensification, Proceedings of the International Conference on Pattern Recognition. [7] Hanmandlu M., Jha D., and Sharma R., 21. Localized Contrast Enhancement of Color Images Using Clustering, Proceedings of the IEEE International Conference on Information Technology: Coding and Computing (ITCC). [8]: Waheeb Abu Ulbeh, Akram Moustafa, Ziad A Alqadi, Gray image reconstruction, European Journal of Scientific Research, vol.27-2,pp 167-173,29. [9] Akram A Moustafa, Ziad A Alqadi, 29. A Practical Approach of Selecting the Edge Detector Parameters to Achieve a Good Edge Map of the Gray Image, Journal of Computer Science 5 (5): 355-362, 29 ISSN 1549-3636. Authors information conference proceedings. Dr. Ashraf Abdel-Karim Abu-Ein was born in Irbid, Jordan in 1979, he received his Ph.D. Degree in 27 from the National Technical University of Ukraine. He is currently Associate Professor of computer engineering and computer networks department of Al- Balqa University. His current research interest is including computer networks, image processing and computer graphics and digital image processing. He is the author and coauthor more than 2 paper in international and more than 1 paper in Prof. Ziad Alqadi he received the M.Sc. and PH.D degrees in 1986 from National Technical University of Ukraine. He is currently full Professor of computer engineering and computer networks department of Al-Balqa University. His current research interest is including digital image processing, Algorithms, image processing and computer graphics. Dr. Hazem (Moh d Said) abdel majid Hatamleh was born in irbid, Jordan in 1973, he received he M.Sc. and PH.D degrees in 27 from the National Technical University of Ukraine. He is currently Associate Professor of Applied science department of Al-Balqa University. His current research interest is including computer networks, wireless networks, and image processing and computer graphics.