logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

You are required lo develop an Interactive Android application that graphs a CIE.xy chromaticity diagram. displays the gamut of RGB color space and converts between xyz to rgb values

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Tasks: You are required lo develop an Interactive Android application that graphs a CIE.xy chromaticity

diagram. displays the gamut of RGB color space and converts between xyz to rgb values.

Introduction:

The CIE chromaticity diagram is an abstract 2D space where it is possible to map all color gamuts. Given below

are values for the x and y coordinates on the perimeter of the diagram.

x = [0.1756,0.1752,0.1748,0.1745,0.1741,0.1740,0.1738,0.1736,0.1733,0.1730,0.1726,0.1721,0.1714,0.1703,0.1689, 0.1669,0.1644,0.1611,0.1566,0.1510,0.1440,0.1355,0.1241,0.1096,0.0913,0.0687,0.0454,0.0235,0.0082,0.0039,0. 0139,0.0389,0.0743,0.1142,0.1547,0.1929,0.2296,0.2658,0.3016,0.3374,0.3731,0.4087,0.4441,0.4788,0.5125,0.5 448,0.5752,0.6029,0.6270,0.6482,0.6658,0.6801,0.6915,0.7006,0.7079,0.7140,0.7190,0.7230,0.7260,0.7283,0.73 00,0.7311,0.7320,0.7327,0.7334,0.7340,0.7344,0.7346,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.734 7,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347,0.7347 ,0.7347,0.7347,0.7347,0.7347];

 

y = [0.0053,0.0053,0.0052,0.0052,0.0050,0.0050,0.0049,0.0049,0.0048,0.0048,0.0048,0.0048,0.0051,0.0058,0.0069, 0.0086,0.0109,0.0138,0.0177,0.0227,0.0297,0.0399,0.0578,0.0868,0.1327,0.2007,0.2950,0.4127,0.5384,0.6548,0 .7502,0.8120,0.8338,0.8262,0.8059,0.7816,0.7543,0.7243,0.6923,0.6588,0.6245,0.5896,0.5547,0.5202,0.4866,0. 4544,0.4242,0.3965,0.3725,0.3514,0.3340,0.3197,0.3083,0.2993 ,0.2920,0.2859,0.2809,0.2769,0.2740,0.2717,0. 2700,0.2689,0.2680 ,0.2673,0.2666,0.2660,0.2656,0.2654,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0. 2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2653,0.2 653,0.2653,0.2653,0.2653,0.2653];

You can use these values to graph the (‘lE color space, project it onto the x÷y+z—l plane, and trace the

“horseshoe” shape of the diagram onto this plane by connecting the consecutive points defined by these xy values.

You can then put the colors into this diagram using the transformation matrix below to get the gamut of RG13

color space:

r 3.240 —1.537 —0.498 X

g — —0.969 1.876 0.042 y

b 0.056 —0.204 1.057 z

Accordingly, any color specified in rgb values can be converted into its xyz using:

X 0.412 0.358 0.180 r

y = 0.213 0.715 0.072 9

Z 0.019 0.119 0.950 b

Note that the above conversion between xyz and rgb values assumes that each of the value is wïthin

[OE0. 1.0]. i.e. {x.y,z,r,b,g) E 10.0,1.01.

Requirements

The program should be named as ‘ClExy” with a simply GUI to achieve the following functions and

interactions.

a. The application must have an easy to use and reasonably looking GUI

b. Graph the perimeter of CIE-xy chromaicity diagram in an image of size 480 (height) x 300

(width) pixels and display the image. Background of the image has to be set appropriately such

that the perimeter stands out.

c. Generate and display the gamut of R(i13 color space on top of the graphed perimeter of the

CIE-xy chroniaticity diagram

d. Beneath the view of the CIE-xy Chromaticity diagram. provide a conversion between rgb values

and xyz values. i.e. Entering rgb or xyz values, the corresponding xyz or rgb values will be

calculated and displayed.

Debugging and Testing the Application

The application should be using the following settings

Company I)omaln: <your login>.csci366au2o.com

T%hlnlmIIm SDK: API 29: Android 10.0 (Q)

Test the application on the virtual device “Pixel 2 API 29”:

Hai-dware: Phone - Pixel 2, size 5.0”, resolution 1080x1920, density 42Odpi

Systemit Software: Q, API 29, ABI x86, Target Android 10.0 (with Google APIs)

AVD Name: Pixel 2 API 29

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

704 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

642 Answers

Hire Me
expert
Husnain SaeedComputer science

505 Answers

Hire Me
expert
Atharva PatilComputer science

535 Answers

Hire Me