TV is L1 norm of gradient of an image. So we've to find gradient of the image (which is still matrix, right?). Then take the sum of absolute values of the gradient matrix (So now it must be a scalar, right?).
Can I simply use imgradient
function in matlab for first step? It gives two values magnitude and direction, so which one should I consider for next step?
After getting gradient matrix say Igrad
, will just summing absolute values (sum(abs(Igrad(:)))
give me TV? And it must be just a single scalar value right?
Thank you for reading. Keenly waiting for your reply.