Extraction of carbonate-karst reservoirs based on adaptive mathematical morphology