Message Boards Message Boards

0
|
2914 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Why "total variation" is not performing well compared with "diffusion"?

Posted 8 years ago

I am trying to perform an inpainting experiment with Mathematica 10 for the following picture

enter image description here

I am using the following code

enter image description here

and I am obtaining the following result

enter image description here

It is observed that "diffusion" and "Navier Stokes" are performing well but "total variation " is not performing well.

My question is: why "total variation" is not performing well in this experiment?

POSTED BY: Juan Ospina
Posted 8 years ago

The answer is that the number of iiterations must be increased. Using the following code

Inpaint[img, Dilation[Binarize[img, {0.9, 1}], 1], Method -> #, MaxIterations -> 1000] & /@ { "Diffusion", "NavierStokes", "TotalVariation"}

I am obtaining the following results

enter image description here

It is observed that now, the "total variation" is performing better than "diffusion" and "Navier Stokes".

POSTED BY: Juan Ospina
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract