Clear Filters
Clear Filters

How to compute variance of image in windows?

4 views (last 30 days)
I read a paper about Guided Image Filtering. For edge preserving:
where is defined as the variance of input image whose centre is .
How to compute it in Matlab?
Thankyou.
  2 Comments
Bjorn Gustavsson
Bjorn Gustavsson on 15 Mar 2019
If you have the image-processing toolbox have a look at wiener2:
edit wiener2
In there you can see how the local variance is calculated.
HTH

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!