grayscale

is there any difference between grey scale image and binary image?

is there any difference between grey scale image and binary image? ...

Is it possible to draw antialiased text on an 8bpp bitmap in Win32?

I've selected an 8bpp bitmap into a CDC, and used ::TextOut () to draw text. The font quality is ANTIALIASED_QUALITY, but the text comes out in monochrome; no gray pixels & jagged edges. The 8bpp bitmap was extracted from a 24bpp bitmap that already had antialiased text drawn on it, and THAT text is ok. (Both text types are in the sam...

Convert a Bitmap to GrayScale in Android

Hello, I am new to this site, and I come with a question about Android. Is there any way to convert a Bitmap to grayscale? I know how to draw a grayscale bitmap (using canvas operations: http://www.mail-archive.com/[email protected]/msg38890.html) but I really need The actual bitmap in gray colors (or at least somethin...

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 R, B, and G (and optionally A). How do I specify a 16-bit gray scale value rather than an ...

How to Convert Gray scaled image to RGB image?

Hi, I am on MAC OSX. How to convert an gray scaled image to the RGB format. Can i use the CIFilters for converting? Or any other way And also i want to reverse the operation. i.e., convert the RGB format to Gray scaled format. Regards, Dhanaraj. ...

Choosing colors for block diagram's for monochrome printing (grey scale)

At work we use block diagrams, we have to chose colors (4-8 i guess) that would go well with diagram it self and also be nice when printed with monochrome printer. Any ideas? Probably even list of colors that are printed with monochrome printer would be enough and i would just pick a combo myself. Thanks! ...

Python 3: Converting image to grayscale

I'm trying to do an exercise in John Zelle's "Python Programming: An Introduction to Computer Science". I downloaded a special graphics package for his book (graphics.py, which is on the linked website). The question reads as follows: Write a program that converts a color image to grayscale. The user supplies the name of a file containi...

Display image as grayscale using matplotlib

I'm trying to display a grayscale image using matplotlib.pyplot.imshow(). My problem is that the grayscale image is displayed as a colormap. I need the grayscale because I want to draw on top of the image with color. I read in the image and convert to grayscale using PIL's Image.open().convert("L") image = Image.open(file).convert(...

Linux command-line utility to remove colors in a PDF file?

Hi, I'm searching for a linux command-line utility/script capable of removing colors in a PDF. The output of the utility should be the same PDF, but in grayscale. Does anyone know how to do this? Thanks ...

Subtracting RGB values

I'm doing some work with images; I don't want to convert them to grayscale because I want to factor in the color. As you know, with grayscale, different colors can have the same grayscale value. If I were to subtract RGB values of one pixel from another, I assume that they will still have skew? That is to say, I would need to weight t...

How to apply , converting image from colored to grayscale algorithm to android ?

I am trying to use one of these algorithms to convert a RGB image to grayscale : The lightness method averages the most prominent and least prominent colors: (max(R, G, B) + min(R, G, B)) / 2. The average method simply averages the values: (R + G + B) / 3. The formula for luminosity is 0.21 R + 0.71 G + 0.07 B. But i g...

How can I convert an RGB image to grayscale but keep one color?

So I am trying to create an effect similar to Sin City or other movies where they remove all colors except one from an image. I have an RGB image which I want to convert to grayscale but I want to keep one color. This is my picture: I want to keep the red color. The rest should be grayscale. This is what my code outputs so far (yo...