Functions characterized by images of the sets