Most voted "rgb" questions
RGB is the abbreviation of the additive color system consisting of Red (Red), Green (Green) and Blue (Blue). The main purpose of the RGB system is color reproduction in electronic devices such as TV and computer monitors, datashow, scanners and digital cameras, as well as in traditional photography.
Learn more…14 questions
Sort by count of
-
54
votes2
answers29269
viewsWhy green = blue + yellow, but RGB yellow = green and red?
Why the color formation in the RGB does not follow the same pattern of nature, and yet it works? For example: In RGB, yellow = red and green: #FF0000 + #00FF00 = #FFFF00. But if we take a yellow…
-
15
votes7
answers1690
viewsHexadecimal for RGB
How to convert a Hexadecimal color (#FFFFFF) for RGB (Red, GReen, BLue)? Example
-
5
votes1
answer386
viewsHelp with 16bit Hexadecimal RGB colors
So I’m creating an editor of a PS2 football game in C#. And the game’s "color system" is RGB, and by then it was all going very well, because I was coming across "normal" Hex codes in the game like…
-
4
votes1
answer2786
viewsHow to format a cell from the RGB code contained in the cell itself
It is possible to change the background color of a cell from a code RGB or hexadecimal written as text in the cell itself? Let’s say I write 255,0,0 in célula A1 and when I press enter cell…
-
4
votes1
answer193
viewsHow do I convert RGB values into pixels for an image in PHP?
for ($j = 0; $j < $altura; $j++) { for ($i = 0; $i < $largura; $i++) { $rgb = imagecolorat($img, $i, $j); $rgb = imagecolorsforindex($img, $rgb); $imagem[$c] = $rgb['red'] + $rgb['green'] +…
-
3
votes1
answer3056
viewsImage editing using Opencv with no ready-made functions
I have the following picture shown below and I need to turn it into gray and then binarize it. I use the following code to show it on the screen cv::Mat img = cv::imread("lena.jpg");// Lê a imagem…
-
2
votes1
answer480
viewsHow to identify patterns in colors?
I have an image and loop through each pixel of it. I need to identify if the pixel color: - It is a light or dark color; - And the hue of it (for example if it is bluish or reddish, greenish,…
-
2
votes1
answer59
viewsReturn to category the RGB difference is smaller
I’m having a doubt, that I’m probably trying to "reinvent the wheel", but I couldn’t come up with a result. I have a color matrix (in RGB): { "muito-clara": [248,299,218], "clara": [243,209,180],…
-
1
votes1
answer682
viewsHow to convert 32(24) bit color to 16 bit?
So guys, I’m in big trouble rsrs, I’m creating an editing tool for a PS2 football game. And this game has two "systems" of colors, which are they: The "normal" RGB that is; R: 0 to 255, G: 0 to 255,…
-
0
votes1
answer707
viewsMATLAB image processing
How to convert an image to grayscale (Gray) to a color image (rgb)? img=im2double(imread('37_M.jpg')); figure(1), imshow(img,[]), title('original'); t=imgaussfilt3(img,0.2); figure(2), imshow(t,[]),…
-
0
votes2
answers2572
viewsHow to change button color using RGB or Hexadecimal code?
I have a Winforms application and would like to use colors that are not in the presets of the object Color, how could I do that ? By way of example: How the code is found: this.btnLogout.BackColor =…
-
0
votes1
answer37
viewsopencv in python
I need to make an algorithm that reads the color code and opens a window with the color. I know I need to use the library cv, but I don’t know how you do it and I can’t find anything like it on the…
-
0
votes1
answer37
viewsPass RGB pixels from a file to C Structure
Good afternoon, I’m doing a project on the Data Structure chair and I have this file, with multiple RGB pixels. I would like to read the file and pass the values to a structure, where each pixel had…
-
0
votes1
answer51
viewsopenCV - Differentiate RGB and P&B photos into a directory
Hello, Good morning. It has a directory (linux) with thousands of photos, and I need to separate color from black and white. I created the algorithm to scan all the files and move them to a specific…