4.The value, "Similarity threshold value".
If the difference of pixel-value or the difference value of average grayscale of a set of pixels less than "Similarity threshold value", the regions will be considered as a same region.