Question: Find the mathematical relationship that relates our input sensor ( i . e . , light sensor ) to the desired output ( i .

Find the mathematical relationship that relates our input sensor (i.e., light sensor) to the desired output (i.e., RGB color). The aim is to scale the light sensor output range to be between 0 and 255. Hence, making it suitable for the color range. You should write the scaling equation for finding red, green, and blue in terms of the light sensor reading. To do that, you can use the following information:
It is worth noting that the reading range of the light sensor is between 0 and 750(integer values).
Example: When the environment is too dim (i.e., the light sensor output is zero or near zero )=(0, the red, green, and blue representations should be at the minimum )=(0. When the environment is bright, )=(750 the colors' representations should be at the maximum )=(255.
The final mathematical relationship will take the form of y=m(x-x1)+y1, where m is the slope. Please check this link to revise the concept of finding the equation of a line given two points.
 Find the mathematical relationship that relates our input sensor (i.e., light

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!