The Image Processing application is a Java program that allows users to perform various image manipulation tasks on a selected image file. It provides functionalities such as applying filters, converting to grayscale, zooming, and saving the modified image. (m2husnainnaeem@gmail.com feel free to contact for custom modification and other developments )
- Java Development Kit (JDK) installed on your system.
- Clone or download the repository containing the Java files.
- Compile and run the
ImageProcessing.java
file to launch the application.
- Opens a file dialog to select an image file (supports JPG, JPEG, and PNG formats).
- Displays the selected image in the input panel.
- Allows users to load an image file using the "LOAD" button.
- Displays the selected image in the input panel.
- Applies a filter that swaps the red and blue color channels of the image.
- Displays the filtered image in the output panel.
- Applies a filter that swaps the red and green color channels of the image.
- Displays the filtered image in the output panel.
- Applies a filter that swaps the red and blue color channels and green and blue color channels of the image.
- Displays the filtered image in the output panel.
- Converts the image to grayscale.
- Displays the grayscale image in the output panel.
- Prompts the user to enter a zoom factor.
- Zooms the image by duplicating pixels based on the zoom factor.
- Displays the zoomed image in the output panel.
- Allows users to save the currently displayed image in JPG format using the "SAVE" button.
The Filters
class contains static methods for applying various image filters and transformations.
- Swaps the red and blue color channels of the input image.
- Returns the filtered image.
- Swaps the red and green color channels of the input image.
- Returns the filtered image.
- Swaps the red and blue color channels and green and blue color channels of the input image.
- Returns the filtered image.
- Converts the input image to grayscale.
- Returns the grayscale image.
- Zooms the input image by a specified zoom factor.
- Returns the zoomed image.
- Launch the application.
- Use the "File Chooser" or "Load" button to select an image.
- Apply various filters and transformations using the provided buttons.
- Save the modified image using the "SAVE" button.
Contributions are welcome. If you want to contribute to this project, please fork the repository and create a pull request.
This project is licensed under the MIT License.