# How would i get the total variation demonising for an X-ray image

Total Variation for an X-ray image. using rof model Is there any function to find total variation.

TV with respect to I by $$\sum\sqrt{i x^2+i y^2}+\lambda\|i-g\|$$

$$I$$ is the denoised Image $$I x$$ and $$i y$$ are gradient.

• You want to make your xray images demonic? Or did autocorrect mangle what you were writing? – JRE Feb 11 at 10:20
• what is "total variation", what is "rof model" , what is "$I$", you only use $i$ in your formula, what is "$g$"? please make sure you actually mathematically define all terms you use. – Marcus Müller Feb 11 at 14:36