Answered step by step
Verified Expert Solution
Link Copied!

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. ?

image text in transcribed

image text in transcribed

image text in transcribed

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: 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

4. Label problematic uses of language and their remedies

Answered: 1 week ago