What should be the first step to find data term in exempler based image inpainting?

1 view (last 30 days)
I am trying to implement the exempler based image inpainting algorithm given by criminisi. But I am having the hard time to figure out the above question. Can anybody please help me. It would be great help in my research. As I am doing research in inpainting.
Thanks

Answers (1)

Image Analyst
Image Analyst on 24 Jan 2015
I would guess that the first step is you read the article. Then, since it's not a built-in function of MATLAB, and no one here probably has programmed it up and is ready to hand it over to you, you should probably start coding up the first step it details in the paper.
  2 Comments
jainab bano
jainab bano on 25 Jan 2015
Thanks for the answer. But I didn't want the code. I'll code it. I have two images one is original image and another one is mask image (that have 1's in the mask region that we want to remove and 0's in remaining region). Now I need to find the contour in original image by using this mask. So how can I find the contour of removed region?
Image Analyst
Image Analyst on 25 Jan 2015
Here is the code to mask an image:
% Mask the image.
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, class(rgbImage)));
Also works with a grayscale image.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!