Image Mask Fusion for Precise Object Shape Replacement
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current image conversion technologies fail to control the shape of objects in converted images, making it difficult to meet specific application requirements.
Innovation Solution
An image processing method and apparatus that involves obtaining masks representing object areas, generating a third mask to indicate the occupied area of a second object, determining a foreground image, removing the first object, and fusing the foreground and background images to obtain a target image with the second object.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If current image conversion technology is used, then image conversion can be performed, but the shape of the occupied area of the second object cannot be controlled
Solution Approach 1:
The patent segments the image processing into distinct components: obtaining a first mask representing the first object's occupied area, obtaining a second mask representing the second object's occupied area, generating a third mask by fusing the first and second masks, and using the third mask to control the shape of the second object in the converted image. This segmentation allows precise control over the second object's shape while maintaining manageable processing complexity.
Solution Approach 2:
The patent performs preliminary actions by obtaining and processing masks before the actual image conversion. The first mask and second mask are obtained in advance, and the third mask is generated by fusing these masks before being used to guide the image conversion process. This preliminary preparation of masks enables precise shape control without increasing the complexity of the conversion process itself.
2Manufacturing precision
If the second object's occupied area shape is controlled using masks, then shape precision is improved, but the processing steps increase
Solution Approach 1:
The patent merges the first mask and second mask to generate the third mask, which represents the union of both objects' occupied areas. This merging operation consolidates multiple mask operations into a single fused mask that can be directly used to control the second object's shape in the converted image, improving processing efficiency while maintaining shape precision.
Solution Approach 2:
The third mask serves as an intermediary that bridges the first mask and second mask to the final image conversion process. By fusing the first and second masks into the third mask, the patent creates a single control mechanism that enables precise shape control without requiring separate processing steps for each mask, thus maintaining processing efficiency.
Data Source
AI summary
An image processing method includes obtaining a first mask and a second mask, wherein the first mask represents an occupied area of a first object, and the second mask represents an occupied area of a second object, generating a third mask according to the first mask, the second mask, and a source image, wherein the third mask is used to indicate the occupied area of the second object in the source image, and the source image includes the first object, determining a foreground image according to the first mask, the second mask, and the third mask, wherein the foreground image includes the second object, removing the first object from the source image to determine a background image, and fusing the foreground image and the background image to obtain a target image that includes the second object but excludes the first object.


