init commit
63
README.md
@@ -0,0 +1,63 @@
|
||||
# Computer Graphics Course Project
|
||||
|
||||
A comprehensive Java application for Computer Graphics image processing operations.
|
||||
|
||||

|
||||
|
||||
## 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
|
||||
|
||||
|
||||
BIN
bin/BinaryThresholding.class
Normal file
BIN
bin/BitPlaneSlicing.class
Normal file
BIN
bin/BlockAveraging.class
Normal file
BIN
bin/BrightnessContrastAdjustment.class
Normal file
BIN
bin/CheckerboardImageGenerator.class
Normal file
BIN
bin/GrayScalePattern.class
Normal file
BIN
bin/Histogram.class
Normal file
BIN
bin/HistogramEqualization.class
Normal file
BIN
bin/HistogramMatching.class
Normal file
BIN
bin/HistogramStretching.class
Normal file
BIN
bin/ImageAdditionInversion.class
Normal file
BIN
bin/ImageBlending.class
Normal file
BIN
bin/ImageConvolution.class
Normal file
BIN
bin/ImageCropFlip.class
Normal file
BIN
bin/ImageMasking.class
Normal file
BIN
bin/ImageResize.class
Normal file
BIN
bin/ImageRotation.class
Normal file
BIN
bin/ImageShearing.class
Normal file
BIN
bin/ImageSteganography.class
Normal file
BIN
bin/ImageStitching.class
Normal file
BIN
bin/ImageSubtraction.class
Normal file
BIN
bin/Main.class
Normal file
BIN
bin/OpenBB.class
Normal file
BIN
bin/Screen$1.class
Normal file
BIN
bin/Screen$10.class
Normal file
BIN
bin/Screen$11.class
Normal file
BIN
bin/Screen$12.class
Normal file
BIN
bin/Screen$13.class
Normal file
BIN
bin/Screen$14.class
Normal file
BIN
bin/Screen$15.class
Normal file
BIN
bin/Screen$16.class
Normal file
BIN
bin/Screen$17.class
Normal file
BIN
bin/Screen$18.class
Normal file
BIN
bin/Screen$19.class
Normal file
BIN
bin/Screen$2.class
Normal file
BIN
bin/Screen$20.class
Normal file
BIN
bin/Screen$21.class
Normal file
BIN
bin/Screen$22.class
Normal file
BIN
bin/Screen$23.class
Normal file
BIN
bin/Screen$24.class
Normal file
BIN
bin/Screen$25.class
Normal file
BIN
bin/Screen$26.class
Normal file
BIN
bin/Screen$27.class
Normal file
BIN
bin/Screen$28.class
Normal file
BIN
bin/Screen$29.class
Normal file
BIN
bin/Screen$3.class
Normal file
BIN
bin/Screen$4.class
Normal file
BIN
bin/Screen$5.class
Normal file
BIN
bin/Screen$6.class
Normal file
BIN
bin/Screen$7.class
Normal file
BIN
bin/Screen$8.class
Normal file
BIN
bin/Screen$9.class
Normal file
BIN
bin/Screen.class
Normal file
BIN
bin/UnsharpMasking.class
Normal file
14
compile.sh
Executable 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
|
After Width: | Height: | Size: 469 KiB |
BIN
images/Imcheck.bmp
Normal file
|
After Width: | Height: | Size: 469 KiB |
BIN
images/LenaDark.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
images/LenaDark_multC.bmp
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
images/LenaDark_strech.bmp
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
images/P1_out1.bmp
Normal file
|
After Width: | Height: | Size: 469 KiB |
BIN
images/P1_out1_b.bmp
Normal file
|
After Width: | Height: | Size: 469 KiB |
BIN
images/P1_out2.bmp
Normal file
|
After Width: | Height: | Size: 469 KiB |
BIN
images/P4_out1.bmp
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
images/P9_out1.bmp
Normal file
|
After Width: | Height: | Size: 669 KiB |
BIN
images/Pl-out3.bmp
Normal file
|
After Width: | Height: | Size: 469 KiB |
BIN
images/ThS1.jpg
Normal file
|
After Width: | Height: | Size: 222 KiB |
BIN
images/ThS1_bin.bmp
Normal file
|
After Width: | Height: | Size: 662 KiB |
BIN
images/ThS1_bin2.bmp
Normal file
|
After Width: | Height: | Size: 572 KiB |
BIN
images/ThS2.jpg
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
images/a.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/b.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/balloon.bmp
Normal file
|
After Width: | Height: | Size: 703 KiB |
BIN
images/balloon_part.bmp
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
images/balloon_part3.bmp
Normal file
|
After Width: | Height: | Size: 527 KiB |
BIN
images/barbara.jpg
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
images/bird.bmp
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
images/blured.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/c.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/camera_rotated_45.bmp
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
images/cameraman.jpg
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
images/cameraman_shear.bmp.bmp
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
images/cars1.bmp
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
images/cars2.bmp
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
images/cars3.bmp
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
images/carsl_brighten.bmp
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
images/crowd.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
images/crowd_equal.bmp
Normal file
|
After Width: | Height: | Size: 479 KiB |
BIN
images/d.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/e.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/f.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/g.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/girl.jpg
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
images/girl_16.bmp
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
images/girl_32.bmp
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
images/girl_4.bmp
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
images/girl_8.bmp
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
images/h.bmp
Normal file
|
After Width: | Height: | Size: 608 KiB |
BIN
images/house.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |