Legal claims defining the scope of protection, as filed with the USPTO.
1. An image processing method, comprising: acquiring an initial image with brightness and chroma being separately represented and a corresponding style image with brightness and chroma being separately represented, wherein the initial image refers to a reference image for image style migration and the style image refers to an image subjected to the image style migration with reference to a style of the initial image; determining a first to-be-processed area in the style image, and determining a second to-be-processed area, corresponding to the first to-be-processed area, in the initial image; processing the style image by replacing a brightness component of the first to-be-processed area with a brightness component of the second to-be-processed area and filtering a chroma component of the first to-be-processed area; and generating an output image according to the processed style image.
2. The image processing method of claim 1 , wherein the acquiring the initial image with the brightness and the chroma being separately represented and the corresponding style image with the brightness and the chroma being separately represented comprises: acquiring a preset initial image and a corresponding preset style image; converting the preset initial image and/or the preset style image to have brightness and chroma being separately represented when brightness and chroma of the preset initial image and/or the preset style image are not separately represented; and respectively taking the preset initial image and the preset style image with the brightness and the chroma being separately represented as the initial image and the style image.
3. The image processing method of claim 2 , wherein the generating the output image according to the processed style image comprises: converting the processed style image into an output image with a preset format when the processed style image is not in the preset format; and taking the processed style image as the output image when the processed style image is in the preset format.
4. The image processing method of claim 1 , wherein the replacing the brightness component of the first to-be-processed area with the brightness component of the second to-be-processed area comprises: replacing a brightness component of each pixel point in the first to-be-processed area in the style image with a brightness component of a pixel point at a same position in the second to-be-processed area when sizes of the initial image and the style image are same; and converting the initial image to have a size same as that of the style image, and replacing a brightness component of each pixel point in the first to-be-processed area in the style image with a brightness component of a pixel point at a same position in the second to-be-processed area of a converted initial image when sizes of the initial image and the style image are different.
5. The image processing method of claim 4 , wherein the determining the first to-be-processed area in the style image, and determining the second to-be-processed area, corresponding to the first to-be-processed area, in the initial image comprises: determining the first to-be-processed area in the style image by utilizing a deep web, wherein the deep web is obtained by performing training by taking a specified to-be-processed area in an image processing sample acquired in advance as a target; and according to a position of the first to-be-processed area in the style image, determining an area same as the position in the initial image to obtain the second to-be-processed area corresponding to the first to-be-processed area.
6. An image processing apparatus, comprising a memory, a processor and a computer program stored in the memory, wherein the processor is configured to execute the computer program to: acquire an initial image with brightness and chroma being separately represented and a corresponding style image with brightness and chroma being separately represented, wherein the initial image refers to a reference image for image style migration and the style image refers to an image subjected to the image style migration with reference to a style of the initial image; determine a first to-be-processed area in the style image and determine a second to-be-processed area, corresponding to the first to-be-processed area, in the initial image; process the style image by replacing a brightness component of the first to-be-processed area with a brightness component of the second to-be-processed area and filtering a chroma component of the first to-be-processed area; and generate an output image according to the processed style image.
7. The apparatus of claim 6 , wherein the processor is further configured to execute the computer program to: acquire a preset initial image and a corresponding preset style image; convert the preset initial image and/or the preset style image to have brightness and chroma being separately represented when brightness and chroma of the preset initial image and/or the preset style image are not separately represented; and respectively take the preset initial image and the preset style image with the brightness and the chroma being separately represented as the initial image and the style image.
8. The apparatus of claim 7 , wherein the processor is further configured to execute the computer program to: convert the processed style image into an output image with a preset format when the processed style image is not in the preset format; and take the processed style image as the output image when the processed style image is in the preset format.
9. The apparatus of claim 6 , wherein the processor is further configured to execute the computer program to: replace a brightness component of each pixel point in the first to-be-processed area in the style image with a brightness component of a pixel point at a same position in the second to-be-processed area when sizes of the initial image and the style image are same; and convert the initial image to have a size same as that of the style image and replace a brightness component of each pixel point in the first to-be-processed area in the style image with a brightness component of a pixel point at a same position in the second to-be-processed area of a converted initial image when sizes of the initial image and the style image are different.
10. The apparatus of claim 9 , wherein the processor is further configured to execute the computer program to: determine the first to-be-processed area in the style image by utilizing a deep web, wherein the deep web is obtained by performing training by taking a specified to-be-processed area in an image processing sample acquired in advance as a target; and determine an area same as a position in the initial image according to the position of the first to-be-processed area in the style image to obtain the second to-be-processed area corresponding to the first to-be-processed area.
11. A non-transitory computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to perform: acquiring an initial image with brightness and chroma being separately represented and a corresponding style image with brightness and chroma being separately represented; wherein the initial image refers to a reference image for image style migration and the style image refers to an image subjected to the image style migration with reference to a style of the initial image; determining a first to-be-processed area in the style image, and determining a second to-be-processed area, corresponding to the first to-be-processed area, in the initial image; processing the style image by replacing a brightness component of the first to-be-processed area with a brightness component of the second to-be-processed area and filtering a chroma component of the first to-be-processed area; and generating an output image according to the processed style image.
Unknown
May 10, 2022
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.