Questions tagged [grayscale]

For questions regarding Grayscale, a Bootstrap theme.

972 questions
-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…
Prasad Madushan
  • 131
  • 1
  • 6
-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
  • 47,404
  • 98
  • 256
  • 385
-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
  • 6
-3
votes
2 answers

My image isn't converting to grayscale while using OpenCV

I've tried converting my image to grayscale using multiple methods, but my image won't convert I tried: image = cv2.imread(r"path\shoe.png") gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) cv2.imshow('Gray image',gray) But the image stays the same
-3
votes
2 answers

Grayscale to RGB conversion

How can I solve this error ? import matplotlib, cv2 import numpy as np import matplotlib.pyplot as plt img = cv2.imread('C:/Users/xxx/Desktop/image.jpg') img = np.array(img, dtype=np.uint8) plt.imshow(cv2.cvtColor(img,…
Mayar
  • 11
  • 1
  • 2
-3
votes
3 answers

convert a greyscale image into rgb image using c#

Hi there I have a greyscale jpeg image and I need to open it and convert it in rgb. I need the fastest way is possible but I've not been able to find one. For me it's fine to populate the rgb values with the greyscale value. Just doing using…
davide93
  • 1
  • 5
-4
votes
1 answer

How to draw a black border around the image

How can I crop the image such that it will only contain the leaf and not have the noise part?
-5
votes
1 answer

How to convert RGB to grayscale by using color dimensions

I would like to transform my RGB image to grayscale image by not using converting function but with the red green blue values . For example, if my image is totally blue, it will be converted to white if I get blue components of it and it will be…
HilmiK
  • 53
  • 10
-5
votes
1 answer

C# Convert Grayscale data to colored image

I want to convert grayscale data to colored image using C#. I try 2D and convert 1D data and show bitmap, but I want to show Colored image.
flanker_42
  • 19
  • 3
1 2 3
64
65