Pattern detection and recognition in SAR images