RGB2Grayscale Converter

- 1 min

A simple java project to convert a RGB image to its Grayscale version using Swing. This Project was made using Eclipse Java Neon IDE. It is a very basic Java Gui application to Convert a RGB image to Grayscale version. The User can choose one or more Files at a time and After successful Completion of code he can get the grayscale version of that image. For Choosing the File Jfilechooser is used in Project.

There are many algorithms available for converting a RGB image to Grayscale image Like "The lightness method", "The Average Method", "The luminosity method" and many more. The algorithm I have used in this project is the Average one. What we have to do is to Simply Get the RGB values of each Pixel in the image and then calculate the average of these pixels.

		[ ( R(value) + G(value) + B(Blue) ) / 3 ]

Since we converted all the pixels of this Image to its Grayscale shade. Now will have to just make a copy of the Grayscale version of the image and we have to store it. This grayscale image of the verion will be simply shown as a output on user Screen using Jframe class. This was all about the project.

For the source code land to Github Repo

To download the jar file Click here

Screenshots :

SS 1

SS 2

Thank you :)

comments powered by Disqus
rss facebook twitter github youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora