CN102496170A - Method for decomposing sampling task - Google Patents

Method for decomposing sampling task Download PDF

Info

Publication number
CN102496170A
CN102496170A CN 201110400054 CN201110400054A CN102496170A CN 102496170 A CN102496170 A CN 102496170A CN 201110400054 CN201110400054 CN 201110400054 CN 201110400054 A CN201110400054 A CN 201110400054A CN 102496170 A CN102496170 A CN 102496170A
Authority
CN
China
Prior art keywords
sequence
integral
sampled point
mod
niederreiter
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.)
Pending
Application number
CN 201110400054
Other languages
Chinese (zh)
Inventor
阳赛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN 201110400054 priority Critical patent/CN102496170A/en
Publication of CN102496170A publication Critical patent/CN102496170A/en
Priority to PCT/CN2012/084748 priority patent/WO2013082995A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/06Ray-tracing

Abstract

The invention provides a computer image rendering method. The method is based on a (t, s) sequence, the decomposition of a sampling task is realized through layered displacement operation. Compared with a method of carrying out grouping on the (t, s) sequence in a selected dimension so as to realize the decomposition of the sampling task, the computer image rendering method provided by the invention has the advantages that grouping is not needed to be carried out on sampling points in an additional dimension, and a generating matrix of the (t, s) sequence also has no limited condition, so that the method can be used for any type of (t, s) sequence, and the quality of the sampling points is not influenced by the quantity of parallel processing units.

Description

