This repository contains the implementation of Region-Filling-and-Object-Removal-by-Exemplar-Based-Image-Inpainting in MATLAB. This was implemented as a part of assingment in Digital Image Processing Course, E & ECE, IITKGP.
Team Members:
- Sirish Gambhira
- Sanku Yogesh
- MSR Pavan Kumar
- Bandaru Sai Manoj
- Curve fitting
- Basic plot tool boxes
For the difference between Code1, Code2 refer 6th point of discussion
AssistedFreehand is used to get the mask, hold the left button to draw, and double click when completed
Functions:
- In the first two blocks of code, we are reading the image and taking the user interactive mask.
- Get-contour computes the contour where the bright pixels in the binary image with any of the 8-neighboring pixels as dark are considered in the contour
- get_normal computes the normal on each point of contour by using the curve fitting method where we arrange the points in the clockwise direction and interpolated the intermediate values.
- get_priorities computes the confidence and data values for each pixel on the contour and techniques used are discussed in the report.
- get_max computes the index of the pixel having the maximum priority values.
- get_sample and get_distance functions search the best matching exemplar.
- update function updates the Image, binary image/mask, and confidence values
- Check function checks whether the task is completed or not