Questions tagged [grayscale]

For questions regarding Grayscale, a Bootstrap theme.

890 questions
-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

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
  • 4
-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
  • 6
-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
  • 6
-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,007
  • 3
  • 13
  • 28
-2
votes
2 answers

Matlab grayscale after using step function

I'm using step function to read frames from a video (using vision.VideoFileReader), the image result is a Bayer one and three dimensions, the problem is that I can't move from Bayer to grayscale using 'demosaic' function. The image that I obtained…
Ayoub
  • 11
  • 1
-2
votes
1 answer

Convert colour image to grayscale image using Android OpenCV

I need to convert a colour image to grayscale using Android OpenCV. And I need to show the grayscale image in ImageView. My sample image in drawable folder give me simple code. I have already installed and configured SDK, NDK, OpenCV, and…
-2
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
  • 13
  • 1
  • 5
-2
votes
1 answer

Images to turn from grayscale to color one by one

I have 5 images placed in a div, the images are color but I want them to all be grayscaled firstly and then the first 3 to slowly fade into color one by one after the page loads. I've tried to achieve this using various jquery scripts like jQuery…
-2
votes
1 answer

Converting a grayscale image to black and white

I have a grayscale image that only has the values 60 and 117. How can I convert the image to only black and white without graylevels? I tried the matlab function gray2ind, but didn't get the expected output. Thanks.
Simplicity
  • 41,347
  • 81
  • 231
  • 358
-2
votes
3 answers

grayscale a ROI of a BGR image

I am stuck with a little problem with OpenCV. I am able to draw a rectangle on my webcam's capture in order to draw a ROI. I would like to know if it is possible to grayscale this part of the frame. I tried many different ways to do it, but I still…
kevin labille
  • 53
  • 1
  • 1
  • 5
-3
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
  • 1
  • 1
1 2 3
59
60