A kind of method that is used for the decomposition of sampling task
Technical field
The present invention relates to a kind of computer picture rendering intent, particularly a kind of rendering intent that utilizes quasi-random numbers (quasi-random numbers) to confirm sampling point position.
Background technology
Play up the field at computer picture, for simulating various effect of shadow, for example, the depth of field, motion blur, global illumination etc., need carry out evaluation to the integration with following form:
∫ I . . . ∫ I f ( x ( 1 ) , x ( 2 ) , . . . , x ( S ) ) dx ( 1 ) dx ( 2 ) . . . dx ( S ) - - - ( 1 )
Wherein I is the unit interval, function f () by the contextual data decision of the effect that will simulate and input.Formula (1) generally can't accurately be found the solution, and in the render process of reality, always is to use the method for numerical evaluation to ask its approximate value:
∫ I . . . ∫ I f ( x ( 1 ) , x ( 2 ) , . . . , x ( S ) ) dx ( 1 ) dx ( 2 ) . . . dx ( S ) ≈ 1 N Σ i = 0 N - 1 f ( x i ( 1 ) , x i ( 2 ) , . . . , x i ( S ) ) - - - ( 2 )
The method of confirming sampling point position
Figure BSA00000629162600013
in the formula (2) can be divided into two types; One type of method that is to use random number, the another kind of method that is to use quasi-random numbers.Quasi-random numbers is a kind of distribution pattern with satisfactory texture, and the efficient higher than random number can be provided in the Integral Estimation of formula (2).
(t, s) sequence is a kind of main quasi-random numbers type, generation b system (t, s) method of the j of i some dimension component is following in the sequence:
x i ( j ) = ( b - 1 , b - 2 , . . . b - M ) C ( j ) b 0 ( i ) b 1 ( i ) · · · b M - 1 ( i ) - - - ( 3 )
Wherein
Figure BSA00000629162600015
For (t, s) j of sequence supports one's family into matrix (generator matrices), its coefficient
Figure BSA00000629162600016
Be Galois field F bMiddle element.b r(i) the r bit digital of expression integer i under the b system is represented, promptly
Figure BSA00000629162600017
M is selected maximal accuracy under the b system is represented.
(t, s) example of sequence comprises: Sobol sequence, Faure sequence, Niederreiter sequence and Niederreiter-Xing sequence etc.It is different that (t, s) difference of sequence is that the building method of its generator matrix is different.
Parallel computation is the another kind of method that improves formula (2) efficient, and this method is decomposed into two or more parts with the sampling to function f () in the formula (2), each part transfer to one independently parallel processing element handle:
∫ I . . . ∫ I f ( x ( 1 ) , x ( 2 ) , . . . , x ( S ) ) dx ( 1 ) dx ( 2 ) . . . dx ( S ) ≈ 1 N Σ i = 0 N - 1 f ( x i ( 1 ) , x i ( 2 ) , . . . , x i ( S ) )
= 1 N Σ d = 1 D Σ i d = 0 N d - 1 f ( x i d ( 1 ) , x i d ( 2 ) , . . . , x i d ( S ) ) - - - ( 4 )
Wherein,
Figure BSA00000629162600023
Be the quantity of sampled point, D is the quantity of parallel processing element, N dBe the sampled point quantity that d processing unit distributes.The different sampled point quantity that processing unit distributed can be the same or different.
Any quasi-random numbers all can directly be used for formula (2), then must do suitable conversion but will be used for formula (4).
For obtaining to use the benefit of quasi-random numbers and parallel computation simultaneously; U.S. Patent application US Patent ApplicationNo.12/432; Providing a kind of 498 open November 4 2010 date passes through (f, s) sequence is divided into groups in a selected dimension to realize the method to the decomposition of sampling task.This method mainly contains following defective:
Need an extra dimension to realize grouping to sampled point;
Used (f, s) generator matrix of sequence must be for reversible, thereby as the Niederreiter-Xing sequence this do not satisfy this condition (t, s) sequence then can't be used;
For obtaining best sampling quality, the quantity of parallel processing element must for used (f, the s) power of the radix of sequence, promptly
Figure BSA00000629162600024
Satisfy D=b m, wherein D is the quantity of parallel processing element, b is that (when this condition did not satisfy, the quality of sampled point can descend for f, the s) radix of sequence.
Summary of the invention
The invention provides a kind of computer picture rendering intent, this method is based on (f, s) sequence realize the decomposition to the sampling task through the hierarchical replacement operator.
Realize the scheme of technical purpose of the present invention, may further comprise the steps:
The integration that needs evaluation during (A) for rendering image
∫ I . . . ∫ I f ( x ( 1 ) , x ( 2 ) , . . . , x ( S ) ) dx ( 1 ) dx ( 2 ) . . . dx ( S )
Use the method for numerical evaluation to ask its approximate value, may further comprise the steps:
To be decomposed into two or more parts to the sampling of function f (), each part transfer to one independently parallel processing element handle
∫ I . . . ∫ I f ( x ( 1 ) , x ( 2 ) , . . . , x ( S ) ) dx ( 1 ) dx ( 2 ) . . . dx ( S ) ≈ 1 N Σ d = 1 D Σ i d = 0 N d - 1 f ( x i d ( 1 ) , x i d ( 2 ) , . . . , x i d ( S ) ) ;
Wherein,
Figure BSA00000629162600027
Be the quantity of sampled point, D is the quantity of parallel processing element, N dBe the sampled point quantity that d processing unit distributes, the different sampled point quantity that processing unit distributed can be the same or different; (B) confirm variable described in the step (A)
Figure BSA00000629162600031
The method of value, 0≤i wherein d≤N d-1,1≤d≤D may further comprise the steps:
Will ( x i d ( 1 ) , x i d ( 2 ) , . . . , x i d ( S ) ) Be grouped into ( x i d ( p 0 + 1 ) , . . . x i d ( p 1 ) , x i d ( p 1 + 1 ) , . . . , x i d ( p 2 ) , . . . , x i d ( p q + 1 ) , . . . , x i d ( p q + 1 ) ) , P wherein 0=0, p Q+1=s, 0<p V+1-p v≤s Max, 0≤v≤q, s MaxBe selected largest;
For set of variables
Figure BSA00000629162600034
0≤v≤q wherein, confirm that the method for its value may further comprise the steps:
x i d ( p v + Δ ) = h Δ ( i ~ i d , d ( v ) ) , 0≤v≤q,1≤Δ≤p v+1-p v
i ~ i d , d ( v ) = π v ( i d D + d ) , 0≤v≤q;
Wherein,
h j(i) :=(b -1, b -2..., b -M) C (j)(b 0(i), b 1(i) ..., b M-1(i)) T, wherein
Figure BSA00000629162600037
Be that (t, s) j of sequence supports one's family into matrix to a b system, b r(i) the r bit digital of expression integer i under the b system is represented, promptly
Figure BSA00000629162600038
M is selected maximal accuracy under the b system is represented;
π v() is the hierarchical replacement operator, to an integer
Figure BSA00000629162600039
Figure BSA000006291626000310
Wherein
b M - 1 ( v ) ( x ) = ( b M - 1 ( x ) + ξ v ) , mod b
b M - 2 ( v ) ( x ) = ( b M - 2 ( x ) + ξ v , b M - 1 ( x ) ) , mod b
b M - 3 ( v ) ( x ) = ( b M - 3 ( x ) + ξ v , b M - 1 ( x ) , b M - 2 ( x ) ) , mdb
b 0 ( v ) ( x ) = · · · ( b 0 ( x ) + ξ v , b M - 1 ( x ) , b M - 2 ( x ) , . . . , b 1 ( x ) ) , mod b
ξ wherein v, ξ V, 0, ξ V, 1..., ξ V, b-1, ξ V, 0,0..., ξ V, b-1, b-1..., ξ V, b-1..., b-1,0≤v≤q is separate random number.
The present invention has the following advantages:
(t, s) sequence realize the decomposition to the sampling task through the hierarchical replacement operator owing to the present invention is based on; With through to (t, s) sequence divides into groups the method for the decomposition of sampling task to be compared realizing in a selected dimension, the present invention need not divide into groups to sampled point in an extra dimension; To (t, s) the also unrestricted condition of the generator matrix of sequence can be used for the (t of any kind; S) sequence, the quality of sampled point also do not receive the influence of parallel processing element quantity.
Embodiment
Below in conjunction with embodiment the present invention is elaborated.
Table 1 has been listed the C++ example code that calculates 2 system Niederreiter sequences:
Table 1
Figure BSA00000629162600041
In code shown in the table 1, maximal accuracy is made as 32.The reason of setting a maximal accuracy is, in numerical evaluation, and both can not the also unnecessary calculating of carrying out infinite precision.
In code shown in the table 1, largest is made as 12 dimensions.The effect of setting largest is, on the one hand, calculate (t, s) data of the generator matrix that need use of sequence need be stored in the computer-readable medium in advance, and any equipment in the reality all can not the unlimited many data of storage; On the other hand, though the quality of quasi-random numbers is superior to random number, along with the increase of dimension, the quality of quasi-random numbers can descend gradually, thus in reality the infinite dimensional quasi-random numbers of also unnecessary use.
(choosing of largest will decide according to the maximal accuracy of its mass parameter (quality parameters) t and setting for t, s) sequence, and its principle is that the mass parameter of selected largest should not surpass the maximal accuracy of setting to different.
Table 2 has been listed 2 system Sobol sequences, Niederreiter sequence and the mass parameter of Niederreiter-Xing sequence in different dimensions.The little expression quality of this more parameters is high more, and minimum is 0.
Table 2
Dimension 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 20
Sobol 0 0 1 3 5 8 11 15 19 23 27 31 35 40 45 71
Niederreiter 0 0 1 3 5 8 11 14 18 22 26 30 34 38 43 68
Niederreiter-Xing 0 0 1 1 2 3 4 5 6 8 9 10 11 13 15 21
Can find out from last table; For 2 system Sobol sequences and Niederreiter sequence, if maximal accuracy is made as 32, then largest should be elected 12 dimensions as; Because the Sobol sequence of 12 dimensions and the mass parameter of Niederreiter sequence are respectively 31 and 30; Do not surpass 32, and the Sobol sequence of 13 dimensions and the mass parameter of Niederreiter sequence are respectively 35 and 34, have surpassed 32.
Use (t, s) sequence need be set a largest, when the dimension of the required sampled point of rendering image surpasses this setting value; Need be to (t; S) sequence number of sequence is carried out a hierarchical replacement operator, and the sequence number after the displacement can be used for, and former (t, s) sequence generates new component.In addition, also to use this hierarchical replacement operator to the decomposition of sampling task.Table 3 has been listed the C++ example code of realizing this hierarchical replacement operator:
Table 3
Figure BSA00000629162600051
Figure BSA00000629162600061
Table 4 has been listed based on 2 system Niederreiter sequences, realizes the C++ example code of the decomposition of sampling task has wherein been used at code shown in table 1 and the table 3 through the hierarchical replacement operator:
Table 4
Figure BSA00000629162600062
Figure BSA00000629162600071
Figure BSA00000629162600081
Table 5 has been listed the C++ example code of code shown in the use table 4 in render process:
Table 5
Figure BSA00000629162600082
In code shown in the table 4, to each divide into groups all to have used identical (t, s) sequence of all dimensions of sampled point component; I.e. 2 system Niederreiter sequences; Remove to use identical (t, s) sequence also can be used radix identical but (t, s) sequence that type is different outward; For example, 2 system Niederreiter-Xing sequences.Though the quality of Niederreiter-Xing sequence is superior to Sobol sequence and Niederreiter sequence; But there is a restriction in the use; Promptly must confirm total sampling dimension in advance; Thereby suitable play up as image in a kind of blanket method, if but the dimension of current group is known and do not have the more sampling of higher-dimension, then available Niederreiter-Xing sequence replacement Niederreiter sequence is to obtain better rendering effect.
It is a kind of that (t, s) expansion of sequence is referred to as randomization (t, s) (randomized (t, s) sequences) its role is to estimate the error size of integral approach value to sequence.Though needn't go to estimate the error size of integral approach value during rendering image; But this method of randomization is used in the flaw of alleviating in the playing up of animation in the image; The pictures different frame uses different random numbers that sampled point is carried out randomization in promptly animation being played up, to desalinate the flaw pattern that possibly exist.
Table 6 has been listed the C++ example code that on the basis of code shown in the table 4, has increased the randomization step:
Table 6
Figure BSA00000629162600083
Figure BSA00000629162600091

