init commit

This commit is contained in:
2025-11-07 21:55:39 +01:00
parent 80653fbbe6
commit 2732ac94fa
151 changed files with 3037 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
# Computer Graphics Course Project
A comprehensive Java application for Computer Graphics image processing operations.
![Project Image](images/image.png)
## Project Structure
```
Computer_Graphics/
├── src/ # Java source files
├── bin/ # Compiled .class files
├── images/ # Input/output image files (BMP, JPG, PNG, GIF)
│ └── image.png # Project screenshot/diagram
├── compile.sh # Build script
└── README.md # This file
```
## Features
This project includes various image processing operations:
- **Image Operations**: Addition, Subtraction, Blending, Masking, Stitching
- **Transformations**: Rotation, Shearing, Resizing, Cropping, Flipping
- **Histogram Operations**: Stretching, Equalization, Matching
- **Filtering**: Convolution, Unsharp Masking, Binary Thresholding
- **Advanced**: Bit Plane Slicing, Block Averaging, Steganography
## Compilation
To compile the project:
```bash
javac -d bin src/*.java
```
## Execution
To run the application:
```bash
java -cp bin Main
```
Or alternatively:
```bash
cd bin
java Main
```
## Image Files
- Input images should be placed in the `images/` directory
- All output images will be saved to the `images/` directory
- Supported formats: BMP, JPG, JPEG, PNG, GIF
## Notes
- The application uses a GUI interface (Screen.java) to access various image processing operations
- All image paths in the code reference the `images/` directory
- Output files are automatically saved with `.bmp` extension in the `images/` directory

Binary file not shown.

BIN
bin/BitPlaneSlicing.class Normal file

Binary file not shown.

BIN
bin/BlockAveraging.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/GrayScalePattern.class Normal file

Binary file not shown.

BIN
bin/Histogram.class Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/HistogramMatching.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/ImageBlending.class Normal file

Binary file not shown.

BIN
bin/ImageConvolution.class Normal file

Binary file not shown.

BIN
bin/ImageCropFlip.class Normal file

Binary file not shown.

BIN
bin/ImageMasking.class Normal file

Binary file not shown.

BIN
bin/ImageResize.class Normal file

Binary file not shown.

BIN
bin/ImageRotation.class Normal file

Binary file not shown.

BIN
bin/ImageShearing.class Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/ImageStitching.class Normal file

Binary file not shown.

BIN
bin/ImageSubtraction.class Normal file

Binary file not shown.

BIN
bin/Main.class Normal file

Binary file not shown.

BIN
bin/OpenBB.class Normal file

Binary file not shown.

BIN
bin/Screen$1.class Normal file

Binary file not shown.

BIN
bin/Screen$10.class Normal file

Binary file not shown.

BIN
bin/Screen$11.class Normal file

Binary file not shown.

BIN
bin/Screen$12.class Normal file

Binary file not shown.

BIN
bin/Screen$13.class Normal file

Binary file not shown.

BIN
bin/Screen$14.class Normal file

Binary file not shown.

BIN
bin/Screen$15.class Normal file

Binary file not shown.

BIN
bin/Screen$16.class Normal file

Binary file not shown.

BIN
bin/Screen$17.class Normal file

Binary file not shown.

BIN
bin/Screen$18.class Normal file

Binary file not shown.

BIN
bin/Screen$19.class Normal file

Binary file not shown.

BIN
bin/Screen$2.class Normal file

Binary file not shown.

BIN
bin/Screen$20.class Normal file

Binary file not shown.

BIN
bin/Screen$21.class Normal file

Binary file not shown.

BIN
bin/Screen$22.class Normal file

Binary file not shown.

BIN
bin/Screen$23.class Normal file

Binary file not shown.

BIN
bin/Screen$24.class Normal file

Binary file not shown.

BIN
bin/Screen$25.class Normal file

Binary file not shown.

BIN
bin/Screen$26.class Normal file

Binary file not shown.

BIN
bin/Screen$27.class Normal file

Binary file not shown.

BIN
bin/Screen$28.class Normal file

Binary file not shown.

BIN
bin/Screen$29.class Normal file

Binary file not shown.

BIN
bin/Screen$3.class Normal file

Binary file not shown.

BIN
bin/Screen$4.class Normal file

Binary file not shown.

BIN
bin/Screen$5.class Normal file

Binary file not shown.

BIN
bin/Screen$6.class Normal file

Binary file not shown.

BIN
bin/Screen$7.class Normal file

Binary file not shown.

BIN
bin/Screen$8.class Normal file

Binary file not shown.

BIN
bin/Screen$9.class Normal file

Binary file not shown.

BIN
bin/Screen.class Normal file

Binary file not shown.

BIN
bin/UnsharpMasking.class Normal file

Binary file not shown.

14
compile.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
echo "Compiling Java source files..."
mkdir -p bin
javac -d bin src/*.java
if [ $? -eq 0 ]; then
echo "Compilation successful!"
echo "Run the application with: java -cp bin Main"
else
echo "Compilation failed!"
exit 1
fi

BIN
images/Imbw.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
images/Imcheck.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
images/LenaDark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
images/LenaDark_multC.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
images/LenaDark_strech.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
images/P1_out1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
images/P1_out1_b.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
images/P1_out2.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
images/P4_out1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
images/P9_out1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 KiB

BIN
images/Pl-out3.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
images/ThS1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

BIN
images/ThS1_bin.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 KiB

BIN
images/ThS1_bin2.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 KiB

BIN
images/ThS2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
images/a.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/b.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/balloon.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 KiB

BIN
images/balloon_part.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
images/balloon_part3.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 KiB

BIN
images/barbara.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
images/bird.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

BIN
images/blured.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/c.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
images/cameraman.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
images/cars1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
images/cars2.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
images/cars3.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
images/carsl_brighten.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
images/crowd.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
images/crowd_equal.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

BIN
images/d.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/e.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/f.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/g.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/girl.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
images/girl_16.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

BIN
images/girl_32.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

BIN
images/girl_4.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

BIN
images/girl_8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

BIN
images/h.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

BIN
images/house.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Some files were not shown because too many files have changed in this diff Show More