Matlab code for solid single color square detection from image