A non-transitory medium storing instructions executable by one or more processors, wherein the instructions, when executed by the one or more processors, cause the one or more processors to function as an image processing apparatus that comprises:
- (A) a first signal processing unit configured to receive image signals from an image sensor;
- (B) a second signal processing unit configured to perform image processing on image signals output from the first signal processing means,
- wherein the first signal processing unit includes:
- (a) an evaluation unit configured to determine evaluation values for image signals;
- and
- (b) a control unit configured to control an order according to which the image signals are output to the second signal processing means, based on the evaluation values;
- and
- (c) a selection unit configured to select an image signal for a single frame from among the image signals for a predetermined plural number of frames, based on the evaluation values,
- wherein the control unit outputs the selected image signal via an external device to the second signal processing unit and outputs the remaining image signals to the second signal processing unit not via the external device,
- wherein the external device performs image processing ono the selected image signal and then outputs the selected image signal to the second signal processing unit, and
- wherein the second signal processing unit does not perform image processing on the selected image signal output from the external device.