Skip to content

ggggg111/DIP-FDU-Project1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

DIP-FDU-Project1

Introduction

This project has been created for the subject Digital Image Processing at Fudan University. It consists in an Image Editor which can load, save, and edit images, similar to the MS Paint software.

Author

Gerard Marcos Freixas.

Features

  • Load images in .jpg/.png/.bmp formats.

  • Save images in .jpg/.png/.bmp formats.

  • Editing tools, including a standard brush, a rubber, circle and square brushes, lines, ellipses, and rectangles. The color and size of the tool can be tweaked.

  • Filters:

    • Grayscale.
    • Blur.
    • Gaussian Blur.
    • Negative.
    • Laplace Operator.
  • Enhancement:

    • Denoise:
      • Median Blur.
    • Brighten:
      • Laplace.
    • Super Resolution.
  • HDR Image Loading.

  • Anomaly Detection.

  • Style Transfer.

Controls

  • Left-click: Use the current selected tool. Interact with the Immediate Use GUI.

  • Middle-click: Move the loaded image in the canvas.

  • Right-click: Use the rubber tool.

Dependencies

External tools

Real-ERSGAN

FastFlow

URST & AdaIN

Compatibility

At the moment, the project supports Windows 10+ environments and is compiled for x64 platforms.

Instructions

Before starting, it is needed to add the OpenCV library manually:

1. Download OpenCV 4.5.5 library and install it.

2. Place the downloaded files along with the build and sources files inside ImageEditor/ImageEditor/vendor/OpenCV/.

3. Place both opencv_world455.dll and opencv_world455d.dll DLLs inside ImageEditor/ImageEditor/vendor/workdir/.

4. Download Libtorch 1.11.0 + CUDA 11.3 (Debug) and Libtorch 1.11.0 + CUDA 11.3 (Release).

5. Place the downloaded files in the C: directory so that the paths are as follows: C:/libtorch-win-shared-with-deps-debug-1.11.0+cu113/libtorch and C:/libtorch-win-shared-with-deps-1.11.0+cu113/libtorch.

6. Download CUDA 11.3 and install it. The install path should be C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.3.

To compile the project, follow the steps below:

1. Run ImageEditor.sln to open the Visual Studio 2019 solution.

2. Set the solution platform to x64. You can use both debug or release configurations.

3. On the solution explorer, right-click ImageEditor and select Properties.

4. On the Configuration Properties->Debugging panel, change the Working Directory to .\workdir.

To run the release, do:

1. Extract the release files to any directory.

2. Execute ImageEditor.exe.

Note: The dependencies are already included in the project, for Windows 10+ x64 targets, but not for OpenCV as it is quite a heavy library. Please follow the instructions above.

Requirements

Releases

The latest releases can be downloaded here.

Respository

The repository is hosted here.