Questions tagged as 'rgb'

2
answers

Why green = blue + yellow, but in RGB yellow = green and red?

Why does color formation in RGB does not follow the same pattern as nature, and does it work anyway? For example: In RGB, yellow = red and green: # FF0000 + # 00FF00 = # FFFF00. But if we take a yellow and a blue colored pencil (or paint,...
asked by 06.06.2014 / 00:01
7
answers

Hexadecimal for RGB

How do you convert a Hexadecimal color ( #FFFFFF ) to RGB ( R ed, G reen, B p> Example     
asked by 13.11.2015 / 18:07
1
answer

Help with RGB color in 16bit Hexadecimal

So, I'm creating an editor for a PS2 football game in C #. And the "color system" of the game is RGB, and so far everything was going very well, because I was encountering with "normal" Hex codes in the game how to choose the color R: 255 G: 255...
asked by 03.04.2017 / 21:20
1
answer

How to format a cell from the RGB code contained in the cell itself

Is it 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 the bottom of the cell ch...
asked by 02.11.2016 / 17:18
1
answer

How can 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'] + $rgb['blue']; $e = 9; $codig...
asked by 11.09.2017 / 22:08
1
answer

Editing images using OpenCV without ready functions

I have the following image shown below and I need to turn it gray and then binarize it. Iusethefollowingcodetoshowitonthescreencv::Matimg=cv::imread("lena.jpg");// Lê a imagem no local onde ela é gerada(matriz) cv::namedWindow("RGB"); cv::im...
asked by 24.08.2015 / 23:41
1
answer

How to identify patterns in color?

I have an image and loop through each pixel of it. I need to identify the color of the pixel: - It's a light or dark color; - And the tonality of it (for example if it is bluish or reddish, greenish, etc ...). I'm using the RGB values as...
asked by 16.10.2015 / 15:29
1
answer

How to convert color from 32 (24) bits to 16 bits?

So, guys, I'm having a problem, I'm creating an editing tool for a PS2 football game. And this game has two color "systems", which are: The "normal" RGB that is; A: 0 to 255, G: 0 to 255, B: 0 to 255. And the, or I think it's rsrs 5bitR...
asked by 04.04.2017 / 05:23
2
answers

How 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 default settings of the Color object, how could I do that? For example: How the code is: this.btnLogout.BackColor = System.Drawing.Color.Red; Example o...
asked by 08.04.2018 / 23:43
1
answer

MATLAB image processing

How to convert a grayscale image 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,[]), title('original filtro'); img2=rgb2gray(t); figure(3),...
asked by 31.05.2016 / 21:23