Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We are NOT allowed to use scipy at all so please use a method that doesn't involve that. We are able to use numpy. ?
We are NOT allowed to use scipy at all so please use a method that doesn't involve that. We are able to use numpy.
? (20%) In Python, RGB colors are expressed in three-element arrays. For example, [1.0, 0.0, 0.0] is red, [o.o, 1.0, 0.0] is green, [o.0, o.5, 0.5] is sort of bluish-green, and [1.0, 1.0, 1.0] is white. Let's estimate an RGB color for a spectrum by integrating the flux of wavelengths corresponding to red, green, and blue. Those integrals will represent the brightness in each of the three RGB colors; when mixed together they would reproduce the visual appearance of the color an object would have. The fluxes integrated over the three RGB ranges would be: Rf(w)dw 565nm 570m 485m 90nm Write a Python function called estimateRGB, that accepts wavelength and flux arrays 8f a spectrum and returns an RGB color. The start of this function is outlined here: 2 ? (20%) In Python, RGB colors are expressed in three-element arrays. For example, [1.0, 0.0, 0.0] is red, [o.o, 1.0, 0.0] is green, [o.0, o.5, 0.5] is sort of bluish-green, and [1.0, 1.0, 1.0] is white. Let's estimate an RGB color for a spectrum by integrating the flux of wavelengths corresponding to red, green, and blue. Those integrals will represent the brightness in each of the three RGB colors; when mixed together they would reproduce the visual appearance of the color an object would have. The fluxes integrated over the three RGB ranges would be: Rf(w)dw 565nm 570m 485m 90nm Write a Python function called estimateRGB, that accepts wavelength and flux arrays 8f a spectrum and returns an RGB color. The start of this function is outlined here: 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started