Image processing method and image processing apparatus

US12400382B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12400382-B2
Application numberUS-202218264739-A
CountryUS
Kind codeB2
Filing dateJan 4, 2022
Priority dateFeb 9, 2021
Publication dateAug 26, 2025
Grant dateAug 26, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present disclosure provides an image processing method and an image processing apparatus. The image processing method including replacing an object in a scene image with a preset template image to generate a virtual image; dividing the scene image into a plurality of image blocks with a preset size; determining pixel residuals of the scene image according to an average pixel value of pixel points in an area where the object is located in the scene image and an average pixel value of pixel points falling into the area where the object is located in each of the plurality of image blocks; determining illumination offsets according to the pixel residuals; and updating pixel values of pixel points in the virtual image according to the illumination offsets to implement illumination transfer.

First claim

Opening claim text (preview).

What is claimed is: 1. An image processing method, comprising: replacing an object in a scene image with a preset template image to generate a virtual image; dividing the scene image into a plurality of image blocks with a preset size; determining pixel residuals of the scene image according to an average pixel value of pixel points in an area where the object is located in the scene image and an average pixel value of pixel points falling into the area where the object is located in each of the plurality of image blocks; determining illumination offsets according to the pixel residuals; and updating pixel values of pixel points in the virtual image according to the illumination offsets to implement illumination transfer. 2. The image processing method according to claim 1 , wherein the replacing the object in the scene image with the preset template image comprises: mapping the template image into a pixel coordinate system of the scene image to generate a transformed image; and replacing the object in the scene image with the transformed image to generate the virtual image. 3. The image processing method according to claim 2 , wherein the mapping the template image into the pixel coordinate system of the scene image comprises: generating a minimum bounding rectangle of the object in the scene image; mapping the minimum bounding rectangle from the pixel coordinate system to a preset plane coordinate system to obtain a first image; transforming the first image into a square to obtain a second image; determining a first transformation submatrix for mapping the template image to the second image; determining a second transformation submatrix for mapping the first image to the minimum bounding rectangle; obtaining a transformation matrix according to the first transformation submatrix and the second transformation submatrix; and mapping the template image into the pixel coordinate system according to the transformation matrix. 4. The image processing method according to claim 3 , wherein the transformation matrix is a product of the second transformation submatrix and the first transformation submatrix. 5. The image processing method according to claim 1 , wherein the determining the pixel residuals of the scene image comprises: taking the average pixel value of the pixel points in the area where the object is located in the scene image as a reference average value; taking the average pixel value of the pixel points falling into the area of the object in each of the plurality of image blocks as an average pixel value of the each of the plurality of image blocks; and determining the pixel residuals of the scene image according to the average pixel value of the each of the plurality of image blocks and the reference average value. 6. The image processing method according to claim 5 , wherein the determining the illumination offsets according to the pixel residuals comprises: performing interpolation processing on the pixel residuals to obtain the illumination offsets, wherein a size of a visual image corresponding to the illumination offsets is the same as a size of the virtual image. 7. The image processing method according to claim 1 , wherein the updating the pixel values of the pixel points in the virtual image according to the illumination offsets comprises: calculating a first product of an offset D i,j corresponding to a pixel point P i,j at an i th row, a j th column of the virtual image in the illumination offsets and an illumination transfer adjusting parameter σ; calculating a first sum of a pixel value R i,j 2 of a red channel of the pixel point P i,j and the first product, calculating a second sum of a pixel value G i,j 2 of a green channel of the pixel point P i,j and the first product, and calculating a third sum of a pixel value B i,j 2 of a blue channel of the pixel point P i,j and the first product; and taking a maximum value of a second parameter and a minimum value of the first sum and a first parameter as a pixel value R i,j 3 of a red channel of a pixel point at an i th row, a j th column in a first transformed image, taking a maximum value of the second parameter and a minimum value of the second sum and the first parameter as a pixel value G i,j 3 of a green channel of the pixel point at the i th row, the j th column in the first transformed image, and taking a maximum value of the second parameter and a minimum value of the third sum and the first parameter as a pixel value B i,j 3 of a blue channel of the pixel point at the i th row, the j th column in the first transformed image. 8. The image processing method according to claim 1 , further comprising: adjusting a saturation of a first transformed image according to the illumination offsets to generate a second transformed image after updating the pixel values of the pixel points in the virtual image according to the illumination offsets to generate the first transformed image; and transforming pixel values of a hue channel, a saturation channel and a value channel in the hue, saturation and value (HSV) color space of the second transformed image into a red, green and blue (RGB) color space. 9. The image processing method according to claim 8 , wherein the adjusting the saturation of the first transformed image according to the illumination offsets comprises: performing normalization processing on the illumination offsets; calculating a second product of an offset D i,j n corresponding to a pixel point P i,j at an i th row, a j th column in the first transformed image in a normalized illumination offsets and a saturation adjusting parameter α; calculating a difference between a third parameter and the second product; and taking a maximum value of a fourth parameter and a third product of a pixel value S i,j 3 of the saturation channel of the pixel point P i,j in an i th row, a j th column in the first transformed image and the difference as a pixel value S i,j 3′ of a saturation channel of a pixel point at an i th row, a j th column in the second transformed image. 10. An image processing apparatus, comprising: a memory; and a processor coupled to the memory, which is configured to execute an image processing method comprising: replacing an object in a scene image with a preset template image to generate a virtual image; dividing the scene image into a plurality of image blocks with a preset size; determining pixel residuals of the scene image according to an average pixel value of pixel points in an area where the object is located in the scene image and an average pixel value of pixel points falling into the area where the object is located in each of the plurality of image blocks; determining illumination offsets according to the pixel residuals; and updating pixel values of pixel points in the virtual image according to the illumination offsets to implement illumination transfer. 11. The image processing apparatus according to claim 10 , wherein the replacing the object in the scene image with the preset template image comprises: mapping the template image into a pixel coordinate system of the scene image to generate a transformed image; and replacing the object in the scene image with the transformed image to generate the virtual image. 12. The image processing apparatus according to claim 11 , wherein the mapping the template image into the pixel coordinate system of the scene image comprises: generating a minimum bounding rectangle of the object in the scene image; mapping the minimum bounding rectangle from the pixel coordinate system to a preset plane coordinate system to obtain a first image;

Assignees

Inventors

Classifications

  • Color image · CPC title

  • Three-dimensional [3D] image rendering · CPC title

  • relating to illumination properties, e.g. using a reflectance or lighting model · CPC title

  • relating to colour · CPC title

  • Determination of region of interest [ROI] or a volume of interest [VOI] · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12400382B2 cover?
The present disclosure provides an image processing method and an image processing apparatus. The image processing method including replacing an object in a scene image with a preset template image to generate a virtual image; dividing the scene image into a plurality of image blocks with a preset size; determining pixel residuals of the scene image according to an average pixel value of pixel …
Who is the assignee on this patent?
Beijing Wodong Tianjun Information Technology Co Ltd, Beijing Jingdong Century Trading Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06T11/60. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 26 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).