DESKTOP APPLICATION FOR RED-GREEN COLOR BLINDNESS Mahendra Sunt Servanda 54411250 Informatics Engineering Supervisor: Dr. Yuhilza Hanum
INTRODUCTION
Background Image and colors now have important role in communication Image contain a lot of information Red-Green color blindness people cannot see the image clearly (coloured image) This kind of application is still rare in desktop version is one of the reason to develop application on it
Problem Statement How to create a desktop-based application which can perform color conversion for dichromacy so people can clearly see the images in the variety colors? How to implement the color conversion algorithms in C ++?
Research Objective Build an application which can perform color conversion from the image OpenCV library. and webcam, using C++ and
Research Methodology LITERATURE REVIEW ANALYSIS AND DESIGN IMPLEMENTATION TESTING
LITERATURE REVIEW
Red-Green Colorblindness Protanopia (Red Colorblindness) Absence of red retinal photoreceptors See gray in long wavelength Deuteranopia (Green Colorblindness) Absence of green retinal photoreceptors See yellow in long wavelength
Algorithm Do matrix multiplication between 3x3 matrix and a coloured image to obtain LMS image X = LMS IMAGE
Algorithm (Cont.) Do matrix multiplication between 3x3 matrix (protanopia or deuteranopia) and previously LMS image to get LMS image dichromat Protanopia Deuteranopia OR X LMS IMAGE = DICHROMAT LMS
Algorithm (Cont.) Do matrix multiplication between 3x3 inverted matrix and previously LMS dichromat to get coloured image which seen by dichromat Inverse of X LMS DICHROMAT = RGB DICHROMAT
Algorithm (Cont.) Do matrix subtraction between original image and image which seen by dichromat (RGB dichromat) to obtain an error matrix - RGB DICHROMAT = ERROR MATRIX
Algorithm (Cont.) Do matrix multiplication between 3x3 matrix and error matrix to obtain error modification matrix = X ERROR MATRIX ERROR MODIFICATI ON MATRIX
Algorithm (Cont.) Do matrix addition between 3x3 matrix modification error and original image to obtain daltonized image ERROR MODIFICATI ON MATRIX + = RESULT IMAGE
ANALYSIS AND DESIGN
System Requirements Minimum System Requirements QT Creator 3.30 x64 Qt 5.4.0 x64 MinGW 4.9.2 (SJLJ) Software OpenCV Image Processing Library CMake My System OS Windows (XP Above), Linux, OS X Windows (XP Above), Linux, OS X Windows (XP Above), Linux, OS X, FreeBSD, OpenBSD, Windows (XP Above), Linux, OS X Microsoft Windows 7 Home Premium 64-bit (passed) Processor Single-Core 1 GHz Single-Core 1 GHz Single-Core 900 MHz Single-Core 1 GHz Intel Core i5 2410M 2.30 GHz (passed) RAM 256 MB of RAM 256 MB of RAM 256 MB of RAM 256 MB of RAM 8 GB of RAM (passed) VGA - - 256 MB of Graphic Card - ATI Radeon 6610M 1GB (passed) Webcam - - Generic Webcam - Exmor HD Camera (passed)
Use Case Diagram
Class Diagram
Activity Diagram Ishihara Test Image Conversion
Activity Diagram (Cont.) Image Simulation Camera Conversion
Activity Diagram (Cont.) Camera Simulation
Navigation Structure
IMPLEMENTATION AND TESTING
Application Interface
Application Interface (Cont.)
Application Interface (Cont.)
Application Interface (Cont.)
Application Interface (Cont.)
Application Interface (Cont.)
Testing (System Testing) No. Function Input Expected Output Output Result 1. Ishihara test User click ishihara test button Ishihara test window appear Ishihara test window appear Success 2. Next image (ishihara test) User click next button Next image test appear Next image test appear Success 3. Ishihara test help User click help button in ishihara test Help message appear Help message appear Success 4. Image conversion User click image conversion button Image appear conversion window Image conversion window appear Success 5. Browse image User click browse image button File manager appear File manager appear Success 6. Convert image User click execute button Image converted Image converted Success 7. Image conversion test help User click help button in image conversion Help message appear Help message appear Success
Testing (System Testing) No. Function Input Expected Output Output Result 8. Image simulation User click image simulation button Image simulation window appear Image simulation window appear Success 9. Browse image User click browse image button File manager appear File manager appear Success 10. Image simulation User click execute button Image converted Image converted Success 11. Image simulation test help User click help button in image simulation Help message appear Help message appear Success 12. Camera conversion User click camera conversion button Camera conversion window appear Camera conversion window appear Success 13. Daltonized camera User click begin daltonization button Normal camera window and daltonized camera window appear Normal camera window and daltonized camera window appear Success
Testing (System Testing) No. Function Input Expected Output Output Result 14. Camera conversion help User click help button in camera conversion Help message appear Help message appear Success 15. Camera simulation User click camera simulation button Camera window appear simulation Camera simulation window appear Success 16. Simulation camera User click begin simulation button Normal camera window and simulation camera window appear Normal camera window and simulation camera window appear Success 17. Camera simulation help User click help button in camera simulation Help message appear Help message appear Success 18. How to use User click how to use button Help message appear Help message appear Succes 19. About app User click about app button Information appear message Information appear message Success 20. Exit User click exit button Exit application Exit application Success
Testing (UAT) Yes No Parameter Quantity Percentage Quantity Percentage Application Interface, menus and screen, were laid out in logical fashion 27 90% 3 10% This Application is Easy to Operate 30 100% 0 0% Menu/Action Names Made Sense 19 63.333% 11 36.667% Application Guide is Informative 30 100% 0 0% Error Message Gave Useful Information 28 93.333% 2 6.667% Total 89% 11%
CONCLUSION AND SUGGESTION
Conclusion Desktop application for red-green color blindness is succesfully developed in desktop-based application This application have following features: Determine the type of color blindness by testing with pictures Perform dichromacy color simulation (image and webcam). Perform a color conversion of inserted images by user. Take pictures from a webcam and perform color conversion. UAT result show that 89% users consider this application is good, it means the application delivered well to users
Suggestion Selection of the background color of this application is expected to provide more comfort to the user. Transformation and simulations are expected to use separate webcam in order to display video with better resolution