Questions tagged [color-science]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 views

Is spectral response curve and spectral power distribution the same thing?

I'm reading section 5.2 of pbrt 3rd edition and came across the part where they explain the concept of RGB colors. When we display an RGB color on a display, the spectrum that is actually displayed ...
user avatar
  • 113
2 votes
0 answers
62 views

Why do materials have both an ambient color and a diffuse color?

One of the first things I learned about computer graphics lighting (and light in general) is that when a ray of light hits a surface, the surface absorbs certain colors and the light retains the rest. ...
user avatar
2 votes
2 answers
258 views

What wavelengths(dominant) the primary RGB colors are supposed to be in sRGB color space in nanometers?

The Context I am exploring the idea of making a DIY spectrometer(and colorimeter) for testing various material samples for interior visualization. It's sort of a hobby project for my curiosity and ...
user avatar
1 vote
1 answer
121 views

How to determine RGB values given a display spectral response curve?

I am reading Physically Based Rendering section 2.2.2 on RGB color. I am trying to understand how, given a display spectral response curves for rgb intensities, we can choose the intensities so that ...
user avatar
2 votes
1 answer
88 views

Determining input color space primaries from spectrum data

If I have an output device, for which I have a known spectrum data for each of it's primaries, I should be able to calculate the CIEXYZ of its primaries using using the integral equations together ...
user avatar
1 vote
2 answers
38 views

splitting hue & saturating and leaving value behind

In an HSV model, the Hue is the color model. So when we split the image or remove H, should we get an image without rgb colors? Similarly, saturation is the gray shade. I read that images become more ...
user avatar
  • 113
1 vote
1 answer
115 views

Raytracer help - Background color writing over some colors?

I'm implementing Peter Shirley's "Raytracer in a Weekend: The next week" and I'm having some trouble with rendering a scene with a light. I'm not sure if the issue is the background color or ...
user avatar
2 votes
3 answers
1k views

Why is there a difference between the CIE XYZ colour gamut vs CIE RGB?

Yet another question about colour space... In my research on CIE XYZ system, I found that it is based on the CIE RGB colour matching experiments, and that because the RGB system needed occasional ...
user avatar
  • 165
0 votes
2 answers
70 views

What is the relation between colour spaces and what is actually displayed on our screens?

I am not entirely sure that this is the right stack exchange, but I couldn't find any other suitable one - please redirect me if necessary. There exists mathematically defined colour spaces which help ...
user avatar
  • 165
1 vote
0 answers
40 views

How to get "Equal" (saturation, brightness) Red and Green Colours in a Web-based Application?

I am looking for a red and a green hue that are equally discernable against a gray background on any PC monitor, using HTML/CSS-based application. There are many possible solutions to balance these ...
user avatar
2 votes
0 answers
125 views

Calculating Luminance From Y'CbCr

I have a video feed generating a stream of of Y'CbCr frames (specifically 8-bit component Y'CbCr 4:2:0, luma range of 16-235, chroma range of 16-240) from which I'd like to calculate relative ...
user avatar
  • 121
2 votes
3 answers
434 views

Strange stripes on the gradient

On the picture below you can see mathematically perfect smooth transition from black to white. But I noticed that on all gradient picture I see strange strips and the color transition doesn't feel ...
user avatar
  • 43
6 votes
1 answer
3k views

How do I calculate average hue, since the numbers loop around?

If I calculate the average (mean) hue of a set of colours naively, I will get silly answers sometimes. For example, in HSB/HSL, the average of hue=10 (slightly orange red) and hue=350 (slightly blue ...
user avatar
  • 279
1 vote
1 answer
49 views

Determine paint color from a photo

I ran into this problem while trying to find the paint color of the doors in my house: is it in principe possible to automatically determine the paint color from a photo? Different types of colour ...
user avatar
  • 113
2 votes
1 answer
623 views

YUV to HSV to RGB issues

As per this resource, there is an easy way to convert from YCbCr to HSV. Saturation is sqrt(Cb^2 + Cr^2). Now here is my issue. If I take pure red (1,0,0), green(0,1,0), and blue(0,0,1) colors, ...
user avatar
3 votes
1 answer
401 views

Can someone explain this formula for parse RGB to HSL?

Im trying to complain the algorithm to calculate the HSL value form a RGB color. I understand the algorithm for the Hue, but im lost with the Lightness and saturation. Someone can explain why? There ...
user avatar
4 votes
1 answer
146 views

Generating and Combining Spectral Colors

I have two somewhat related questions to ask: What is the most accurate way to get the colors of a spectrum, without having to go deep into physics and simulating the universe? ;) Right now, I'm ...
user avatar
3 votes
2 answers
89 views

Accurately printed CIE diagram

This is more just for curiosity rather than actually wanting to get one, but is there a place where I could buy a printed version of the CIE xy colour space diagram which accurately recreates all of ...
user avatar
  • 266
