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
2 answers

Unity Button.Image.Color won't "refresh"

I am having a problem this morning with my Button.Image.Color here is my really simple code : this.gameObject.GetComponent().color = Color.Red; So this line perfectly works...Now, I am trying to use my own color onto that button with this,…
1
vote
2 answers

imagmagick: selectively fill pixels based on r/g/b condition?

Is there a way to selectively replace colors, based on an arithmetic expression using a pixel's R or G or B value? Example: say I have an RGB image "foobar.png" and I want to change all pixels whose Red channel is <100 into white. In pseudocode:…
RocketNuts
  • 9,958
  • 11
  • 47
  • 88
1
vote
2 answers

what values of an image should I use to produce a haar wavelet?

I currently have a Java program that will get the rgb values for each of the pixels in an image. I also have a method to calculate a Haar wavelet on a 2d matrix of values. However I don't know which values I should give to my method that calculates…
user643290
1
vote
3 answers

Check if a pixel (RGB or HSV) is contained in a color scale range, how

I need to check if a pixel (RGB) is contained in the color scale ranging from very light pink to dark purple. Using the RGB scheme can I do a check like this: IF image [x, y] [R]> threshold and image [x, y] [G]> threshold image [x, y] [B]> threshold…
originof
  • 795
  • 1
  • 7
  • 24
1
vote
0 answers

Color RGB in BackColor's Form

I'd like to put the RBG color In the property of the form, not like code, but when I try I got this error. "0, 161, 230 no es un valor válido para Int32." (not a valid value) I know I could do something like this: this.BackColor = Color.FromArgb(0,…
Omar
  • 374
  • 1
  • 14
1
vote
1 answer

Colorspace management in Postscript, Ghostscript, GSView

I am attempting to write some Postscript in order to produce artwork in files I can send to a printer to get some signs printed. The printer has various requirements for PDFs, one of which is that they should use CMYK. In all my prior use of…
RedGrittyBrick
  • 3,827
  • 1
  • 30
  • 51
1
vote
1 answer

wxOGL wx.ShapeCanvas images

I am making a small photo editing application using wxPython ogl.ShapeCanvas. I can load images on the canvas. I just want to know how will I adjust the brightness/contrast of an image inside the canvas (using a slider). Thanks
Cobra
  • 63
  • 1
  • 7
1
vote
1 answer

math behind hsv to rgb conversion of colors

i was going through the algorithm for converting hsv to rgb color space & found this on wikipdia. https://en.wikipedia.org/wiki/HSL_and_HSV. I found on eimplementation for this algorithm…
anekix
  • 2,393
  • 2
  • 30
  • 57
1
vote
1 answer

Java bitmap reading

I want to read in a bitmap so that I have an array of the 256-RGB values for each pixel. Currently my code is: File image = serverConfig.get(map.bmp); BufferedImage buffer = ImageIO.read(image); dimX = buffer.getWidth(); dimY =…
Alt01
  • 11
  • 3
1
vote
1 answer

Color subtraction RBG or CIElab

I've read few topics here and according to answers there is no exact solution. Anyway lets assume we have RGB color picker (0-255,0-255,0-255) and two colors, one original unmixed and another mixed one, then how do I exactly subtract to find which…
JayJayAbrams
  • 195
  • 1
  • 16
1
vote
1 answer

LAB, RGB, XYZ Color Conversion Incorrect Vice versa

I'm making a custom color-picker for a project, it's in photoshop style, i got all the other conversions to work as expected but i can't get RGBToLAB and LABToRGB to work correctly. The problem is not just that the colors are not represented…
VampireMonkey
  • 177
  • 2
  • 11
1
vote
0 answers

Image from RGB to HSI to show hue image, Saturation image and Intensity image

Output of hue image I am trying the image from RGB to HSI in java and then I want to show three images: H- hue image, S - Saturation image, I- Intensity image private void jButton_Convert_HSIActionPerformed(java.awt.event.ActionEvent evt) { …
Aye Thu
  • 11
  • 3
1
vote
1 answer

C++ RGB image data overlaid into 2D array (vector of vectors)

Given image data how can I overlay the RGB values onto a vector of vectors. From the code below; I have an array of type uint8_t representing the image, I then reinterpret_cast 3-bytes to the RGB struct and place these into the 2D array over a…
Harry Lime
  • 2,167
  • 8
  • 31
  • 53
1
vote
1 answer

What image encoding does Aruco expect?

My application receives camera images which can have a bayer_rggb8 encoding. Do I need to convert these images to bgr8/rgb8/mono8? Or can Aruco detect markers in bayer-encoded cv::Mats? I'm using Aruco 3.0.10. Below is the function I'm using. …
Laurenz
  • 1,810
  • 12
  • 25
1
vote
2 answers

Wrong HSV conversion from RGB

I have these lists containing blue values in RGB format. low = [ [0, 0, 128], [65, 105, 225], [70, 130, 180], [72, 61, 139], [83, 104, 120] ] What I want to make is this: convert all the values from, for example, first list from…
lucians
  • 2,239
  • 5
  • 36
  • 64