Claims (4)

1. a computer picture rendering intent is characterized by, and may further comprise the steps:
The integration that needs evaluation during (A) for rendering image
∫ I . . . ∫ I f ( x ( 1 ) , x ( 2 ) , . . . , x ( S ) ) dx ( 1 ) dx ( 2 ) . . . dx ( S )
Use the method for numerical evaluation to ask its approximate value, may further comprise the steps:
To be decomposed into two or more parts to the sampling of function f (), each part transfer to one independently parallel processing element handle
∫ I . . . ∫ I f ( x ( 1 ) , x ( 2 ) , . . . , x ( S ) ) dx ( 1 ) dx ( 2 ) . . . dx ( S ) ≈ 1 N Σ d = 1 D Σ i d = 0 N d - 1 f ( x i d ( 1 ) , x i d ( 2 ) , . . . , x i d ( S ) ) ;
Wherein,
Figure FSA00000629162500013
Be the quantity of sampled point, D is the quantity of parallel processing element, N dBe the sampled point quantity that d processing unit distributes, the different sampled point quantity that processing unit distributed can be the same or different;
(B) confirm variable described in the step (A)
Figure FSA00000629162500014
The method of value, 0≤i wherein d≤N d-1,1≤d≤D may further comprise the steps:
Will ( x i d ( 1 ) , x i d ( 2 ) , . . . , x i d ( S ) ) Be grouped into ( x i d ( p 0 + 1 ) , . . . x i d ( p 1 ) , x i d ( p 1 + 1 ) , . . . , x i d ( p 2 ) , . . . , x i d ( p q + 1 ) , . . . , x i d ( p q + 1 ) ) , P wherein 0=0, p Q+1=s, 0<p V+1-p v≤s Max, 0≤v≤q, s MaxBe selected largest;
For set of variables
Figure FSA00000629162500017
0≤v≤q wherein, confirm that the method for its value may further comprise the steps:
x i d ( p v + Δ ) = h Δ ( i ~ i d , d ( v ) ) , 0≤v≤q,1≤Δ≤p v+1-p v
i ~ i d , d ( v ) = π v ( i d D + d ) , 0≤v≤q;
Wherein,
h j(i) :=(b -1, b -2..., b -M) C (j)(b 0(i), b 1(i) ..., b M, b M-1(i)) T, wherein
Figure FSA000006291625000110
Be that (t, s) j of sequence supports one's family into matrix to a b system, b r(i) the r bit digital of expression integer i under the b system is represented, promptly
Figure FSA000006291625000111
M is selected maximal accuracy under the b system is represented;
π v() is the hierarchical replacement operator, to an integer
Figure FSA000006291625000112
Figure FSA000006291625000113
Wherein
b M - 1 ( v ) ( x ) = ( b M - 1 ( x ) + ξ v ) , mod b
b M - 2 ( v ) ( x ) = ( b M - 2 ( x ) + ξ v , b M - 1 ( x ) ) , mod b
b M - 3 ( v ) ( x ) = ( b M - 3 ( x ) + ξ v , b M - 1 ( x ) , b M - 2 ( x ) ) , mod b
b 0 ( v ) ( x ) = · · · ( b 0 ( x ) + ξ v , b M - 1 ( x ) , b M - 2 ( x ) , . . . , b 1 ( x ) ) , mod b
ξ wherein v, ξ V, 0, ξ V, 1..., ξ V, b-1, ξ V, 0,0..., ξ V, b-1, b-1..., ξ V, b-1 ..., b-1, 0≤v≤q is separate random number.
2. like the said method of claim 1., also comprise, each of all dimensions of sampled point component divided into groups to use identical (t, s) identical but (t, s) sequence that type is different of sequence or radix.
3. like the said method of claim 1., wherein, said (t, s) sequence comprises Sobol sequence, Faure sequence, Niederreiter sequence and Niederreiter-Xing sequence.
4. like the said method of claim 1., wherein, said (t, s) sequence also comprises randomized (t, s) sequence.
CN 201110400054 2011-12-06 2011-12-06 Method for decomposing sampling task Pending CN102496170A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201110400054 CN102496170A (en) 2011-12-06 2011-12-06 Method for decomposing sampling task
PCT/CN2012/084748 WO2013082995A1 (en) 2011-12-06 2012-11-16 Method for decomposing sampling task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110400054 CN102496170A (en) 2011-12-06 2011-12-06 Method for decomposing sampling task

