Method and device for rendering image
An image and view technology, applied in the field of rendering images, can solve the problems of many holes in the image, slow rendering speed, poor rendering effect, etc., and achieve the effect of enhancing the filling effect, speeding up the rendering speed, and simplifying the complexity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] see figure 2 , an embodiment of the present invention provides a method for rendering an image, for rendering an image, including:
[0068] S1: Choose one of the left view and the right view of the image to be processed as the first view, and the other as the second view, perform depth map calculation on the first view, and obtain a depth map corresponding to the first view;
[0069] S2: Rendering according to the first view and the depth map to obtain the middle view;
[0070] S3: According to the preset threshold value, fill the hole in the middle view whose area is smaller than the threshold value;
[0071] S4: For holes with an area greater than the threshold in the middle view, according to the middle view and the second view, find the pixel block with the highest similarity to the hole from the second view;
[0072] S5: Copy and fill the pixel block into the hole.
[0073] By using the left and right views and a depth map for image rendering, the large and sma...
Embodiment 2
[0075] see image 3 , an embodiment of the present invention provides a method for rendering an image, wherein the first view is a left view, and the second view is a right view, specifically including:
[0076] 301: Calculate the left view according to the left view and the right view of the image to be processed to obtain a depth map corresponding to the left view;
[0077] Wherein, the camera that collects the image to be processed may be a binocular camera, two or more cameras, or other types of cameras, which are not specifically limited in this embodiment.
[0078] There may be various algorithms used for calculating the depth map, which are not specifically limited in this embodiment.
[0079] In this embodiment, the algorithm for calculating the depth map takes a stereo matching algorithm as an example.
[0080] Specifically, calculate the projected position values of all scene points that have projections in the left view in the left view and right view, subtract ...
Embodiment 3
[0118] see Figure 4 , an embodiment of the present invention provides a method for rendering an image, wherein the first view is a right view, and the second view is a left view, specifically including:
[0119] 401: Calculate the right view according to the left view and the right view of the image to be processed to obtain a depth map corresponding to the right view;
[0120] 402: Render according to the right view and the depth map to obtain the middle view;
[0121] 403: Detect and judge the area of the void on the middle view according to the preset threshold;
[0122] 404: In the middle view, select a pixel block as a comparison pixel block;
[0123] Specifically, the method for selecting and comparing pixel blocks is:
[0124] If there is overlap between the hole and the left edge of the middle view, and the corresponding edge refers to the right edge of the hole, then select a comparison pixel block in the area on the right of the hole, and in the order from left...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com