Questions tagged [grayscale]

For questions regarding Grayscale, a Bootstrap theme.

890 questions
10
votes
3 answers

Counting colonies on a Petri dish

I have a bunch of Petri dishes full of dots which I'd like to count in Matlab. Can this be done reliably and in batches? E.g. This plate has 352 colonies I've tried ImageJ but need to do quite a bit of cropping out of the border and get variable…
HCAI
  • 1,955
  • 6
  • 25
  • 51
10
votes
1 answer

Converting RGBA image to Grayscale Golang

I'm currently working on a program to convert and RGBA image to grayscale. I asked a question earlier and was directed to the following answer - Change color of a single pixel - Go lang image Here is my original question - Program to convert RGBA to…
benjano
  • 309
  • 1
  • 3
  • 15
10
votes
2 answers

How to convert a grayscale matrix to an RGB matrix in MATLAB?

rgbImage = grayImage / max(max(grayImage)); or rgbImage = grayImage / 255; Which of the above is right,and reason?
user198729
  • 55,886
  • 102
  • 239
  • 342
10
votes
6 answers

Detecting grayscale images with .Net

I am scanning documents to JPG images. The scanner must scan all pages as color or all pages as black and white. Since many of my pages are color, I must scan all pages as color. After the scanning is complete, I would like to examine the images…
Dave
  • 1,691
  • 2
  • 22
  • 45
10
votes
7 answers

How can I convert a color image to grayscale in MATLAB?

I am trying to implement an algorithm in computer vision and I want to try it on a set of pictures. The pictures are all in color, but I don't want to deal with that. I want to convert them to grayscale which is enough for testing the…
Nathan Fellman
  • 108,984
  • 95
  • 246
  • 308
10
votes
2 answers

How to turn ImageIcon to gray on Swing

I would like to know if there is some way in Swing to turn an ImageIcon to gray scale in a way like: component.setIcon(greyed(imageIcon));
Alfergon
  • 4,891
  • 5
  • 34
  • 51
10
votes
2 answers

openCV - draw color contours on greyscale image

I'm working on a segmentation algorithme for medical images and during the process it must display the evolving contour on the original image. I'm working with greyscale JPEG. In order to display the contours I use the drawContours function but I…
alvinleetya
  • 454
  • 2
  • 7
  • 19
9
votes
2 answers

16 bit grayscale png

I'm trying to write (using libpng) an 16-bit grayscale image where each point color equals to sum of its coordinates. The following code should produce a 16-bit PNG, but instead produces 8-bit like this. Why? #include #include…
Yagg
  • 95
  • 1
  • 1
  • 3
9
votes
5 answers

how to read a png file in color and output as gray scale using the Go programming language?

How do I read in a color .png file in the Go programming language, and output it as an 8-bit grayscale image?
mlbright
  • 2,051
  • 2
  • 16
  • 11
9
votes
2 answers

MonoTouch convert color UIImage with alpha to grayscale and blur?

I am trying to find a recipe for producing a a blurred grayscale UIImage from a color PNG and alpha. There are recipes out there in ObjC but MonoTouch does not bind the CGRect functions so not sure how to do this. Any ideas? Here is one ObjC…
Sheldon Hage
  • 413
  • 3
  • 8
9
votes
1 answer

Set individual pixels in .NET Format16bppGrayScale image

I'm trying to render a small Bitmap in memory with .NET that needs to be 16 bit Grayscale. The bitmap's format is set to PixelFormat.Format16bppGrayScale. However, Bitmap.SetPixel takes a Color argument. Color in turn takes one byte for each of…
Eric J.
  • 139,555
  • 58
  • 313
  • 529
9
votes
2 answers

How to create Bitmap from grayscaled byte buffer image?

I am trying to get frame image to process while using new Android face detection mobile vision api. So I have created Custom Detector to get Frame and tried to call getBitmap() method but it is null so I accessed grayscale data of frame. Is there a…
rcmalli
  • 257
  • 1
  • 4
  • 8
9
votes
1 answer

Python Pil Change GreyScale Tif To RGB

I have a greyscale TIF File. I need to convert it to RGB/ read from it in a way I can work with it. img = Image.open(GIF_FILENAME) rgbimg = img.convert('RGB') for i in range(5): print rgbimg.getpixel((i, 0)) The convert.("RGB") will…
1478963
  • 968
  • 4
  • 9
  • 23
9
votes
2 answers

Use python wand to grayscale image

I want to use the Python API binding for ImageMagick http://wand-py.org to directly manipulate images. I am however not able to deduce from the documentation how to use a grayscale transformation. Can anybody provide information on this…
user2075719
  • 101
  • 1
  • 5
9
votes
4 answers

Grayscale image with CSS on Safari 5.x

I am trying to show some images on a page where they should be shown in grayscale, except on mouse hover when they smoothly transition into color. I've made it work nicely on IE, Chrome and Firefox, but it doesn't work on Safari 5.x. The problem is…
alexg
  • 2,779
  • 2
  • 21
  • 36
1 2
3
59 60