This is a simple image processing Java code for a project in university.
Currently under editing because there are some bugs.
Compilation: javac ImageProcessing.java
Execution:
java ImageProcessing -grey image1.bmp
java ImageProcessing -vflip image1.bmp image2.bmp
java ImageProcessing hflip image2.bmp
java ImageProcessing -grey image1.jpg
java ImageProcessing -left90 image3.bmp
java ImageProcessing -right90 image1.bmp
java ImageProcessing -display image1.bmp 1 1
java ImageProcessing -display 3x4 3 0
java ImageProcessing -display 3x4.bmp 0
java ImageProcessing -display 3x4.bmp 0 4
java ImageProcessing -hflip image1.bmp
java ImageProcessing -display 3x4
The program above is a simple photo editor with basic functions (horizontal flip, vertical flip, left rotation by 90 degrees, right rotation by 90 degrees, gray scale filter, color pick RGB values) and it can only process pictures of the bmp type. The logic of the program lays within multi-dementional tables' logic, since the pictures being processed are first turned into 3D tables of integer values that represent the values of red, green and blue that are used in a certain pixel to create its color.