A method includes generating a delicate area map by performing a morphological function on a portion of a received first image and identifying a plurality of edges in the first image, the plurality of edges comprising a plurality of pixels. The method also includes verifying a first contrast metric for a first subset of pixels that are in the plurality of pixels but not in the delicate area map, verifying a second contrast metric for a second subset of pixels that are in the plurality of pixels and in the delicate area map, and generating a validation result based on the verifying of the first contrast metric and the verifying of the second contrast metric.
BACKGROUND (1) Images contain pixels that may have high or low contrast. Low contrast pixels have a color that is similar to the colors of its surrounding pixels, and high contrast pixels have a color that is different from the colors of its surrounding pixels. It may be difficult for the human eye to differentiate a low contrast pixel from its surrounding pixels. On the other hand, it is relatively easy for the human eye to differentiate a high contrast pixel from its surrounding pixels. Therefore, when the creator of an image wants an object in the image to stand out and be easily detectable by the human eye, the creator will want that object to have a high contrast with its surroundings. (2) Conventional methods of detecting contrast are subjective and rely on human judgment or expertise. As a result, these conventional methods may produce inconsistent results. For example, one reviewer may determine that a region of an image has low contrast while another reviewer may determine that that same region has high contrast. Additionally, these conventional methods are subject to human error and their results may vary depending on the media on which the image is displayed (e.g., mobile phone display vs office projector). For example, a reviewer who is identifying regions of low contrast may miss or not see a low contrast region due to its small size.
1. A method comprising: generating a delicate area map by operation of one or more computer processors and by performing a morphological function on a portion of a received first image; identifying a plurality of edges in the first image, the plurality of edges comprising a plurality of pixels; verifying that a first subset of pixels that are in the plurality of pixels but not in the delicate area map meets a threshold median contrast; verifying that a second subset of pixels that are in the plurality of pixels and in the delicate area map has a threshold percentage of pixels meeting a threshold contrast; and generating a validation result based on the verifications. ||
10. A method comprising: generating a delicate area map by performing a morphological function on a portion of a received first image; identifying a plurality of edges in the first image, the plurality of edges comprising a plurality of pixels; verifying a first contrast metric for a first subset of pixels that are in the plurality of pixels but not in the delicate area map; verifying a second contrast metric for a second subset of pixels that are in the plurality of pixels and in the delicate area map; generating a validation result based on the verifying of the first contrast metric and the verifying of the second contrast metric; and for each pixel in the plurality of pixels: determining a blended color based on a color of that pixel, a color of a corresponding pixel in a second image, and a transparency level of that pixel; and determining a contrast value by comparing the blended color of that pixel with blended colors of the pixels surrounding that pixel. ||
13. A system comprising: a memory; and a hardware processor communicatively coupled to the memory, the hardware processor configured to: generate a delicate area map by performing a morphological function on a portion of a received first image; identify a plurality of edges in the first image, the plurality of edges comprising a plurality of pixels; verify that a first subset of pixels that are in the plurality of pixels but not in the delicate area map meets a threshold median contrast; verify that a second subset of pixels that are in the plurality of pixels and in the delicate area map has a threshold percentage of pixels meeting a threshold contrast; and generate a validation result based on the verifications. ||
18. A system comprising: a memory; and a hardware processor communicatively coupled to the memory, the hardware processor configured to: generate a delicate area map by performing a morphological function on a portion of a received first image; identify a plurality of edges in the first image, the plurality of edges comprising a plurality of pixels; verify a first contrast metric for a first subset of pixels that are in the plurality of pixels but not in the delicate area map; verify a second contrast metric for a second subset of pixels that are in the plurality of pixels and in the delicate area map; generate a validation result based on the verifying of the first contrast metric and the verifying of the second contrast metric; and for each pixel in the plurality of pixels: determine a blended color based on a color of that pixel, a color of a corresponding pixel in a second image, and a transparency level of that pixel; and determine a contrast value by comparing the blended color of that pixel with blended colors of the pixels surrounding that pixel.