@ -153,7 +153,9 @@ Finds the camera intrinsic and extrinsic parameters from several views of a cali
* **CV_CALIB_RATIONAL_MODEL** Coefficients k4, k5, and k6 are enabled. To provide the backward compatibility, this extra flag should be explicitly specified to make the calibration function use the rational model and return 8 coefficients. If the flag is not set, the function computes and returns only 5 distortion coefficients.
:param criteria:Termination criteria for the iterative optimization algorithm.
:param criteria:Termination criteria for the iterative optimization algorithm.
:param term_crit:same as ``criteria``.
The function estimates the intrinsic camera
parameters and extrinsic parameters for each of the views. The algorithm is based on [Zhang2000] and [BoughuetMCT]. The coordinates of 3D object points and their corresponding 2D projections
The function creates a histogram of the specified size and returns a pointer to the created histogram. If the array ``ranges`` is 0, the histogram bin ranges must be specified later via the function :ocv:cfunc:`SetHistBinRanges`. Though :ocv:cfunc:`CalcHist` and :ocv:cfunc:`CalcBackProject` may process 8-bit images without setting bin ranges, they assume they are equally spaced in 0 to 255 bins.
GetHistValue*D
--------------
GetHistValue_?D
---------------
Returns a pointer to the histogram bin.
..ocv:cfunction:: float cvGetHistValue_1D(CvHistogram hist, int idx0)
print>>sys.stderr,"RST parser warning: unexisting parameter \"%s\" of \"%s\" is documented. File: %s (line %s)"%(p,func["name"],func["file"],func["line"])
ifpnotinparams_blacklist.get(func["name"],[]):
print>>sys.stderr,"RST parser warning: unexisting parameter \"%s\" of \"%s\" is documented. File: %s (line %s)"%(p,func["name"],func["file"],func["line"])
returnTrue
defnormalize(self,func):
ifnotfunc:
returnfunc
func["name"]=self.normalizeText(func["name"])
fnname=func["name"]
fnname=self.normalizeText(fnname)
fnname=re.sub(r'_\?D$',"_nD",fnname)# tailing _?D can be mapped to _nD
fnname=re.sub(r'\?D$',"ND",fnname)# tailing ?D can be mapped to ND
fnname=re.sub(r'\(s\)$',"s",fnname)# tailing (s) can be mapped to s
func["name"]=fnname
if"method"infunc:
func["method"]=self.normalizeText(func["method"])
if"class"infunc:
@ -416,6 +454,11 @@ class RstParser(object):
cmt=self.normalizeText(comment)
ifcmt:
params[name]=cmt
# expand some wellknown params
pmap=params_mapping.get(fnname)
ifpmap:
forname,aliasinpmap.items():
params[name]=params[alias]
func["params"]=params
if"seealso"infunc:
seealso=[]
@ -450,7 +493,7 @@ class RstParser(object):
func["name"]=fname[4:]
func["method"]=fname[4:]
elifshow_warnings:
print>>sys.stderr,"RST parser warning: invalid definition of old C function \"%s\" - section name is \"%s\" instead of \"%s\". File: %s (line %s)"%(fname,func["name"],fname[6:],func["file"],func["line"])
print>>sys.stderr,"\"%s\" - section name is \"%s\" instead of \"%s\". File: %s (line %s)"%(fname,func["name"],fname[6:],func["file"],func["line"])