Region growing libary with feature extraction for planes