Efficient Feature Extraction for Shape Analysis, Object Detection and Tracking