"Detecting and extracting complex patterns from images and realizations of spatial point processes"