Goal: achieve the same edge/corner detection performance on a night time image, compared to its daytime counterpart.
Proceedure Overview:
- Apply Canny Edge Detection/Harris Corner Detection to the daytime image with default parameters to produce a ground-truth edge/corner map image.
- Apply image processing (or other methods/algorithms you prefer) to process the night-time image.
- Apply the same detection method to the processed image (not necessarily with default parameters) to output another image.
- Try to make the output image as close as possible to the ground-truth image. We use MSE as the metric to measure the error/difference.
Download the SwinIR weights for color denoising (005_colorDN_DFWB_s128w8_SwinIR-M_noise50.pth). Place the weights in SwinIR/model_zoo/swinir.
python Zero-DCE_code/lowlight_test.py
Place the enhanced image from the images folder in SwinIR/testsets/nighttime.
cd SwinIR
python main_test_swinir.py --task color_dn --noise 25 --model_path model_zoo/swinir/005_colorDN_DFWB_s128w8_SwinIR-M_noise50.pth --folder_gt testsets/nighttime
Canny Edge Detection
python canny_detector.py
Harris Corner Detection
python harris_detector.py
Uses code from https://github.com/Li-Chongyi/Zero-DCE and https://github.com/JingyunLiang/SwinIR.