Questions tagged [grayscale]

For questions regarding Grayscale, a Bootstrap theme.

972 questions
-1
votes
1 answer

Representing the result in grayscale

I'm working with this script. The issue is that the result is coloured and I want it in grayscale, but couldn't figure what to change in the script to do that. Do you know what changes I should perform to get the result as grayscale? Thanks.
Simplicity
  • 47,404
  • 98
  • 256
  • 385
-1
votes
1 answer

Qt - Verify if Image loaded is grayscale

I have developed a small GUI in C++/Qt, I would like to know a fast way to test if image loaded is grayscale. In practise, when I load a grayscale image of gif format, I want it to be recognized as a grayscale image with depth()=8, and when I load a…
user1773603
-2
votes
1 answer

How to make jQGreyScale work with Masonry's infinitescrolling?

I'm working on a blog theme and I need help. I have two scripts running, masonry and greyscale. They both work, except when infinitescrolling (part of masonry) adds the new photos to the page, the new photos aren't in greyscale mode. You can see…
-2
votes
2 answers

JavaFX: Convert Image to Greysacale

I need to do that in my program. I have to do it in two ways: 1.) by my own, with the following code:` private Image convertToGrayScale(Image image) { WritableImage result = new WritableImage((int) image.getWidth(), (int) …
dan-i
  • 11
  • 4
-2
votes
1 answer

I want to convert greyscale with shape(None, 224,224) to (224,224,3)

i'm trying to preprocess set of images before passing it to the CNN model, and i had to convert it to greyscale because my model my model required to, the issue is when i save the converted image and load it , it works correctly without any errors…
nouha
  • 1
  • 1
-2
votes
1 answer

How to convert this code to show gray intensity instead of RGB

I would like to know how to convert this code to show gray intensity instead of RGB. import cv2 import numpy as np def mouseRGB(event,x,y,flags,param): if event == cv2.EVENT_LBUTTONDOWN: colorsB = frame[y,x,0] colorsG =…
-2
votes
1 answer

RGB to Grayscale (Average Method) Python

I'm supposed to write a method that converts an RGB image to Grayscale by using the "average method" where I take the average of the 3 colors (not the weighted method or luminosity method). I then must display the original RGB image and grayscale…
coda
  • 125
  • 1
  • 3
  • 11
-2
votes
2 answers

Clean background color in images with text with CV2

I'm trying to process images that have bloc of text in rectangle with colored background. See below original picture - I would need all text and numbers in black and all background in white to make it easier to read text. I'm thinking about having a…
benJ
  • 11
  • 1
-2
votes
1 answer

how to convert many images at once to greyscale in python

I have a file where there are 600 images, I want to convert them at once to greyscale images = [cv2.imread(file) for file in glob.glob("/Users/ad/Desktop/theimages/*.png")] images_grey=[] for i in range [0,600]: images_grey.append…
Starter
  • 9
  • 5
-2
votes
1 answer

HALCON min_mas_grey()

Can someone explain what the percent parameter is for on the min_mas_grey() operator in Halcon? min_max_gray(Regions, Image : : Percent : Min, Max, Range)
hern-04
  • 13
  • 1
-2
votes
2 answers

How to convert pixel data to grayscale image in java?

I 've gray pixels but don't know to create gray scale image
Sakthi
  • 9
  • 1
-2
votes
3 answers

How can I properly convert image to gray scale in opencv

I want to find contours on the image below (white bubbles). The problem is that when I convert the image to gray with the standard way: gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) I do not see them (second image). Is it possible to change the…
Mariia
  • 21
  • 8
-2
votes
1 answer

Coloring a grayscale 16 bit image

i would like to color some pixels of a 16 bits grayscale image(whose maximum value is 850). First, I transformed it to a 3d stack (I) then i passed a color to it but the image don't appear in a good way. I = np.dstack([image, image, image]) …
Rabih Assaf
  • 95
  • 1
  • 1
  • 8
-2
votes
1 answer

How to create a grayscale image using java

can anyone help me and tell me how to create a gray scale image where one pixel of the image is shown as a square with the size 2 x 2? I already searched for help and found this how to create a gray scale image from pixel values using java but i…
goldenone
  • 11
  • 3
-2
votes
1 answer

Photoshop luminosity histograms

I have a grayscale image and I am measuring the luminosity with Photoshop luminosity histograms. However, I would like to know which measurement unit Photoshop uses (e.g. candela per meter square, lux, etc.). I'm new to Photoshop and I did have a…
dede
  • 1,129
  • 5
  • 15
  • 35
1 2 3
64
65