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

The order of list elements seems to be changing

I am trying to make a little script to switch the rgb values of an image. The code I have works to alter the image, but the list of images is out of order when compared to the list of permutations. I have been unable to figure out why the images at…
Vivixx
  • 13
  • 2
1
vote
3 answers

If we shift the hue by 2*pi/3, what will the R, G, B, histograms change?

If we shift the hue by 2*pi/3, what will the R, G, B, histograms change? How can I test this? I have access to photoshop, so is there a way to test this and find the answer?
MikeJoe
  • 101
  • 1
  • 2
  • 12
1
vote
1 answer

im2double yields different results

I am trying to get RGB matrices for an image. When my image is 1200x1600, the following code I=imread('testme.jpg'); I=im2double(I); yields a 1200x1600x3 matrix and I can get RGB matrices but when the image is a screenshot of a part of this image,…
A Doe
  • 301
  • 2
  • 14
1
vote
1 answer

In Python, how can I convert a RGB array to binary and get the most significant bit?

Im using scipy to read a image and extract the RGB array like this img_b = misc.imread('google.png') img_b_blue = img_b[:, :, 0] img_b_blue = img_b_blue.ravel() Now I need to convert the img_b_blue array to binary and get the most significant…
1
vote
3 answers

How to smoothen the edges from an image obtained from imagesc function

I have an RGB image obtained from saving the imagesc function as shown below. how to refine/smoothen the edges present in the image. It consists of sharper edges, where I need to smoothen them. Im not able to find a solution for performing this…
1
vote
1 answer

C# How to send colorDialog value to a textBox in 5bitRGB?

So I'm creating an editor of a PS2 game. And this game has two "Systems" of colors. The "normal" RGB R: 0 to 255 G: 0 to 255 B: 0 to 255. And the or I think it is 5bitRGB R: 0 to 31 G: 0 to 31 B: 0 to 31. And to make the color change in the game, I…
1
vote
2 answers

How do I create a desaturated version of a Display P3 color?

I have a color UIColor(displayP3Red: 1, green: 0, blue: 0.8, alpha: 1). I want to create a desaturated version of this — with the same hue and brightness, but less saturation, like half the saturation of the original. How do I do this?
Kartick Vaddadi
  • 4,818
  • 6
  • 39
  • 55
1
vote
0 answers

JavaScript algorithm for removing the background of a shape in a canvas

I use this formula to turn my shapes into grayscale. R x 0.2126 + G x 0.7152 + B x 0.0722 Now which algorithm I can use use to remove the background of a shape in a canvas like this. Or this. In this specific case, my goal is to obtain the first…
1
vote
0 answers

Playback raw video frames in C# Win Forms application

How can I playback and save selected raw video frames from raw video data (in .rgb or .raw). Raw uncompressed video data is 320 x 240 in grayscale format with 1 byte/pixel and just 30 fps. But how can I view multiple the frames in 30 FPS? Can I use…
Qwerty
  • 323
  • 1
  • 6
  • 33
1
vote
1 answer

Adjust the grayness of the image with the button (JavaScript)

Currently the program changes the RGB colors to half the image, I do not know how to make buttons that would only change the shades of gray. That is, the value of 0 would be a black-and-white image and the maximum value for the startup image. Thank…
Tomasz
  • 79
  • 1
  • 1
  • 8
1
vote
1 answer

ImageMagick to write image file row by row (or band by band)

Does ImageMagick (C API MagickWand) have a functionality to generate an image file (.jpg, .tif) using RGB raster data? If so, can it also generate an image file band by band, meaning write few rows at a time until it writes the whole image? Or one…
Megool
  • 963
  • 2
  • 8
  • 29
1
vote
1 answer

Implementation of second way to filter out non-black pixels

So I am analyzing camera images and want to retrieve black letters from them. First I defined thresholds for all channels and applied them to the image, e.g. low = [0, 0, 0] up = [0.42, 0.42, 0.42] Then, I retrieved a mask for further use from…
mamamamama
  • 101
  • 1
  • 15
1
vote
1 answer

Three.js RGB Cube with vertices

I try to do a RGB cube in Three.js, but i must use a vertices, no textures. I look at some tutorials, but my code does not work, can I ask for advice? Thanks. https://jsfiddle.net/yjru14q3/ var geom = new THREE.Geometry(); geom.vertices =…
1
vote
0 answers

Reading colors from monitor using Arduino? (for RGB leds)

For a project I'm working on, I'm looking to control the color of digital RGB leds using a python program. After doing some research I found out that Arduino should work for this. However, the code works as follows: The code determines what the…
1
vote
2 answers

get RGB faster in android

The following is my way to get eh RGB color and change the color in temp (Bitmap) when the color in bitmap (another Bitmap) is green. But the performance is quite bad and the time used around 20 secs or more. Is there any ways for me to improve it…
ng2b30
  • 351
  • 6
  • 18
1 2 3
99
100