Compare
processing.compare.get_delta_e_value
(c1, c2)This function takes two colours and returns the delta E value between them
:param c1: The first colour :param c2: The color to compare to c1 :return: The delta_E value.
processing.compare.get_diff
(c1, c2, mode)The function takes in two RGB values and returns the difference between the two values.
:param c1: The first color to compare :param c2: The color to compare to :param mode: 0 = RGB, 1 = average :return: The difference between the two colors.
processing.compare.get_gap
(c1, c2)Given two colors, return the gap between them
:param c1: The first color :param c2: The color to compare against :return: The difference between the RGB values of the two colors.
processing.compare.get_differences
(sheet, cell_x, cell_y, i1, i2, format1, format2)Write the difference between two numbers to a cell in a spreadsheet
:param sheet: the sheet you want to write to :param cell_x: the x coordinate of the cell where the difference will be written :param cell_y: The column number of the cell you want to write to :param i1: The first input dataframe :param i2: the second dataframe to compare :param format1: format for values that are less than 1% different :param format2: format for values that are greater than 0.01 but less than 1
processing.compare.get_color_differences
(image1, image2)Given two images, return the number of pixels that are the same in both images
:param image1: The first image to compare :param image2: The image to compare to :return: The number of pixels that are the same in both images.
processing.compare.save_matched_pixels
(image1, image2, mode)Given two images, this function will create a new image where the pixels of the first image are retained if and only if the corresponding pixels in the second image are the same
:param image1: The first image to compare :param image2: The image to compare against :param mode: :return: The image with the matched pixels in alpha.
Créé: 12 octobre 2022