Noise variance estimation in nonlocal transform domain