Questions tagged [rgb]

RGB stands for Red-Green-Blue and specifies a color using three values, which represent the respective amount of red, green, and blue in the color. RGB is the basis for the color model used by most color display devices nowadays.

The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue. RGB is a color notation used in most computing devices nowadays.

RGB colors are represented by a tuple of three values (one per primary color), which are typically either bytes ranging from 0 to 255 or floating-point values ranging from 0.0 to 1.0.

3547 questions
1
vote
1 answer

Converting specific rgb values

I am trying to create a code for converting the RBG values of specific pixels in a picture. Here is the code I have thus far: So I have gotten as far as inputting new RGB values for the new color of the pixel, but I am stumped as how to actually…
1
vote
1 answer

Add color elements to single-frame greyscale image

I have a single-frame greyscale image. I would like to modify the image so that all pixels of a certain value becomes colored, say red. Obviously I need to convert the image into a 3-frame image. I use the package EBImage for convenience, but a…
Gabriel123
  • 426
  • 5
  • 11
1
vote
1 answer

Image converted by skimage.color rgba to rgb is saved as rgba by matplotlib imsave

I need to convert a PNG H*W*4 rgba image to rgb image with shape H*W*3. Which I am able to do but when I save it the image is saved again as H*W*4 Here is the code snippet: for idx, image in enumerate(image_names): #matplotlib as mpi here I use…
abdul qayyum
  • 535
  • 1
  • 17
  • 39
1
vote
3 answers

Convert Hex to RGB in ASP Classic

Can you please advise me on how to convert hex to RGB in ASP Classic/VBScript. I have tried to search all over the Internet and tried out many suggested solutions but none point to what I want to achieve. I have tried the following functions but…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
1
vote
2 answers

C# - How to change Fore Color to custom RGB value

I created a label and need to change the color of it programmatically to a specific RGB color code, if a certain event triggers. I tried it like this: statusStripTestLabel.ForeColor = new Color(128, 64, 64); BONUS: Set it to a RGBA color. But I…
Black
  • 18,150
  • 39
  • 158
  • 271
1
vote
0 answers

Colorspace reversal hiccup

I often deal with rgb->bgr issues due to PIL vs. OpenCV loading images differently. Usually I can just do orig = orig[...,::-1] but I have run into a strange hiccup down the line with that (i'm using OpenCV 3.2) ; a later function for adding some…
jeremy_rutman
  • 3,552
  • 4
  • 28
  • 47
1
vote
2 answers

Java Color encode RGB into single integer?

I'm reading "Java The Complete Reference Ninth Edition" and the writer gives this example of creating a Color object out a single integer that encodes the RGB values he says : The integer is organized with red in bits 16 to 23, green in bits 8 to…
Mekacher Anis
  • 183
  • 1
  • 1
  • 11
1
vote
0 answers

read in excel cell color with openpyxl

I've been experiencing issues using openpyxl to read in a cell color from excel as a hexidecimal. I've been looking around a lot and ultimately I'm thinking that there is no direct way of reading any color into python from excel using openpyxl.…
1
vote
1 answer

Converting DPX to JPEG2k in RGB using FFMPEG

I am attempting to use FFMPEG to convert a 2k DPX sequence that is 10 bit RGB into a Lossless JPEG2k wrapped in MXF, 10 bit with RGB colorspace, wrapped in MXF, Op1a. The following is my code - ffmpeg -y -i \PATH\test\0%05d.dpx -r 24 -c:v…
Alarmguy66
  • 31
  • 2
1
vote
2 answers

Set RGB color from a value in a cell in Excel

I have a macro which draw bunch of charts for me. What I'd like to do is dynamically change color of Data series. I use RGB color palete and function .ForeColor.RGB. When I use it directly .ForeColor.RGB = RGB(88, 88, 88) - everything works fine.…
AK47
  • 1,318
  • 4
  • 17
  • 30
1
vote
1 answer

How to detect if a PDF contains pantone colors?

I need to programmatically find out whether or not a PDF contains a pantone color, but I'm not sure what exactly to look for. My idea of achieving this would be to iterate through all of the PDF's information and to look for certain RGB or CMYK…
J. Doe
  • 11
  • 2
1
vote
1 answer

Compare two images color values parallel with canvas

I am trying to create a JS-Application which allows to compare image values from two images at the same position. My idea is to upload the images and store them as variables in an object. If I move my mouse a canvas element in the browser, the…
Niklas
  • 103
  • 8
1
vote
1 answer

Grey or RGB for Face recognition using Machine Learning?

I am building a Convolutional Neural Network(CNN) Model for Face recognition. As a initial step of training data collection, what would be the preferable image format for training, Grey or RGB? I have gone through few articles saying grey-scale…
Pushpa
  • 892
  • 1
  • 12
  • 30
1
vote
2 answers

Detect Values of RGB from CameraFrame using OpenCV in Android

I want to detect which value is maximum from RGB. how can I detect that? I want to display which colour has highest occurrence with their RGB value. For example, In a image the RED colour has highest occurrence so it will display colour as RED and…
Vishal Thakkar
  • 652
  • 4
  • 18
1
vote
1 answer

RGB scale isn't complete using SeekBars

I created a simply project which uses SeekBars connected to sounds and connected to the colors of a button. I haven't problems with the sound, but with the RGB color scale. I wrote the code but when I installed the apk on my phone, I found an error.…
P.Halley
  • 54
  • 7
1 2 3
99
100