Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Conversion from color to Gray Image
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


SakthiPrabhu
Conversion from color to Gray Image
1 Answer(s)      5 years and 7 months ago
Posted in : Java Beginners



Advertisement
View Answers

May 6, 2009 at 3:01 PM


Hi Friend,

You can convert the color image to grey scale image by using the ColorSpace class of java.awt.color package:

ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
ColorConvertOp op = new ColorConvertOp(cs, null);
BufferedImage grayImage = op.filter(image, null);

For more information, please visit the following link:

http://www.roseindia.net/java/example/java/swing/color-effect-image.shtml

Thanks


Related Tutorials/Questions & Answers:
Conversion from color to Gray Image - Java Beginners
Conversion from color to Gray Image  Hi... Sakthi here.. i am new to java. and i haven't try this so far How to convert the color image to gray scale image in java? could u plz help me out to start the process
Here is a set of 26 different shades of one of the most trendy Gray color rangeing from lighter Gray color to darker Gray color.
of the most trendy Gray color rangeing from lighter Gray color to darker Gray color... .menuText1 { font:10pt bold Arial, Helvetica, sans-serif; color:#FFFFFF... bold Arial, Helvetica, sans-serif; color:#000000; text-align:left; padding
Advertisements
image conversion tools
image conversion tools  how many tools are available in image conversion at particularlly in java
Get the color values as a matrix of color image
Get the color values as a matrix of color image  I am new to java and image processing, i want to get the color values as a matrix from the color image for giving input to the compression algorithm by using java. plz provide
Get image color
Get image color  How to get image color in iPhone SDK application
PHP GD image negative Color
= imagecolorat($image, $x, $y); $rgb = imagecolorsforindex($index); $color... 'Negative color conversion failed.'; } ?> After running the program you... <?php function negate($image) { if(function_exists('imagefilter
Color Effect On Image
a pixel-to-pixel color conversion of the data in the source image... Color Effect On Image     ... Image. We are providing you an example, where an image shows different color effects
Convert Black & White Image to Color Image
Convert Black & White Image to Color Image  ... without any doubt.  We are going to design  color photo from black... selected in the image below.  Color Setting: Now you have a selected
Data Conversion from double to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from double primitive type to another data type like String, boolean and char etc
Data Conversion from long to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from long primitive type to another data type like String, boolean and char etc
Data Conversion from float to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from float primitive type to another data type like String, boolean and char etc
Data Conversion from short to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from short primitive type to another data type like String, boolean and char etc
Data Conversion from byte to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from byte primitive type to another data type like String, boolean and char etc
Data Conversion from int to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from int primitive type to another data type like String, boolean and char etc
Data Conversion from String to another type
Data conversion is the conversion of data from one type to another type. In this section we will learn about data conversion from String primitive type to another data type like int, boolean and char etc
Storing the Color Image pixel values into 2d array
Storing the Color Image pixel values into 2d array  i want to store the color image pixel values into 2d array and agiain the array have to store into a text file using java... plz provide the code
How to change the color of a base64-encoded png image JQuery?
How to change the color of a base64-encoded png image JQuery?  I am going to change the colors of the pixels of a png image(which is in base64 format.... the original image is shown, but the color does not change. Do you know why
which values we have to use for compressing any color image
which values we have to use for compressing any color image  Sir........... in the process of compressing of any color image, which values do use as input for comprseeing algorithm. and how to get the image matrix from color
how to create menubar and the below background color/image in java swing
how to create menubar and the below background color/image in java swing  how to create menubar and the below background color/image in java swing
language conversion from english to arabic in a struts project
language conversion from english to arabic in a struts project  how to convert struts project to arabic language from english language without using... also into english language from arabic language   Please visit
conversion from decimal to hexadecimal and vice versa
conversion from decimal to hexadecimal and vice versa  can i get the code for converting decimal to hexadecimal   Here is a code that converts decimal to hexadecimal. import java.io.*; public class
How to retrieve image from database
How to retrieve image from database  hi........ How to retrieve image from database when it is stored. I have stored image in postgresql and want... but it retrieves as a string and not complete image can u tel me the conversion
Here is a set of 18 different shades of FireBrick color rangeing from lighter FireBrick color to darker FireBrick color.
color rangeing from lighter FireBrick color to darker FireBrick color... .menuText1 { font:10pt bold Arial, Helvetica, sans-serif; color... bold Arial, Helvetica, sans-serif; color:#000000; text-align:left; padding
getting coords from an image.
getting coords from an image.  how to get coordinates dynamically(in run time) from an image?? pls help me
Fetching image from database
Fetching image from database  I have uploaded image path and image name in database so, now how can i display that image using JSP or HTML page(is it possible to display using tag using concatination). image path i have stored
image processing - Java3D
, One way to convert a color image to gray scale, is to change the color...(bufferedImage, null); The easiest way to convert a color image to a gray scale image is to simply draw the color image to a gray scale BufferedImage
How to make an image full text.
How to make an image full text.       Feel relief from color text, it's not tuff to design an image full text because this tutorial has made it easy. It will provide another
Conversion from string data type into different data types.
Conversion from string data type into different data types.  string str="World id Beutifull"; char chr[20]; char* chrctr ; Qustion is -How to store the 'str' value in 'chr' and 'chrctr'? int abc; sprintf(abc ,"%s",str
Data extraction from an image file.
Data extraction from an image file.  I have made an image... data from the the image which also include deleted data.Can i used java to extract these data from the image file? Which are the libraries to be used
Java image query from Rupesh
Java image query from Rupesh  who give web page link to any submenu in menu bar of screen in java so that after click on that submenu, this submenu direct link to web brower or web page
store and retrive image from the database
store and retrive image from the database  please provide me... to store and retreive images from sql database using sql commands -how to store and retreive images from sql database using asp.net/c# thanks in advance
 

 

 

DMCA.com