I'm using multiresolution approach for segmentation based on wavelet transform and watershed algorithm. To merge the over-segmented regions, i need to calculate the features of each segmented region of the approximation matrix (such as the mean,second and third order central moments). My problem is i don't know how to define each region separately. In other words, i don't success writing these equations with matlab.
