Questions tagged [color]
Questions about the visual perceptual property deriving from the spectrum of light, usually expressed numerically according to a color model.
131
questions
2
votes
1
answer
146
views
Reddish tint with spectral renderer
I'm trying to implement a spectral path tracer and comparing results from my program with renders of the same scene done with pbrt and ...
0
votes
0
answers
448
views
Sub pixel rendered white text on black background changes color when resized to a very small size
download: https://upload.wikimedia.org/wikipedia/commons/5/57/Subpixel-rendering-RGB.png
The above picture is an example for sub pixel rendering. I tried resizing the image to very small size in ...
1
vote
2
answers
322
views
How are colors really mixed?
I'm kind of stuck on this one. When following a conventional, high-level shading tutorial, you'll come across these images that are like ambient + diffuse + specular = result, but I can tell that it's ...
1
vote
1
answer
658
views
Some questions about working in 0-255 integers instead of single precision floating point colors
I have many objects that store their color values. At the moment I'm storing them as vec4 values, that is four 4-byte values for RGBA, mainly because this is how the shader reads them. I was thinking ...
3
votes
1
answer
210
views
Tiled Image Palettization Algorithm?
In most cases today, image palettization consists of reducing the overall number of colors in an image to some fixed number globally. This is typically solved as a straightforward but computationally ...
1
vote
0
answers
601
views
Path tracing - Better images without Gamma correction?
So I read about tonemapping and Gamma Correction recently and have implemented it in my path tracer.
For the time being I'm using Reinhard tonemapping operator as described in his paper
$L_d = L_w *...
4
votes
1
answer
144
views
Getting contrast color to a given color in RGB or ARGB or HEX
I am looking for a stable way to find a contrast/inverted/opposite color to a given one.
Application of this is to find best possible color for foreground to give background.
2
votes
1
answer
391
views
Computing sRGB color from SPDs
I'm trying to write my own spectral path tracer and a bit stuck with converting computed SPDs to LDR RGB values. What I'm doing right now is convert sampled SPDs (in ...
4
votes
1
answer
363
views
How to shift color values of a single RGB channel
I’m a weaver and textile maker with no prior coding or programming experience. In researching and reading through posts on this and other message boards, I was able to find a lot of useful information,...
1
vote
3
answers
3k
views
How can I draw this style of grid?
I'm trying to write code (in any language) to render this 3D grid, matching the look and colors as closely as possible:
0
votes
1
answer
74
views
Converting color to equivalent with opacity
Assume a color X with alpha 1 and RGB 255,230,210.
How can i find another color with alpha A ( or an array of colors ) that blended with a background of color Y ( e.g 255,255,255 ) would produce the ...
14
votes
4
answers
6k
views
For shader math, why should linear RGB keep the gamut of sRGB?
sRGB is often contrasted with "linear RGB."
Images are stored on disk and passed to displays in sRGB, which is approximately perceptually uniform in intensity.
Shader math is done in linear RGB, ...
3
votes
1
answer
67
views
Repeating alpha over/under operation multiple times
I have two RGBA colors in linear [0..1] space, src and dst and I want to alpha blender src ...
2
votes
1
answer
160
views
Will sRGB color space get replaced by wider gamut [closed]
in future, will sRGB which is a common standard monitor color space nowadays be taken the place by the wider gamut color spaces?
since wide gamut monitor keep publishing in the market and may be ...
6
votes
1
answer
5k
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
1
answer
56
views
How to blend a segment of an image with another image
I want to put a segment of an image to another image. But to make it realistic I applied poisson blending. But the output is not good at all.
Output without poisson blending. The kid was cropped ...
3
votes
2
answers
2k
views
Calculate the average color of an image
I want to calculate the average color+opacity of an image. First I thought about just averaging all ARGB values component-wise, but this got really dark on images with a lot of transparency. I also ...
1
vote
1
answer
406
views
Understanding material .mtl files
I am reading this piece of documentation to understand mtl files
So far I am stuck trying to understand the difference between ambient, diffuse and specular reflectivity (Ka, Kd, Ks).
If I am ...
3
votes
2
answers
257
views
Why does _ray_ tracing work?
Perspective projection (or at least non-orthogonal) is by far the most common in photo-realistic graphics. When we use perspective projection, the (equally thick) slices of volume visualized by each ...
1
vote
1
answer
56
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
1
answer
661
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, ...
0
votes
1
answer
131
views
Quick 2-color quantization for small images
So I have a small (8x8 pixel) image in 24-bit color. I want to be able to (quickly) generate a color-quantized version of the image that only has two colors.
One naive approach is to cluster a luma ...
3
votes
1
answer
544
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 ...
0
votes
1
answer
55
views
What remedies are there for percieved color artifacts due to pixel geometry?
I have a white line on black background. Because of the pixel geometry the line does not look really white; one edge looks red-isch, the other blue-isch. Other fore- and background yield other ...
1
vote
2
answers
301
views
Can I get numeric data from a color map?
In my class I often need to work with color map images. I would show the image and try to make inferences/observations about different subjects. Often times I need to actually quantify some aspects, ...
4
votes
1
answer
173
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 ...
4
votes
1
answer
279
views
How do you deal with clipping when rendering to a limited colorspace?
In my naïve raytracer experiment I work internally with RGB values, and after all the tracing has been done, I end up with raw RGB triplets that I need to write down to some image format with a ...
3
votes
2
answers
3k
views
RGB nonlinear, what does it mean?
What does it mean and why is it not well suited for describing colors by human?
Is CMYK nonlinear also?
6
votes
1
answer
231
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 ...
4
votes
0
answers
159
views
Color of the Sky [closed]
What is the color of the sky depending on the time?
I'm looking for a set of colors (HTML-Code), the sky has during sunrise, morning, forenoon, noon, afternoon, evening and sunset. A formula to ...
1
vote
1
answer
79
views
Extracting the green-screen region borders
Given a png image with an unknown number of green colored (rgba=0, 65535, 0, 65535) regions
1- How can I find and put the border points of only the separate green boxes to an array like:
...
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?
2
votes
1
answer
282
views
How can I implement GIMP's "Colorize" function?
I have an RGB pixel that I'd like to colorize in my program (I'm using GLSL) very similar to how the GIMP "Colors > Colorize" function works.
In my program, I can easily convert between RGB and HSV. ...
4
votes
0
answers
125
views
How to properly color particles in N body sim?
In my n-body simulation I would like to color the particles in way which corresponds to the magnitude of the net force acting on them.
This is so that I can confirm visually that the particles ...
1
vote
0
answers
108
views
What causes this color shift?
Below are the original image and a JPEG encoded/decoded image. To my untrained eyes, cyan becomes yellow, yellow becomes magenta, and magenta becomes cyan. Obviously there's a problem with the ...
6
votes
2
answers
1k
views
Color transform algorithm (that also works on saturation and value/lightness)?
To change particular colors in an image, generally you multiply the RGB by a transformation matrix. Image manipulation programs such as gimp & photoshop have a selective color change function that ...
3
votes
2
answers
442
views
Suggested image preprocessing before applying threshold
I am trying to vectorize the contours (skewed rectangle) of the TV in the following original image.
My first step is applying threshold. Tried selection of threshold values based on what skimage has ...
0
votes
1
answer
670
views
correct rgb or cmyk code from some proportion of cyan, magenta and yellow
I am trying to find a way to go from some proportion of cyan, magenta and yellow where:
cyan: 33 % + magenta : 33% + yellow : 33% = 100% black
so each is represented as a percentage of the sum ...
2
votes
1
answer
160
views
What is the name of the RGB thing I want to be able to do, and what free program(s) can do it automatically?
I'm gonna start this off with an... "indexed image"? If that's the proper term for it?
If this 384x144 image were actually only the top-left 192x48 pixels (I'll refer to that portion as "0,0"), I ...
3
votes
2
answers
651
views
What are the advantages of having two chroma channels and a luma channel vs. three chroma channels?
RGB has the advantage over schemes like YPBPR in that it's more intuitive to understand, so why use the latter? The only advantage I can think of right now is that it allows you to encode greyscale ...
1
vote
0
answers
110
views
Why does this edge detect show different results for the same color combinations?
I'm researching highlighting accessible color contrast via filter operations. I have a test screenshot of SRGB hex values compared with WCAG's official contrast algorithm:
I converted it to its ...
9
votes
1
answer
4k
views
Understanding Jump Flooding Algorithm (JFA) for Voronoi Diagrams
I'm having trouble understanding the JFA. As far as I understood the algorithm, it walks log(n) times through every pixel (no matter if it is a seed or not) and looks at that pixel's neighbors in $(x+...
3
votes
2
answers
302
views
Why would a 4d texture be used for color conversion?
You can perform color conversion as a post process step to convert a rendered frame's colors to a different set of colors.
You might make darker colors more blue for instance, to give it a night time ...
9
votes
2
answers
411
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
1
answer
246
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 ...
8
votes
2
answers
3k
views
What is a good color similarity metric?
I have some colors in RGB in [0,1] and want to find a way to rate their similarity, as perceived by a human.
I have two ideas in mind, but I am sure there are other options as well, but am unsure ...
2
votes
2
answers
399
views
Can I have lower color bit depth in sample buffer than target framebuffer?
I´m looking into uses of high amount of samples in multisampling. If I have an RGBA8 framebuffer and render to it using multisample with many samples, say 32, dithering on per-sample level should ...
5
votes
2
answers
633
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 ...
3
votes
1
answer
296
views
What graphics techniques can be used to simulate a color nebula effect?
I've been playing around with more advanced graphics these days (beyond the basic 2D UI and image effects that the iOS platform offers), and I'm wanting to implement a visual effect similar to how iOS'...
3
votes
1
answer
236
views
Preserving luminance
I am writing an application with multiple colored surfaces. I would like to preserve luminance, i.e. a blue surface would appear as bright as a green one, are there tools to help for this?