Statistics for Discrete total variation in multiple spatial dimensions and its applications