An image processing apparatus comprising: acquisition means arranged to acquire image data; first tone correction means arranged to estimate transparency for each region of the image data, and to perform tone correction of the image data; second tone correction means arranged to perform tone correction of the image data using a tone curve; control means arranged to control which tone correction means is to be used to perform tone correction; characterized by setting means arranged for setting a target subject in the image data; and measurement means arranged to measure a distance from the image processing apparatus to the target subject, wherein the control means is arranged to control a tone correction operation of the first tone correction means and a tone correction operation of the second tone correction means , based on the distance from the image processing apparatus to the target subject, wherein, in a case where the distance from the image processing apparatus to the target subject is shorter than a first predetermined distance and is longer than a second predetermined distance that is shorter than the first predetermined distance, the control means is arranged to blend a result of tone correction of the image data performed by the first tone correction means and a result of tone correction of the image data performed by the second tone correction means ; further comprising edge detection means arranged to detect edge information regarding the image data, wherein the image processing apparatus is configured to calculate a ratio for the blending based on the detected edge information. acquisition means arranged to acquire image data; first tone correction means arranged to estimate transparency for each region of the image data, and to perform tone correction of the image data; second tone correction means arranged to perform tone correction of the image data using a tone curve; control means arranged to control which tone correction means is to be used to perform tone correction; characterized by setting means arranged for setting a target subject in the image data; and measurement means arranged to measure a distance from the image processing apparatus to the target subject, wherein the control means is arranged to control a tone correction operation of the first tone correction means and a tone correction operation of the second tone correction means , based on the distance from the image processing apparatus to the target subject, wherein, in a case where the distance from the image processing apparatus to the target subject is shorter than a first predetermined distance and is longer than a second predetermined distance that is shorter than the first predetermined distance, the control means is arranged to blend a result of tone correction of the image data performed by the first tone correction means and a result of tone correction of the image data performed by the second tone correction means ; further comprising edge detection means arranged to detect edge information regarding the image data, wherein the image processing apparatus is configured to calculate a ratio for the blending based on the detected edge information. <EOS>