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

R raster band combination not showing rgb

I want to compose an rgb image with channels from different images. I have the following three source files (.png)(Sentinel 2 satellite images) blue band, red band, green band With the following code, I try to build the new image.…
Niklas
  • 103
  • 8
1
vote
0 answers

CSS hue-rotate/saturate/brightness not accurately showing some colors

I'm using Javascript to filter/shift a red icon image to another color specified in RGB. More specifically, I'm using CSS filters hue-rotate, brightness and saturate to shift colors from pure red to my target color. My result works well for many…
Krulwich
  • 41
  • 9
1
vote
1 answer

Find hue, saturation, brightness and alpha of a UIColor

I have a red object: red_object = UIColor.red.cgColor I would like to get the hue saturation brightness and alpha parameters of this 'red' so I can recode my red &object using more specific parameters. This exercise would be a once off but I…
lsama
  • 199
  • 3
  • 13
1
vote
0 answers

convert plot to RGB array

I want to convert a plot generated with matplotlib to an rgb array. In my case, I want to draw two circles using matplotlib. Currently, there are two problems: You can still see the space taken by the axes The circles aren't circles anymore in the…
beginneR
  • 3,207
  • 5
  • 30
  • 52
1
vote
0 answers

Image enhancement (RGB HSI conversion)

I am trying to implement image enhancement by first converting RGB color space to HSI color space, do histogram equalization on intensity channel, and convert back to RGB color space. However, the output image does not look good and I could not…
Arthur Hsieh
  • 13
  • 1
  • 6
1
vote
3 answers

Java Check if ParseInt is True

I am making a colour changer using RGB input, and I want to make sure the input's are integers whilst parsing. If one of the RGB values is not parsable, then it should clear that field but keep the fields that parsed fine. My code works but I have…
user7253631
1
vote
1 answer

Storing rgb color in a single float value between 0 and 1 without information loss

I have three integer values (rgb) between 0 and 255. I want to store this information in a single float value between 0 and 1 without information loss. My approach was to bitshift the values into a new integer meaning: int rgb = (r << 16) + (g << 8)…
Tom B.
  • 307
  • 1
  • 11
1
vote
3 answers

How to convert hex to decimal rgb565 using java?

I'm trying make program which convert hex to decimal rgb888 and rgb565 respectively. I’m already did my program to convert hex to rgb888 format, and my code looks like this: String color = "0xFFFF00"; int hexToRgb = 0; color.toLowerCase(); …
user8593931
1
vote
3 answers

Struct Pixel color value

I have defined a structure struct Pixel { uint8_t r, g, b; }; And I have a function void setPixel(int x, int y, const Pixel& color); What color value do I have to input for setPixel() function to get it working? I do not know how should I define…
Ady96
  • 686
  • 4
  • 12
  • 35
1
vote
1 answer

How can I read the RGB 10 bit raw image?

I have read a post with a similar question, but actually doesn't work for me. His image's resolution is 1280x720, file size is 1,843,200 bytes. The camera store 10 bits meta data into 16 bits space for each pixel. Although it is not containing true…
Jason Liu
  • 749
  • 4
  • 16
  • 34
1
vote
0 answers

Is there any way to convert from decibles (light intensity) or candelas to an RGB value?

What I am trying to do: I am trying to simulate a lighting effect shown in the dropbox video link below. It's an HVF-ii machine during a glaucoma test. After the initialization (yellow lights), the test begins, showing white lights around the…
7alman
  • 157
  • 2
  • 3
  • 11
1
vote
1 answer

Using PixelWriter.setargb

I have an issue regarding the creation of an JavaFX WritableImage using an byte array of gray scale image data. I did write a working function for BufferedImage, but what seems to me to be an equivalent method for Image does return me an Image with…
J.Doe
  • 21
  • 3
1
vote
1 answer

iOS - Render a YUV420p image using a BiPlanar pixel format in OpenGL ES 2

I am trying to render a yuv420p encoded video to an OpenGL ES2 texture using Swift 3 on an iPhone 6S with iOS 10.3.3. Texture Setup: var formatType = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange var lumaTexture: CVOpenGLESTexture? …
vipyne
  • 101
  • 5
1
vote
2 answers

Overlapping grayscale and RGB Images

I would like to overlap two images, one grayscale and one RGB image. I would like to impose the RGB image on top of the grayscale image, but ONLY for pixels greater than a certain value. I tried using the double function in MATLAB, but this seems to…
1
vote
0 answers

How to calculate hexadecimal hue values?

I have multiple original color values. I'm using a piece of software that only allows me to add hexadecimal hue values (such as hue:0x00ff00 or hue:0x000100) to these values in order to change their color. EDIT: I cannot directly type the final…
Emilio
  • 1,314
  • 2
  • 15
  • 39