6 votes
1 answer
205 views

What determines the color gamut of a display?

I’m not sure if I’m posting this question in the right area but, I’m wondering what determines the color gamut of a display? Is or hardware down to the RGB filter built into a display like a monitor ...
user avatar
  • 163
17 votes
5 answers
7k views

Why do red, green, and blue make up all the colors?

Why do red, green, and blue combinations can make up all the visible colors?
user avatar
4 votes
1 answer
229 views

Does a constant reflection over the light spectrum lead to grayscale value?

I'm currently fighting with the spectrum->RGB color conversions, my algorithm seems to make an error somewhere, e.g. I get values >1 for some spectral responses. Now there is a way to calculate an ...
user avatar
  • 1,437
11 votes
1 answer
25k views

"Light intensity" of an RGB value

EDIT: I'm not fully clear on terminology here, what I previously understood to be called "brightness" seems poorly defined. I think I am asking about radiant intensity, that is, the measurable ...
user avatar
  • 113
2 votes
1 answer
128 views

Why are RGB tertiary colors so similar to RGB primary colors?

I was suprised to learn that RGB tertiary colors are much more similar to RGB primary then secondary colors. I was expecting they will be halfway between them and look more like this: Rather then ...
user avatar
5 votes
3 answers
2k views

Display that supports full CIE xyY color space

Right now, all current monitors use three (or four) primary colors to create their color, which could never allow them to produce all colors that can be seen by the human eye; in fact, their colors ...
user avatar
  • 51
8 votes
2 answers
328 views

What is the most physically accurate representation of color possible in computer graphics?

I am looking for theoretical and implemented models to represent color in software that strives for physical accuracy. I know that "color only exists in the mind" and that it sort of does not make ...
user avatar
4 votes
1 answer
211 views

What is the purpose of this cube in color quantization?

So, I go to install GMIC for Gimp via the package manager and landed myself upon the demo program. I have discovered things such as Hough transform and color quantization. So, I get the number of ...
user avatar
5 votes
2 answers
502 views

Calculate an equally bright grey to a linear RGB colour

I'm trying to get a grey linear-RGB-triple that is equally bright as another (colorful) RGB-triple. I have to admit, that there is great confusion for me with all the color stuff, even though I read a ...
user avatar
4 votes
1 answer
206 views

Pixel density / color channel depth ratio for dithered gradients

Dithering increases percieved color depth by adding a "noise" to an image on transform from high color depth (e.g. 32-bit floating point) to lower color depth (e.g. 8-bit integer). A prerequisite is ...
user avatar
  • 359
8 votes
1 answer
1k views

How much precision (half, float, double, etc) is enough for a Color class?

While doing some reading on how real-time applications handle color under OpneGL, I noticed that some examples implemented Color as a collection of 4 floats, while ...
user avatar
9 votes
1 answer
278 views

Applying correct light physics to gaussian blur formulas for glow

I am trying to make a glow shader using separable gaussian blurring. I have recently been inspired by the short youtube video "computer color is broken" and I have messed with it with color ...
user avatar
  • 1,365
2 votes
2 answers
140 views

Matching an HSV color with a blended color

This is hard to explain but I am going to try, then I will explain it as pure mathematics. Look at this image. So basically this is a moving line, each frame a new segment is added and the previous ...
user avatar
  • 1,365
0 votes
2 answers
1k views

Change particular color in an image

Suppose i have a image and I want to convert the portion of image that is red to blue(or any other color). One way to do this is extract red part of image using HSV or other color values and convert ...
user avatar
  • 143
7 votes
1 answer
1k views

How are we supposed to fix brightness with square roots?

I recently watched this video that talked from a physics perspective how most of the ways we deal with color on the computer is incorrect because brightness is on a logarithmic not linear scale. ...
user avatar
  • 1,365
2 votes
1 answer
1k views

Spectral path tracing - image color/brightness incorrect

I implemented a spectral path tracing using physically base BRDF models such as Oren-Nayar,Specular Reflection and Transmission, Lambertian. All calculation in the path tracer uses standard illuminant ...
user avatar
9 votes
2 answers
1k views

How is spectral rendering handled?

Is all spectral rendering handled as simulation? Are there technique more tailored to 'consumer' rendering, such as for real-time or even just 'realistic looking without solving full physical ...
user avatar
12 votes
2 answers
2k views

What would be the correct way to calculate saturation in this case?

I'm trying to make a HSV representation of the xyY color space. To calculate hue from an $(x, y)$ color, I use the angle between that color and red (wavelength 745) on the xy chromacity diagram, with ...
user avatar
  • 123
7 votes
2 answers
304 views

Why is the CMYK space four sided in chromaticity charts

In chromaticity charts the CMYK color space is usually four-sided. I've lately had to read quite a few charts and it suddenly dawned to me that I don't really understand why. It has just not been ...
user avatar
  • 8,159