| | - alltrue = reduce(...)
- applyseparable(x, oper, passdim=None)
- Apply operation oper on all dimensions of an
arrays x. Oper should take one argument - a 1D double array and return
an array of the same size. applyseparable returns a double array
If passdim is true, the 'oper' is passed a keyword argument
'ndim' giving the dimension being processed.
- applyseparablewithcopy(x, oper, targetlen=None, passdim=None)
- Apply operation oper on all dimensions of an
arrays x. Oper should take one argument - a 1D double array and return
another 1D array not necessarily of the same size.
applyseparablewithcopy returns a double array.
If targetlen is not None, it is supposed to be the list of target
dimensions, the respective dimension will be passed to 'oper'.
If passdim is true, the 'oper' is passed a keyword argument
'ndim' giving the dimension being processed.
Currently targetlen and ndim are mutually exclusive.
- array(...)
- array(sequence, typecode=None, copy=1, savespace=0) will return a new array formed from the given (potentially nested) sequence with type given by typecode. If no typecode is given, then the type will be determined as the minimum type required to hold the objects in sequence. If copy is zero and sequence is already an array, a reference will be returned. If savespace is nonzero, the new array will maintain its precision in operations.
- bsplnevalfract(k, degree)
- Evaluates a B-spline of degree 'degree' at points
-support+1/k,..,-1/k,0,1/k,..,support-1/k
Returns a 1D float array 'kern' and the offset of the center point
- choose(...)
- choose(a, (b1,b2,...))
- convrect(x, n, bcond=4)
- Convolves 1D vector x with a centered rectangle (Haar) of
length 2*n+1
- correctflag(f, d)
- Inverse the order of the axes to pass to the C code for
splineinterpol and similar routines. d is the number of dimensions.
- cross_correlate(...)
- cross_correlate(a,v)
- cumproduct = accumulate(...)
- cumsum = accumulate(...)
- firspline(c, degree, bcond=4)
- Given B-spline coefficients (c), calculate the function values (x)
x(k)=sum c(i) spline_of_degree_N(k-i), for i=1..n
degree=0 constant, 1 linear, 2 quadratic ...
Input is scalar. Returns a flat double array
- fromstring(...)
- fromstring(string, count=None, typecode='l') returns a new 1d array initialized from the raw binary data in string. If count is not equal to None, the new array will have count elements, otherwise it's size is determined by the size of string.
- fspline(x, degree, bcond=4)
- Given values (x) of a function in points 1,2,...n,
finds coefficients c, such as for all k=1..n
x(k)=sum c(i) spline_of_degree_N(k-i), for i=1..n
i.e., finds B-spline interpolation
degree=0 constant, 1 linear, 2 quadratic ...
References :
M. Unser, A. Aldroubi and M. Eden, Fast B-spline transforms for
continuous image representation and interpolation, IEEE Trans. Pattern Anal.
Machine Intell., vol. 13, pp. 277-285, March 1991.
M. Unser, A. Aldroubi and M. Eden, B-spline signal processing. Part II :
efficient design and applications, IEEE Trans. Signal Processing, vol. 41,
pp. 834-848, February 1993.
Returns a flat double array
- mconvrect(x, n, bcond=4)
- Convolves multidimensional x with a (multidimensional) rectangle
of edge size 2*n+1
- mfirspline(c, degree, bcond=4)
- Finds function values x given B-spline interpolation coefficients
c. Works for any dimensionality. Returns a double array of values
- mfspline(x, degree, bcond=4)
- Finds B-spline interpolation coefficients for multidimensional
arrays x. Works for any dimensionality.
Returns a double array of coefs
- product = reduce(...)
- repeat(...)
- repeat(a, n, axis=0)
- reshape(...)
- reshape(a, (d1, d2, ..., dn)). Change the shape of a to be an n-dimensional array with dimensions given by d1...dn. One dimension is allowed to be None. This dimension will be set to whatever value will make the size of the new array equal the size of the old one. Note: the size specified for the new array must be exactly equal to the size of the old one or an error will occur. This returns a completely new array with the data of the old one copied. Use a.shape=(...) for no data copying.
- sdcgr(ref, cx, cy, degc, derw, wt, mask=None)
- wrapper for BIGsplines.Sdcgr and SdcgrMask.
It is used in bigregister.WarpingProblem.getEgC for fast
calculation of the criterion and gradient
- searchsorted = binarysearch(...)
- binarysearch(a,v)
- sometrue = reduce(...)
- splineinterpol(coefs, points, degree, flag=0, mask=None, bcond=4)
- a wrapper to BIGsplines.SplineInterpol. It interpolates a function
given by B-spline coefficients (coefs) at points (points).
Points can by generated by indices(), coefs by mfspline()
flag is passed on to BIGsplines.SplineInterpol to interpolate also
derivatives.
If mask is given, the function is only interpolated for those points
for which mask is nonzero
- splineinterpolone(coefind, coefsize, points, degree, flag=0, bdw=0, bcond=4)
- a wrapper to BIGsplines.SplineInterpolOne. It interpolates a function
given by B-spline coefficients matrix of size coefsize
knots with exactly one one at point coefind. It evaluates it
at points (points).
Points can by generated by indices(), coefs by mfspline()
flag is passed on to BIGsplines.SplineInterpol to interpolate also
derivatives.
Uses mirror boundary conditions
bdw is an internal parameter containing the dimension that has been
dealt with
- splineinterpoloneraw(coefind, coefsize, points, degree, flag=0, bcond=4)
- a wrapper to BIGsplines.SplineInterpolOne. It interpolates a function
given by B-spline coefficients matrix of size coefsize
knots with exactly one one at point coefind. It evaluates it
at points (points).
Points can by generated by indices(), coefs by mfspline()
flag is passed on to BIGsplines.SplineInterpol to interpolate also
derivatives.
Does not consider mirrored coefficients
- splinerange(coefind, coefsize, coordsize, shifts, steps, degree, bcond=4)
- returns two vectors l,h containing the lower and upper boundary
for the support of the B-spline centered at coefind among coefsize
coefs. The returned indices are with respect to an array
indices(coordsize,'d')*steps+shifts
- sum = reduce(...)
- take(...)
- take(a, indices, axis=0). Selects the elements in indices from array a along the given axis.
- test_MSlena()
- test_MSplineSignal()
- test_SplineSignal()
- test_bigsplines()
- test_evalfract()
- test_fir()
- test_getContrib()
- test_mfspline()
- test_splineinterpolone()
- time_splineinterpol()
- zeros(...)
- zeros((d1,...,dn),typecode,savespace) will return a new array of shape (d1,...,dn) and type typecode (default 'l') with all it's entries initialized to zero. If savespace (default 0) is nonzero the array will be a spacesaver array.
|