A method for controlling an image processing apparatus, the image processing apparatus comprising a memory storing a program, and at least one processor executing the program to
- acquire a luminance component of an input image;
- convert the acquired luminance component into a predetermined luminance value for each pixel;
- generate a graph waveform image that shows a graph showing a distribution of the luminance values obtained through the conversion of the acquired luminance component;
- and
- display the generated graph waveform image on a display unit,
- wherein when the input image is recorded in a first mode, an axis representing the luminance values in the graph is a logarithmic axis, and a logarithmic graph waveform image showing the distribution of the luminance values based on the logarithmic axis is generated.