The following Matlab project contains the source code and Matlab examples used for block segmentation.
Face feature can be extracted by block segmentation. Here image clustered into user input block size. Face feature (Eye, nose, etc.) can clustered by matrix separation. Block size can be varied by user interaction (bs_r and bs_c).