Region Growing Matlab, my script as below.