CN102324104B - Space structure modeling method and system based on single-image defocusing information - Google Patents
Space structure modeling method and system based on single-image defocusing information Download PDFInfo
- Publication number
- CN102324104B CN102324104B CN 201110149887 CN201110149887A CN102324104B CN 102324104 B CN102324104 B CN 102324104B CN 201110149887 CN201110149887 CN 201110149887 CN 201110149887 A CN201110149887 A CN 201110149887A CN 102324104 B CN102324104 B CN 102324104B
- Authority
- CN
- China
- Prior art keywords
- image
- function
- diameter
- space structure
- point spread
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The invention discloses a space structure modeling method and system based on single-image defocusing information. The method comprises the steps of: 1, partitioning a single image; and 2, determining a clear image block through calculation, assigning a value to the clear image block, the value is the distance u from a scene to a lens, f is a focus, sigmate is the diameter of a blur circle, N is equal to f/D, D is the diameter of aperture, and u0 is a distance from a focusing plane to the lens. The invention can be used for establishing a space structure model of the scene by only needing one image with small focus depth, has a wide application range, and can realize real-time calculation because a linear operation is mainly adopted.
Description
Technical field
The present invention relates to computer vision and image processing field, relate in particular to a kind of space structure modeling method and system based on the single image defocus information.
Background technology
The space structure of asking for scene according to the defocus information of image is a kind of important method in the monocular stereo technology, is proposed in 1987 by Pentland the earliest.Imaging system needs to increase aperture in order to increase light-inletting quantity, causes away from the object image-forming of focussing plane fuzzy.For diffracting effect is not clearly imaging system, and the point spread function of imaging system forms the circle of confusion.The diameter of the circle of confusion that produces according to pointolite and the parameter of imaging system can calculate object distance.Generally speaking, foreground object is positioned on the focussing plane.The diameter σ of the circle of confusion and the relation derivation of object distance u are as follows:
Wherein v is an image distance, v
0Be the distance of camera lens to sensor plane.According to the lens imaging formula
(f is a focal length) and (1) obtain
Wherein D is a diaphragm diameter, and N is the f number.The f of imaging system and N can know, but v
0The unknown, therefore it is changed to camera lens to focussing plane apart from u
0:
The validity of asking for the space structure of scene according to the defocus information of image has obtained proof in theory.Out-of-focus image calculating scene depth by the large aperture lens shooting is of equal value with calculating scene depth with binocular camera, and the diameter of monocular camera aperture is equivalent to the base length of binocular camera.Difficult point is how to calculate the fog-level of picture point.If jump in brightness point position in the known scene, the second derivative that can pass through brightness of image is estimated the diameter of the circle of confusion.But generally the information of scene is unknown, and the multiple image of therefore general same viewpoint of employing and brightness, different focal compares.At present the problem of asking for the space structure of scene according to the defocus information of image has been defaulted as two width of cloth by same viewpoint with the epigraph restoration scenario degree of depth.This conditional request scene must be static, has therefore limited this The Application of Technology prospect.
Summary of the invention
At the above-mentioned problems in the prior art, the invention provides a kind of space structure modeling method and system based on the single image defocus information.
The invention provides a kind of space structure modeling method, comprising based on the single image defocus information:
Step 1 is carried out piecemeal to single image;
Step 2 is determined the distinct image piece by calculating, and to this distinct image piece assignment; This value for scene arrive camera lens apart from u,
F is a focal length, and σ is the diameter of the circle of confusion, and N=f/D, D are diaphragm diameter, u
0Be the distance of focussing plane to camera lens.
In one example, step 2 comprises:
Step 20, the diameter of set point spread function;
Step 21 for the point spread function of setting diameter, is calculated the rectangular projection image that the image block of choosing arrives the space of its generation;
Step 22 is subtracted each other rectangular projection image and selected image block, if difference greater than predetermined value, then this selected image block is the distinct image piece;
Step 23 is to distinct image piece assignment.
In one example, in the step 1, single image is carried out piecemeal according to the principle that attribute is similar.
In one example, in the step 20, the diameter of point spread function is n, point spread function H
n(x, y)=φ
n(x) φ
n(y), function phi
n(t) obtain φ by generating function φ (t) convergent-divergent
n(t)=φ (t/n); Generating function φ (t) is Gaussian function or Battle-Lemari é wavelet function or Airy Disk function.
In one example, in the step 21, the rectangular projection image
I is selected image block,
Be analysis filter, h is a reconstruction filter.
The invention provides a kind of space structure modeling, comprising based on the single image defocus information:
Divide module unit, be used for single image is carried out piecemeal;
The assignment unit is used for determining the distinct image piece by calculating, and to this distinct image piece assignment; This value for scene arrive camera lens apart from u,
F is a focal length, and σ is the diameter of the circle of confusion, and N=f/D, D are diaphragm diameter, u
0Distance for focussing plane.
In one example, the assignment unit is used for the diameter of set point spread function; For the point spread function of setting diameter, calculate the rectangular projection image that the image block of choosing arrives the space of its generation; Rectangular projection image and selected image block are subtracted each other, if difference greater than predetermined value, then this selected image block is the distinct image piece.
In one example, divide module unit, be used for single image being carried out piecemeal according to the similar principle of attribute.
In one example, the diameter of point spread function is n, point spread function H
n(x, y)=φ
n(x) φ
n(y), function phi
n(t) obtain φ by generating function φ (t) convergent-divergent
n(t)=φ (t/n); Generating function φ (t) is Gaussian function or Battle-Lemari é wavelet function or Airy Disk function.
In one example, rectangular projection image
I is selected image block,
Be analysis filter, h is a reconstruction filter.
The present invention only needs the image of the little depth of field of a width of cloth just can set up the space-filling model of scene, applied range, and mainly adopt linear operation, thereby can realize real-time calculating.
Description of drawings
Come the present invention is described in further detail below in conjunction with accompanying drawing, wherein:
Fig. 1 is the space structure modeling method flow process based on the single image defocus information provided by the invention;
Fig. 2 is the test picture that the present invention uses;
Fig. 3 a-Fig. 3 f is based on the Error Graph at different levels of test picture.
Embodiment
A kind of space structure modeling method based on the single image defocus information that the present invention proposes may further comprise the steps:
At first, according to the similar principle of attribute image is carried out piecemeal;
Secondly, set the ascending variation of diameter of the point spread function of optical imaging system; For the point spread function of given diameter, computed image promptly obtains the image of certain fog-level in the rectangular projection of its span; Subtract each other with original image then, extract the clear part of image, thereby image is divided into step by step from clear to fuzzy zone;
At last, by the calculation of parameter scene of the diameter of point spread function and optical imaging system distance, give the not assignment piecemeal under the clear area to camera lens.
A kind of space structure modeling method detailed process based on the single image defocus information of the present invention may further comprise the steps as shown in Figure 1:
In the step 102,, calculate the analysis filter and the reconstruction filter of its span according to the point spread function of given diameter.
If diameter is the point spread function H of n
n(x y) can be separated into
H
n(x,y)=φ
n(x)φ
n(y)。(4)
And function phi
n(t) get by generating function φ (t) convergent-divergent:
φ
n(t)=φ(t/n)。(5)
Generating function can be measured by experiment, then is Airy Disk function for desirable circular iris.But adopt Gaussian function usually
For convenience of calculation adopts Battle-Lemari é small echo (shown in the following embodiment).
The Fourier transform of analysis filter is:
The Fourier transform of reconstruction filter is:
h(p,q)=h(p)h(q),
P, q are natural number.(8)
In the step 103, image and analysis filter are carried out convolution, and then carry out convolution, intercepting and the equal-sized center section of original image, the rectangular projection of asking exactly with reconstruction filter.If image array is that (x, y), then projected image is I
Error is:
Wherein, analysis filter
Can obtain by formula (6)-(8) with the frequency-domain expression of reconstruction filter h.According to Frame Theory, be the point spread function H of n with diameter
n(x, y) I in Biao Shi the image
nError be minimum.
Error is greater than preset value (be generally clear value 20%), and then regarding as this part is distinct image.
3) by the calculation of parameter scene of the diameter of point spread function and the optical imaging system distance to camera lens, computing formula is as follows, gives the not assignment piecemeal under the clear area then.
Embodiment of the present invention adopts one shown in Figure 2 1310 * 874 image that the space structure modeling method that the present invention is based on the single image defocus information is verified:
1) according to the similar principle of attribute image is carried out piecemeal.Entire image is divided into some difform zonules, and the similar neighbor of feature (as color, texture, histogram etc.) incorporates the same area into.
2) diameter of setting the point spread function of optical imaging system increases progressively with 2 power, and promptly 2,4,8,16 ...Adopt separable point spread function H
n(x, y)=φ
n(x) φ
n(y), wherein
Because the diameter of point spread function increases progressively with 2 power, so corresponding wave filter can obtain with the method for inserting 0.Note h
k(n) insert 2 between per two points of wave filter h (n)
k-10 wave filter that obtains.Image decomposed step by step obtain
A wherein
0=I.Rebuild the rectangular projection image:
Error Graph at different levels are shown in Fig. 3 a-Fig. 3 f.
3), give the not assignment piecemeal under the clear area then by the calculation of parameter scene of the diameter of point spread function and optical imaging system distance to camera lens.
The above only is a preferred implementation of the present invention, but protection domain of the present invention is not limited thereto.Any those skilled in the art all can carry out suitable change or variation to it in technical scope disclosed by the invention, and this change or variation all should be encompassed within protection scope of the present invention.
Claims (8)
1. space structure modeling method based on the single image defocus information is applied to the monocular stereo technology of computer vision and image processing field, it is characterized in that, comprising:
Step 1 is carried out piecemeal to single image;
Step 2 is determined the distinct image piece by calculating, and to this distinct image piece assignment; This value for scene arrive camera lens apart from u,
F is a focal length, and σ is the diameter of the circle of confusion, and N=f/D, D are diaphragm diameter, u
0Be the distance of focussing plane to camera lens,
Wherein, step 2 comprises:
Step 20, the diameter of set point spread function;
Step 21 for the point spread function of setting diameter, is calculated the rectangular projection image that the image block of choosing arrives the space of its generation;
Step 22 is subtracted each other rectangular projection image and selected image block, if difference greater than predetermined value, then this selected image block is the distinct image piece;
Step 23 is to distinct image piece assignment.
2. space structure modeling method as claimed in claim 1 is characterized in that, in the step 1, according to the principle that attribute is similar single image is carried out piecemeal.
3. space structure modeling method as claimed in claim 1 is characterized in that, in the step 20, the diameter of point spread function is n, point spread function H
n(x, y)=φ
n(x) φ
n(y), function phi
n(t) obtain φ by generating function φ (t) convergent-divergent
n(t)=φ (t/n); Generating function φ (t) is Gaussian function or Battle-Lemari é wavelet function or Airy Disk function.
5. space structure modeling based on the single image defocus information is applied to the monocular stereo technology of computer vision and image processing field, it is characterized in that, comprising:
Divide module unit, be used for single image is carried out piecemeal;
The assignment unit is used for determining the distinct image piece by calculating, and to this distinct image piece assignment; This value for scene arrive camera lens apart from u,
F is a focal length, and σ is the diameter of the circle of confusion, and N=f/D, D are diaphragm diameter, u
0Be the distance of focussing plane to camera lens,
Wherein, the assignment unit is used for the diameter of set point spread function; For the point spread function of setting diameter, calculate the rectangular projection image that the image block of choosing arrives the space of its generation; Rectangular projection image and selected image block are subtracted each other, if difference greater than predetermined value, then this selected image block is the distinct image piece.
6. space structure modeling as claimed in claim 5 is characterized in that, divides module unit, is used for according to the similar principle of attribute single image being carried out piecemeal.
7. space structure modeling as claimed in claim 5 is characterized in that, the diameter of point spread function is n, point spread function H
n(x, y)=φ
n(x) φ
n(y), function phi
n(t) obtain φ by generating function φ (t) convergent-divergent
n(t)=φ (t/n); Generating function φ (t) is Gaussian function or Battle-Lemari é wavelet function or AiryDisk function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110149887 CN102324104B (en) | 2011-06-03 | 2011-06-03 | Space structure modeling method and system based on single-image defocusing information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110149887 CN102324104B (en) | 2011-06-03 | 2011-06-03 | Space structure modeling method and system based on single-image defocusing information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102324104A CN102324104A (en) | 2012-01-18 |
CN102324104B true CN102324104B (en) | 2013-07-24 |
Family
ID=45451843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110149887 Active CN102324104B (en) | 2011-06-03 | 2011-06-03 | Space structure modeling method and system based on single-image defocusing information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102324104B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514589B (en) * | 2013-10-18 | 2017-02-22 | 清华大学深圳研究生院 | Filtering method in image recovery |
CN110992304B (en) * | 2019-10-30 | 2023-07-07 | 浙江力邦合信智能制动系统股份有限公司 | Two-dimensional image depth measurement method and application thereof in vehicle safety monitoring |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101545774B (en) * | 2009-04-30 | 2011-04-20 | 上海交通大学 | Method for measuring distance based on single image |
-
2011
- 2011-06-03 CN CN 201110149887 patent/CN102324104B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN102324104A (en) | 2012-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Fahringer et al. | Volumetric particle image velocimetry with a single plenoptic camera | |
US8340456B1 (en) | System and method for depth from defocus imaging | |
KR101978172B1 (en) | Method and apparatus for converting depth image to high-resolution | |
US8792014B2 (en) | Image processing apparatus and image pickup apparatus | |
US8773550B2 (en) | Range measurement using multiple coded apertures | |
US20110267508A1 (en) | Digital camera with coded aperture rangefinder | |
CN102170526B (en) | Method for calculation of defocus fuzzy core and sharp processing of defocus fuzzy image of defocus fuzzy core | |
CN107025660B (en) | Method and device for determining image parallax of binocular dynamic vision sensor | |
JP2013061743A (en) | Image processing apparatus and image processing method | |
CN106296811A (en) | A kind of object three-dimensional reconstruction method based on single light-field camera | |
CN106952247B (en) | Double-camera terminal and image processing method and system thereof | |
WO2011137140A1 (en) | Range measurement using a coded aperture | |
Rajagopalan et al. | Space-variant approaches to recovery of depth from defocused images | |
JP5911292B2 (en) | Image processing apparatus, imaging apparatus, image processing method, and image processing program | |
US20100118125A1 (en) | Method and apparatus for generating three-dimensional (3d) image data | |
EP2687892A1 (en) | Method and apparatus for simulating depth of field (DOF) in microscopy | |
CN102324104B (en) | Space structure modeling method and system based on single-image defocusing information | |
KR20200075380A (en) | Method and system for re-sampling of point cloud using voronoi tessellation and k-nearest neighbor algorithm | |
JP2020506390A (en) | Method and optical system for obtaining tomographic distribution of wavefront of electromagnetic field | |
US10101707B2 (en) | Method and apparatus for correcting distortion of 3D hologram | |
Takemura et al. | Depth from defocus technique based on cross reblurring | |
CN103873773A (en) | Primary-auxiliary synergy double light path design-based omnidirectional imaging method | |
CN114322823B (en) | Three-dimensional measurement system and phase error compensation method | |
CN112750156B (en) | Light field imaging system, processing method and device | |
CN109257524B (en) | Full-focus scanning imaging method based on Wigner distribution function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |