A method of realizing depth of field effect based on opengl

A technology of depth of field and depth, applied in the field of depth of field effect based on OpenGL, can solve the problems of low efficiency of depth of field, limitation of depth of field effect, low efficiency of Gaussian blur processing, etc., and achieve the effect of improving efficiency and effect

Active Publication Date: 2017-09-19
CHINA DIGITAL VIDEO BEIJING
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The efficiency of realizing the depth of field is low, especially in the process of blurring, the Gaussian blurring method is very inefficient;
[0009] The effect of achieving depth of field is not ideal, because the Poisson distribution sampling has uncertainty, which limits the effect of depth of field

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of realizing depth of field effect based on opengl
  • A method of realizing depth of field effect based on opengl

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0047] Embodiment 1 of the present invention provides a method for realizing the depth of field effect based on OpenGL, such as figure 1 shown, including the following steps:

[0048] Step S101, acquiring original color buffer information of an image, where the original color buffer information includes depth buffer information and color buffer information.

[0049] Step S102, calculating new color buffer information according to the depth buffer info...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the present invention discloses a method for realizing the depth of field effect based on OpenGL. The method includes the following steps: acquiring the original color buffer information of the image, the original color buffer information including depth buffer information and color buffer information; Calculate new color buffer information from the buffer information and the color buffer information; calculate the Poisson distribution circle diameter of the pixels of the image, and calculate the image level information according to the Poisson distribution circle diameter of the pixels; calculate the image level information according to the original color The buffer information, the new color buffer information, the diameter of the Poisson distribution circle of the pixels and the image level information calculate the final color buffer information and render the image. In the embodiment of the present invention, by combining the OpenGL-based Mipmap principle with the Poisson distribution, image scene information of different levels is calculated to realize the depth of field, which improves the efficiency and effect of realizing the depth of field.

Description

technical field [0001] The invention relates to the field of image / video processing, in particular to a method for realizing depth-of-field effects based on OpenGL. Background technique [0002] Depth of field refers to the object distance range measured along the axis of the imaging depth of field camera that can obtain clear images in front of the camera lens or other imagers. After the focus is completed, a clear image can be formed in the range before and after the focus. This distance range before and after is called the depth of field. There is a certain length of space in front of the lens (before and after the focusing point). When the subject is located in this space, its image on the film is just between the two circles of confusion before and after the focus. The length of the space where the subject is located is called the depth of field. In other words, for the subjects in this space, the blurring degree of the image presented on the negative plane is within ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06T15/04G06T15/00
Inventor 黄裔
Owner CHINA DIGITAL VIDEO BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products