Publications (1)

Publication Number Publication Date
CN102496170A true CN102496170A (en) 2012-06-13

Family

ID=46187992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110400054 Pending CN102496170A (en) 2011-12-06 2011-12-06 Method for decomposing sampling task

Country Status (2)

Country Link
CN (1) CN102496170A (en)
WO (1) WO2013082995A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020203A (en) * 2012-12-05 2013-04-03 北京奇虎科技有限公司 Method and device for processing data
WO2013082995A1 (en) * 2011-12-06 2013-06-13 Yang Sai Method for decomposing sampling task

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2311067T3 (en) * 2001-06-07 2009-02-01 Mental Images Gmbh RESTITUTION OF IMAGES USING THE METHODOLOGY OF THE RUSSIAN ROULETTE TO EVALUATE GLOBAL LIGHTING.
GB0426170D0 (en) * 2004-11-29 2004-12-29 Falanx Microsystems As Processing of computer graphics
GB0819570D0 (en) * 2008-10-24 2008-12-03 Advanced Risc Mach Ltd Methods of and apparatus for processing computer graphics
US8266623B2 (en) * 2009-04-29 2012-09-11 Nvidia Corporation System, method, and computer program product for decomposing a sampling task into a plurality of jobs
CN102496170A (en) * 2011-12-06 2012-06-13 阳赛 Method for decomposing sampling task

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013082995A1 (en) * 2011-12-06 2013-06-13 Yang Sai Method for decomposing sampling task
CN103020203A (en) * 2012-12-05 2013-04-03 北京奇虎科技有限公司 Method and device for processing data
CN103020203B (en) * 2012-12-05 2017-04-12 北京奇虎科技有限公司 Method and device for processing data

