OpenCV is missing inpaint function

I am using OF 0.9.0 and I found that cv::inpaint function is missing which is available in 0.8.4

How can I have this function back

The cv::inpaint() is declared in the photo module within opencv.

Just add this include to your project:

#include <opencv2/photo/photo.hpp> 

Or you could include the following which includes all of OpenCV’s functionality.

#include <opencv2/opencv.hpp>