/**
 * This function checks the quality of two images by comparing their pixel values.
 * It returns true if the images are considered identical and false otherwise.
 *
 * @param image1 The pixel values of the first image.
 * @param image2 The pixel values of the second image.
 * @param epsilon The maximum allowable difference between corresponding pixel values.
 * @return true if the images are considered identical within the given epsilon, false otherwise.
 */
fun checkPhotoQuality(image1: List<Int>, image2: List<Int>, epsilon: Float): Boolean {

    if (image1.size != image2.size) {
        return false
    }

    for (i in image1.indices) {
        if (Math.abs(image1[i] - image2[i]) > epsilon) {
            return false
        }
    }

    return true
}
/**
 * This function checks the quality of two images by comparing their pixel values.
 * It returns true if the images are considered identical and false otherwise.
 *
 * @param image1 The pixel values of the first image.
 * @param image2 The pixel values of the second image.
 * @param epsilon The maximum allowable difference between corresponding pixel values.
 * @return true if the images are considered identical within the given epsilon, false otherwise.
 */
fun checkPhotoQuality(image1: List<Int>, image2: List<Int>, epsilon: Float): Boolean {
/**
 * This function checks the quality of two images by comparing their pixel values.
 * It returns true if the images are considered identical and false otherwise.
 *
 * @param image1 The pixel values of the first image.
 * @param image2 The pixel values of the second image.
 * @param epsilon The maximum allowable difference between corresponding pixel values.
 * @return true if the images are considered identical within the given epsilon, false otherwise.
 */
fun checkPhotoQuality(image1: List<Int>, image2: List<Int>, epsilon: Float): Boolean {

    if (image1.size != image2.size) {
        return false
    }

    for (i in image1.indices) {
        if (Math.abs(image1[i] - image2[i]) > epsilon) {
            return false
        }
    }

    return true
}