Also Published As

Publication number Publication date
WO2013082995A1 (en) 2013-06-13

Similar Documents

Publication Publication Date Title
Vermersch et al. Unitary n-designs via random quenches in atomic Hubbard and spin models: Application to the measurement of Rényi entropies
Diudea et al. Leapfrog and related operations on toroidal fullerenes
JP2020537191A5 (en)
JP2011041326A5 (en)
TW200710596A (en) Method of selecting a grid model for correcting a process recipe for grid deformations in a lithographic apparatus and lithographic assembly using the same
JP2007043488A5 (en)
CN101836430B (en) Method and apparatus for compressing image signal
CN102496170A (en) Method for decomposing sampling task
CN102684871A (en) Quick parallel generating method for multidimensional pseudo-random sequence with uniform distribution characteristics
CN101127911A (en) A block size computing method and transmission method for cylinder panorama video code
CN102496173A (en) Digimigration method used for separating sampling points
CN102496172A (en) Method for generating high-dimensional weight of sampling point
CN102496171A (en) Hierarchical replacement method for (t, s) sequences
Zeng ApaTools: a software toolbox for approximate polynomial algebra
CN103646376A (en) Digital watermark image generation method
CN104777329B (en) A kind of linear programming algorithm for the reconstruct of particle image velocimetry three dimensional particles field
CN110838908B (en) Image encryption and decryption method based on GF matrix transformation and random hierarchical fusion
CN101442320B (en) Design plan for two-dimension interlacing device based on pseudo-random sequence
JP2007041199A5 (en)
CN1373501A (en) Method for mfg. complementary mask pair
Fúster-Sabater et al. Concatenated automata in cryptanalysis of stream ciphers
CN109426067B (en) Modeling method for optical proximity correction and graph weight generation method for optical proximity correction
Motiee On torsion subgroups of Whitehead groups of division algebras
Elsheikh et al. Fast computation of Smith forms of sparse matrices over local rings
Elliott et al. Quantum Schubert polynomials for the G2 flag manifold

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120613