CPC G06T 3/40 (2013.01) [H04N 19/176 (2014.11); H04N 19/59 (2014.11)] | 15 Claims |
8. An image processing method of retargeting an input image frame to acquire an output image frame, the method comprising:
identifying an area, in which pixel values are to be padded, based on the input image frame and information on the output image frame, identify a first pixel block based on a target pixel area included in the identified area;
identifying a second pixel block based on pixel values included in the first pixel block; and
acquiring the output image frame by padding the target pixel area based on pixel values included in the second pixel block,
wherein the identifying the second pixel comprises:
identifying the second pixel block by searching pixel values included in the first pixel block and a pixel block having similarity greater than or equal to a threshold value, and
identifying a foreground area in the input image frame, and perform re-research based on the second pixel block being searched in at least one of the foreground area or an adjacent area, and
wherein the acquiring the output image comprises:
summing pixel values of some pixels among pixels included in the first pixel block and pixel values of corresponding pixel among the second pixel block and dividing a value of the sum by a number of sums to obtain a calculated pixel value, and
replacing the some pixels with the calculated pixel value.
|