Computer-implemented method for providing an output data set on the basis of an input data set relating to an examination subject, said method comprising the steps: - receiving the input data set, - generating an initial intermediate data set group from a plurality of intermediate data sets (37, 38, 39) by applying a respective correction operation associated with the respective intermediate data set (37, 38), 39) to the input data set, - ordering the intermediate data sets (37, 38, 39) according to a quality ranking in respect of their image quality by means of a sorting algorithm, wherein the intermediate data sets (37, 38, 39) of the initial intermediate data set group are ordered in a first iteration, wherein, in the sorting algorithm, • a respective relative quality metric is determined for the relative image quality of a respective first of the intermediate data sets in relation to a respective second of the intermediate data sets by means of a comparison algorithm, • after which the order of the respective first and second intermediate data set (38, 39) in the quality ranking is specified by means of a comparison of the relative quality metric with a quality limit value, - wherein if an abort condition is met, one of the intermediate data sets (37, 38, 39) is selected as a function of the quality ranking and at least one correction parameter which parameterises a correction algorithm in order to provide the correction operation associated with the selected intermediate data set (37, 38, 39) and/or the selected intermediate data set (37, 38, 39) are provided as the output data set, and - wherein if the abort condition is not met, a modified intermediate data set group is formed which comprises at least one intermediate data set which is generated by applying a respective correction operation dependent on the quality ranking to the input data set, after which, in a further iteration, the ordering of the intermediate data sets (37, 38, 39) and the evaluation of the abort condition for the modified intermediate data set group are repeated, wherein, on the one hand, quality limit values different from one another are used in the sorting algorithm in at least two of the iterations and/or wherein, on the other hand, the quality limit value is specified in at least one of the iterations as a function of the input data set and/or of acquisition information relating to at least one characteristic of the acquisition of the input data set. - receiving the input data set, - generating an initial intermediate data set group from a plurality of intermediate data sets (37, 38, 39) by applying a respective correction operation associated with the respective intermediate data set (37, 38), 39) to the input data set, - ordering the intermediate data sets (37, 38, 39) according to a quality ranking in respect of their image quality by means of a sorting algorithm, wherein the intermediate data sets (37, 38, 39) of the initial intermediate data set group are ordered in a first iteration, wherein, in the sorting algorithm, • a respective relative quality metric is determined for the relative image quality of a respective first of the intermediate data sets in relation to a respective second of the intermediate data sets by means of a comparison algorithm, • after which the order of the respective first and second intermediate data set (38, 39) in the quality ranking is specified by means of a comparison of the relative quality metric with a quality limit value, • a respective relative quality metric is determined for the relative image quality of a respective first of the intermediate data sets in relation to a respective second of the intermediate data sets by means of a comparison algorithm, • after which the order of the respective first and second intermediate data set (38, 39) in the quality ranking is specified by means of a comparison of the relative quality metric with a quality limit value, - wherein if an abort condition is met, one of the intermediate data sets (37, 38, 39) is selected as a function of the quality ranking and at least one correction parameter which parameterises a correction algorithm in order to provide the correction operation associated with the selected intermediate data set (37, 38, 39) and/or the selected intermediate data set (37, 38, 39) are provided as the output data set, and - wherein if the abort condition is not met, a modified intermediate data set group is formed which comprises at least one intermediate data set which is generated by applying a respective correction operation dependent on the quality ranking to the input data set, after which, in a further iteration, the ordering of the intermediate data sets (37, 38, 39) and the evaluation of the abort condition for the modified intermediate data set group are repeated,