How to use inpaint on RGB image with binary mask

1 次查看(过去 30 天)
Hi,
I want to use the inpaint in matlab like its used in Mathematica by implementing directly on the "RGB" Image with the region specified.
Inpaint[image,region]
I have tried finding any substitute in matlab but was not succeeded. The functions developed for it doesn't take the RGB image as input or either the mask binary image as the region.
Kindly guide me how can i solve this problem.
Highly thankful.

回答(1 个)

KSSV
KSSV 2018-4-27
YOu keep the values as it is at the places where you don't want to paint.....at the region where you want to use inpaintn at that region keep NaN's.
  3 个评论
Nazia Hameed
Nazia Hameed 2018-9-12
did you solve this problem? if yes please guide me how you did that?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by