For questions regarding Grayscale, a Bootstrap theme.
Questions tagged [grayscale]
972 questions
-1
votes
1 answer
converting RGB numpy matrix to greyscale martix
I want to convert rgb matrix to greyscale martix without directly opening the image file as the process is very slow in python?

abjb
- 3
- 2
-1
votes
1 answer
To check Euclidean distance from center to map region in two regions
I have an 450x450 gray image. The neighbourhood of each pixel to be processed is defined by the Euclidean distance based on two radii, R1 and R2. Hence:
All pixels in the neighbourhood of R1 and R2 should be summed respectively.
Each pixel mapped…

bstar
- 109
- 7
-1
votes
2 answers
Imagemagick maximum colors and scaling
I am trying to convert 80x80 images to 56x56 images in greyscale in 2bpp.
The 80x80 images are colored and probably have up to 16 colors in them. They also have a transparent background.
I need them greyscaled with 4 colors in them, with white being…

knuxyl
- 129
- 3
- 12
-1
votes
1 answer
how to Convert a Grayscale image where each pixel is 8 bits to an image having 3 bit representation for each pixel only?
In my java project I need a method to convert an 8-bit (0,225) Grayscale image to a 3-bit one (0,7). Any ideas?
I used this method but it gives me
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
Coordinate out of…
-1
votes
1 answer
How convert byte array RGB image into greyscale
I use com.google.zxing core to scan an image.
RGBLuminanceSource constructor gets int array of pixels, convert it into byte array and "convert the entire image to a greyscale array".
I have byte array of pixels and i would like only to convert…

Asaf Pinhassi
- 15,177
- 12
- 106
- 130
-1
votes
2 answers
How to assign new color values to ranges of color
I need my program to go through the pixels in an image, change them to grey scale. Then I need to take a range of gray values and colorize them using if - else and if-else-if statements. Can someone please help me figure this out?
Here's my code so…

Coder02983409
- 37
- 7
-1
votes
3 answers
Removing grayscale in HTML in website header image
I am not HTML knowledgeable AT ALL. My post here is about an issue concerning the HTML in this website I'm creating http://testingthistemplate.weebly.com/
I'm just trying to remove the grayscale code I am using in a Weebly website header. Nobody…
-1
votes
1 answer
Bitmap 8bit Grayscale Image In C
I am trying to create a bitmap grayscale image in C. The Problem is bits per pixel if i set it to 24 => 3 bytes it works but give me color image. I want to set it 8 => 1 byte so it produce grayscale image.
#include
main() {
char…

Ahsan Sajjad
- 34
- 1
- 9
-1
votes
1 answer
Greyscale Effect on Mouse Hover with Transparent PNG Image
I was looking for grayscale effect on mouse hover on image and found this code which indeed worked. But I got another problem that I have PNG images with transparent background which is filled with white background on mouse hover using below code.
I…

Sunil
- 237
- 2
- 4
- 13
-1
votes
1 answer
What is wrong with this code for writing grey-scale bmp from an image RGB bmp pure C - Windows OS
This is my function, I am using the headers BMP according to wikipedia BITMAPINFOHEADER. But, I am getting a file without any image...when putting padding, the process stops.
// Structures for header info
#pragma pack(push,1)
/* Windows 3.x…

Jotasmall
- 41
- 8
-1
votes
1 answer
Cuda issue on converting image to grayscale
I am having an issue with the following code. The following code takes an input image and it should save the grayscale of it. Unfortunately, it seems to perform the expected behavior but it is processing just a part of the image and not the whole.…

Michalis
- 3
- 7
-1
votes
1 answer
How to transform color image to grayscale in java
How can I transform color image to grayscale using java code?
A sample grayscale image for reference:

uoudraiw
- 3
- 2
-1
votes
1 answer
CSS:how do i make a black and white image,colorful?
i saw an effect in a website and i tried to write the code my self and i could.
you can see it in here:
click to see the effect
as you can see a black and white image becomes colorful but i only used a trick to do that.the code sets the black and…

abdollah zakeri
- 18
- 1
-1
votes
2 answers
libjpeg not exact pixel values even with quality of 100
I am writing a program to read some text files and write it to a JPEG file using libjpeg. When I set the quality to 100 (withjpeg_set_quality), there is actually no quality degradation in grayscale. However, when I move to RGB, even with a quality…

makhlaghi
- 3,856
- 6
- 27
- 34
-1
votes
1 answer
Converting RGB images to grayscale
I'm new on programming. I'm a student in a univesity. Is it possible to use visual studio for converting RGB images to grayscale with C#?
There is a specific folder that includes RGB jpeg images and every day it has new jpg files too. I need to make…

user3218867
- 45
- 1
- 2
- 9