Extract image statistics using a mask

I can establish a mask [(polygon shaped) ROI] to define a set of pixels in an (multiband) image.
How do i extract statistics (mean, covariance) using only those pixels within the ROI?

Answers (0)

Asked:

on 21 Mar 2012

Community Treasure Hunt

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

Start Hunting!