Questions tagged [color-science]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 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 ...
1
vote
2answers
30 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 ...
1
vote
1answer
80 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 ...
2
votes
3answers
54 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 ...
0
votes
2answers
58 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 ...
1
vote
0answers
31 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 ...
2
votes
0answers
68 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 ...
2
votes
3answers
274 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 ...
4
votes
1answer
2k 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 ...
1
vote
1answer
45 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 ...
2
votes
1answer
493 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, ...
3
votes
1answer
218 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 ...
3
votes
1answer
105 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 ...
3
votes
2answers
81 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 ...
6
votes
1answer
153 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 ...
17
votes
5answers
6k 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?
2
votes
0answers
109 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 ...
8
votes
1answer
17k 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 ...
2
votes
1answer
119 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 ...
5
votes
3answers
1k 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 ...
8
votes
2answers
282 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 ...
4
votes
1answer
160 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 ...
5
votes
2answers
371 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 ...
4
votes
1answer
189 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 ...
8
votes
1answer
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 ...
9
votes
1answer
244 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 ...
2
votes
2answers
122 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 ...
0
votes
2answers
770 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 ...
7
votes
1answer
990 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. ...
1
vote
1answer
929 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 ...
9
votes
2answers
886 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 ...
12
votes
2answers
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 ...
7
votes
2answers
254 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 ...