For questions regarding Grayscale, a Bootstrap theme.
Questions tagged [grayscale]
972 questions
7
votes
2 answers
VGG16 trained on grayscale imagenet
I have found the VGG16 network pre-trained on the (color) imagenet database (as .npy). Is there a VGG16 network pre-trained on a gray-scale version of the imagenet database available?
(The usual 'tricks' for using the 3-channel filters of the…

MathMits
- 91
- 1
- 4
7
votes
3 answers
Changing RGB color image to Grayscale image using Objective C
I was developing a application that changes color image to gray image. However, some how the picture comes out wrong. I dont know what is wrong with the code. maybe the parameter that i put in is wrong please help.
UIImage *c = [UIImage…

Younduk Nam
- 71
- 1
- 3
7
votes
5 answers
CSS grayscale with animation
i have some css for changing my image into grayscale (with some svg for firefox)
img.grayscale{
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter:…

user1660309
- 81
- 1
- 1
- 4
6
votes
2 answers
Getting and setting the RGB / RGBA value of a pixel in a CCSprite (cocos2d-x)
Why do I need this?
Basically I need to turn a color image into gray-scale. Including a gray-scale version of the image could be a solution, but space is tight in my situation - I don't want my APK to be too big. Besides, I would like to work on the…

Siu Ching Pong -Asuka Kenji-
- 7,943
- 8
- 53
- 74
6
votes
2 answers
Convert short[] into a grayscale image
I am writing a Buddhabrot fractal generator using aparapi. I got the OpenCL part of it to work, resulting in a single-dimension array that represents each pixel. I have the dimensions of the final image as final ints, and have written code to get…

Shawn Walton
- 1,714
- 2
- 14
- 23
6
votes
3 answers
Convert raw grayscale binary to JPEG
I have C language source code, for an embedded system, containing arrays of data for an 8-bit per pixel grayscale image. I'm in charge of documenting the software and I'd like to convert this source code to a JPEG (image) file.
Here is a code…

Thomas Matthews
- 56,849
- 17
- 98
- 154
6
votes
1 answer
Does webp support grayscale colorspace?
I see official cwebp document have no option to specify target colorspace
https://developers.google.com/speed/webp/docs/cwebp
because I wish using grayscale color space could save some space for text image.

Charles Chou
- 179
- 1
- 15
6
votes
6 answers
converting images to indexed 2-bit grayscale BMP
First of all, my question is different to How do I convert image to 2-bit per pixel? and unfortunately its solution does not work in my case...
I need to convert images to 2-bit per pixel grayscale BMP format. The sample image has the following…

yy502
- 313
- 1
- 3
- 11
6
votes
3 answers
Texture grayscale in libgdx
Is there a way to transform a libgdx's Texture to a grayscale image? So far I had duplicate the images that I want to grayscale and I did it manually, but I think it is not the best solution because my game is using more and more images and it uses…

Sergio Peñafiel
- 446
- 5
- 13
6
votes
3 answers
Determine whether an image is Grayscale in Matlab
I'm writing a function which can take an image and perform specific smoothing tasks on.
At the very beginning of my function I convert the image to a grayscale image using pic = rgb2gray(pic);
I'm hoping to allow the function to take any image…

Reanimation
- 3,151
- 10
- 50
- 88
6
votes
1 answer
Create a true grayscale PNG in PHP
I need to create a grayscale image in PHP. I am not talking about an indexed image with grayscale values in its palette, but about a TRUE grayscale image. The difference is in the 26th byte of the PNG (color type):
0 - greyscale <-- THIS IS WHAT I…

Jpsy
- 20,077
- 7
- 118
- 115
5
votes
1 answer
Hue/ saturation values of orange color
I am new to image processing and matlab. I am trying to extract the orange color from my image. Just similar to the example in this page How can I convert an RGB image to grayscale but keep one color? instead of the red color I want to get the…

Riko Rm
- 53
- 1
- 1
- 4
5
votes
3 answers
how to implement grayscale rendering in OpenGL?
When rendering a scene of textured polygons, I'd like to be able to switch between rendering in the original colors and a "grayscale" mode. I've been trying to achieve this using blending and color matrix operations; none of it worked (with blending…

zyndor
- 1,418
- 3
- 20
- 36
5
votes
3 answers
How to get the pixel value in a grayscale image
I have a BufferedImage which is of TYPE_BYTE_GRAY and I need to get the pixel value at x,y. I know I can't use getRGB as it returns the wrong color model so how do I go about it? Many thanks!

cherryduck
- 251
- 1
- 6
- 14
5
votes
4 answers
CSS: how to turn an colour image to a grey or black/white image
Possible Duplicate:
Convert an image to grayscale in HTML/CSS
How can I turn an colour image to a grey or black/white image like this website with CSS?
Can it be done solely on CSS or do I need JavaScript (jQuery)?
Thanks.
Edit:
Thanks for the…

Run
- 54,938
- 169
- 450
- 748