better feature representation in the borders
do not rise an error when num contours is inconsistent, just exit
normalize feature vector to (0,1)