Automatic solar feature detection using image processing and pattern recognition techniques