Questions tagged [color]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
349 views

Most efficient mapping of pixel to colors with colormaps

I'm working on a module that handles colormaps and I want to make the mapping of pixel to colors as efficient as possible. It is a performance critical section of our app. Our current solution works ...
glades's user avatar
  • 377
18 votes
6 answers
4k views

Is setRGBColor(32,128,192) a valid use of magic number?

According to When is a number a magic number?, I know magic number should not exists, so I know the following code about creating a Label from some UI framework and set the color RGB needs to be ...
wcminipgasker2023's user avatar
-1 votes
1 answer
286 views

Why is CMYK more suitable than RGB for printing? [closed]

We know that RGB is additive color model and CMYK is subtractive color model. RGB starts with darkness (black) and we gradually add light; an CMY(K) image requires to be illuminated by white light. ...
S. M.'s user avatar
  • 167
-3 votes
2 answers
287 views

What is YIQ color model? [closed]

As we know that RGB monitors requires separates signals for red, green, and blue components of the image but television monitors uses single composite signals. For this composite signal use YIQ color ...
S. M.'s user avatar
  • 167
0 votes
1 answer
57 views

Best data structure for searching best color match? (4D space)

My current color distance formula is a modified version of Euclidian distance (eDist) because with eDist I was noticing weird issues where blue could be used instead of green in some situations when ...
Taylor's user avatar
  • 103
3 votes
1 answer
8k views

How to Define the Bandwidth in Mean Shift Clustering?

I am making a program using Java todo colo quantization using mean shift clustering algorithm and the image is RGB with resolution of 512x512. I want to reduce the image file size by reducing the ...
user10057710's user avatar
1 vote
1 answer
562 views

Can the Mean Shift Algorithm be used in color quantization?

I have a problem with deciding algorithm for color quantization. The image that I want to do color quantization is an RGB image with resolution 512 x 512. I want to reduce the color value in the pixel ...
user10057710's user avatar
-5 votes
2 answers
5k views

Looking For Information about coloring/highlighting output text in python

one of the first modules I’m working on in a python program I’m putting together is a journal. I’m getting comfortable using the print function, but for this project it would be great if i Could ...
Iam Pyre's user avatar
7 votes
1 answer
4k views

Algorithms for color blending modes: hue, saturation, color, luminosity

I'm working on a JavaScript utility where I'm trying mix two colors in different ways. I basically want to cover the blend modes provided by Photoshop / the W3C spec on compositing and blending (which ...
Loilo's user avatar
  • 231
0 votes
1 answer
147 views

How does color search engine work?

From what I understand first you need to find the dominant colors in the images and store them inside a database. There's a script called "color thief" that does that beautifully. But chances are all ...
katie's user avatar
  • 109
0 votes
1 answer
84 views

How to change an specific part of an image colour? [closed]

I'm not so sure whether this questions fits here, but I need help in this case, cause I'm searching for days to apply this. I have a website of rugs and carpets, in this website I would like ...
Arsi's user avatar
  • 121
1 vote
1 answer
6k views

How to implement k-means algorithm on RGB Images?

I want to apply the k-means algorithm on an RGB image data-set. I don't know how to proceed. You can mention basic step by step flow to proceed. I do know basics of Image Processing & OpenCV.
yogesh_desai's user avatar
1 vote
3 answers
338 views

Nicest way to map RGB colors from HTML to LED

I have attached a RGB LED to a color picker on a webpage and have hit the obvious problem that though the LED takes 8-bit values (like HTML) the color rendering is very different so with the more ...
back_ache's user avatar
  • 111
6 votes
1 answer
334 views

Why are background-colors not or rarely used for syntax highlighting? [closed]

I wonder why I rarely see any IDEs or other developers that use background colors for syntaxhighlighting. One of the first things when installing and configuring a new IDE is adjusting the colors so ...
valenterry's user avatar
  • 2,429
14 votes
3 answers
650 views

When is it appropriate to use colour in a command-line application?

Currently I have a command-line application in C called btcwatch. It has a -C option that it can receive as an argument that compares the current price of Bitcoin with a price that was stored ...
Marco Scannadinari's user avatar
1 vote
2 answers
1k views

There are two types of color mixing: Additive and Subtractive. How about XOR-ive color? [closed]

There are two types of color mixing: Additive and Subtractive. http://en.wikipedia.org/wiki/Color_mixing Is is possible that color mixing model be done in XOR?
est's user avatar
  • 121
2 votes
1 answer
2k views

Subtractive color mixing algorithm

Here is my problem: I have a set of 'n' colors including the primary colors and their codes in hexadecimal. Now given another color 'x' I wonder if it's actually possible to come up with a mix ...
Duom's user avatar
  • 121
19 votes
3 answers
3k views

What algorithms are there for picking colors for plot lines on graphs?

I'm interested in what algorithms or rules I can programmatically implement to generate RGB or HSV colors for plotlines to keep them visually distinct from the neighbors. I know that in professional ...
Alex Stone's user avatar
1 vote
1 answer
453 views

How to implement RGBA in 8-bit microcontroller?

I have successfully connected my microcontroller to my TV via through VGA adapter i made that convert digital to analog signals with the help of resistors. Currently i am utilizing 8 pins that I am ...
AceofSpades's user avatar
1 vote
1 answer
2k views

How is a 256 bin HSV histogram quantised?

I am doing some research on the ScalableColor descriptor in MPEG-7 and I came across this passage: The descriptor extractions starts with the computation of the colour historgam with 25 bins in ...
W.K.S's user avatar
  • 236
3 votes
2 answers
2k views

Graduated transition from Green - Yellow - Red

I am having algorithm mental block in designing a way to transition from Green to Red, as smoothly as possible with a, potentially, unknown length of time to transition. For testing purposes, I will ...
GoldBishop's user avatar
7 votes
2 answers
10k views

Nearest color algorithm using Hex Triplet

Wikipedia has a list of colors that I am using for a basis of color names. I want to find the nearest named color given an arbitrary RGB value. For example #5D8AA8 hex triplet is "Air Force Blue". ...
LCJ's user avatar
  • 987
3 votes
1 answer
975 views

Is the Leptonica implementation of 'Modified Median Cut' not using the median at all?

I'm playing around a bit with image processing and decided to read up on how color quantization worked and after a bit of reading I found the Modified Median Cut Quantization algorithm. I've been ...
TheCodeJunkie's user avatar
27 votes
13 answers
3k views

A colourblind member of our team

My team relies a lot on colour within our code to outline features that need to be worked on (we colour lines of code that need attention). We have a close friend who is colourblind and wants to join ...
dbramhall's user avatar
  • 1,791
3 votes
1 answer
979 views

Which UML colors should this example be represented by?

See UML colors here. Here is the example, I have following entity classes: User(name) MailBox(owner: User, label) Mail(from: User, to: User, subject, body, composeTime) MailCopy(type, from: User, ...
Lenik's user avatar
  • 565
6 votes
6 answers
22k views

Light bulb for prolonged computer use

I would like a recommendation on choosing which light-bulb type (e.g. CFL) and color temperature is best for prolonged computer usage. I am also in a field where color consistency is important so if ...
Dat Chu's user avatar
  • 235
28 votes
9 answers
31k views

Color schemes generation - theory and algorithms [closed]

I will be generating charts and diagrams and I am looking for some theory on color schemes and algorithm examples. Example questions: How to generate complementary or analogous colors? How to ...
daniel.sedlacek's user avatar