Clear Filters
Clear Filters

local variation of image

2 views (last 30 days)
nayomi ranamuka
nayomi ranamuka on 7 May 2011
I want to calculate the local standard variation in a sliding window for an image. How it should be done using matlab ??

Accepted Answer

nayomi ranamuka
nayomi ranamuka on 8 May 2011
Thank you. Regarding to your comments I've a solution also. J = colfilt(I,[5 5],'sliding',@std); I hope your suggestions for my solution.
  2 Comments
Wolfgang Schwanghart
Wolfgang Schwanghart on 8 May 2011
Hi, your solution is good, too! The function stdfilt is probably much faster, but if this is not a problem right now, colfilt is a good alternative.
nayomi ranamuka
nayomi ranamuka on 8 May 2011
Thank you

Sign in to comment.

More Answers (1)

Wolfgang Schwanghart
Wolfgang Schwanghart on 7 May 2011
  6 Comments
Wolfgang Schwanghart
Wolfgang Schwanghart on 7 May 2011
What exactly is the problem? Did you try to run the example in the documentation?
Walter Roberson
Walter Roberson on 7 May 2011
J = stdfilt(I, ones(5,5));

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!