Optimizing ship detection efficiency in SAR images