This folder contians the C++ codes for the proposed paper "Photo Realistic Image Completion via Dense Correspondence".

Module Leader: Prof. Pier Luigi Dragotti
PhD Student: Mr. Jun-Jie Huang (j.huang15@imperial.ac.uk)


Version 1.0
- 2017-11-28 First release. PRINCE: Photo Realistic Image completioN via dense CorrespondencE

If you find the code is useful, please cite our paper:
[1] Jun-Jie Huang and Pier Luigi Dragotti, "Photo realistic image completion via dense correspondence," IEEE Trans. on Image Processing, vol 27, no. 11, pp. 5234-5247, November 2018. 	 


How to use to code:
1. In the folder PRINCE_v1.0\x64\Release, there contains a src_imgs folder and a trg_imgs folder which contains 9 pairs of source image and target image to reproduce the results in paper [1].

2. The Test_Imgs.txt defins the source image and target image to be used for completion and the ROI region on the source image. For example, 
src_imgs/src_01.png
trg_imgs/trg_01.jpg
330 700 260 480

3. Run the excutable file PRINCE.exe to perform image completion. The algorithm will generate 3 images: CompletedImage.bmp (the image completed image), SourceImage.bmp (the source image), and TargetImage.bmp (the target image).



