B-spline

In the mathematical subfield of numerical analysis a B-spline is a special spline curve. It is a linear combination of B-splines basis curves. B-splines are a generalization of the Bézier curves and can be further generalized to NURBS, allowing the accurate modelling of more general classes of geometry.

The De Boor algorithm is a numerically stable way to evaluate B-splines.

The term B-spline was coined by Isaac Jacob Schoenberg and is short for basis spline.

Contents

Definition

Given m+1 knots ti in [0,1] with

<math>t_0 < t_1 < \ldots < t_m <math>

a B-spline of degree n is a parametric curve

<math>\mathbf{S}:[0,1] \to \mathbb{R}^2<math>

composed of basis B-splines of degree n

<math>\mathbf{S}(t)= \sum_{i=0}^{m+1} \mathbf{P}_{i} b_{i,n}(t) \mbox{ , } t \in [0,1]<math>.

The Pi are called control points or de Boor points. A polygon can be constructed by connecting the de Boor points with lines, starting with P0 and finishing with Pn</sub>. This polygon is called the de Boor polygon.

The m+1 basis B-splines of degree n can be defined using the Cox-de Boor recursion formula

<math>b_{j,0}(t) := \left\{\begin{matrix}

1 & \mathrm{if} \quad t_j < t < t_{j+1} \\ 0 & \mathrm{otherwise} \end{matrix} \right. <math>

<math>b_{j,n}(t) := \frac{t - t_j}{t_{j+n} - t_j} b_{j,n-1}(t) + \frac{t_{j+n+1} - t}{t_{j+n+1} - t_{j+1}} b_{j+1,n-1}(t).<math>

When the knots are equidistant we say the B-spline is uniform otherwise we call it non-uniform.

Uniform B-spline

When the B-spline is uniform the basis B-Splines for a given degree n are just shifted copies of each other. An alternative non recursive definition for the m+1 basis B-splines is

<math>b_{j,n}(t) := b_n(t + n - j) \qquad \mbox{ , } j = -1, \ldots m+1<math>

with

<math>b_{n}(t) := (m+1) \sum_{i=0}^{m+1} \omega_i(t_i - t)_+^{m} \qquad \mbox{ , } t \in [0,1]<math>

with

<math>\omega_i := \prod_{j=0, i \neq j}^{m+1} \frac{1}{t_i - t_k}<math>

where

<math>(t_i - t)_+<math>

is the truncated power function

(Note: somebody please correct these formulas: <math>b_{n}(t)<math> does not use <math>n<math>)

Notes

When the number of knots is the same as the degree, the B-Spline degenerates into a Bezier curve. The shape of the basis functions is determined by the position of the knots. Scaling or translating the knot vector does not alter the basis functions.

The spline is contained in the convex hull of its control points.

A basis B spline of degree n

<math>b_{i,n}(t)<math>

is non-zero only in the interval [ti, ti+n+1] that is

<math>b_{i,n}(t) = \left\{\begin{matrix}

>0 & \mathrm{if} \quad t_{i} \le t < t_{i+n+1} \\ 0 & \mathrm{otherwise} \end{matrix} \right. <math> In other words if we manipulate one control point we only change the local behaviour of the curve and not the global behaviour as with Bézier curves.

Examples

Constant B-spline

The constant B-spline is the most simple spline. It is defined on only one knot span and is not even continuous on the knots. It is a just indicator function for the different knot spans.

<math>b_{j,0}(t) = 1_{[t_j,t_{j+1})} =

\left\{\begin{matrix} 1 & \mathrm{if} \quad t_j \le t < t_{j+1} \\ 0 & \mathrm{otherwise} \end{matrix} \right. <math>

Linear B-spline

The linear B-spline is defined on two consecutive knot spans and is continuous on the knots, but not differentiable.

<math>b_{j,1}(t) =

\left\{\begin{matrix} \frac{t - t_j}{t_{j+1} - t_j} & \mathrm{if} \quad t_j \le t < t_{j+1} \\ \frac{t_{j+2} - t}{t_{j+2} - t_{j+1}} & \mathrm{if} \quad t_{j+1} \le t < t_{j+2} \\ 0 & \mathrm{otherwise} \end{matrix} \right. <math>

Cubic B-Spline

A B-spline formulation for a single segment can be written as:

<math>S_{i} (t) = \sum_{k=0}^3 \mathbf{P}_{i-3+k} b_{i-3+k,3} (t) \qquad \mbox{ , } t \in [0,1]<math>

where Si is the ith B-spline segment and P is the set of control points, segment i and k is the local control point index. A set of control points would be <math>P_i^w = ( w_i x_i, w_i y_i, w_i z_i, w_i)<math> where the <math>w_i<math> is weight, pulling the curve towards control point <math>P_i<math> as it increases or moving the curve away as it decreases.

An entire set of segments, m-2 curves (<math>S_3,S_4,...,S_m<math>) defined by m+1 control points (<math>P_0,P_1,...,P_m, m \ge 3<math>), as one B-spline in t would be defined as:

<math>S(t) = \sum_{i=0}^m \mathbf{P}_{i} b_{i,3} (t)<math>

where i is the control point number and t is a global parameter giving knot values. This formulation expresses a B-spline curve as a linear combination of B-spline basis functions, hence the name.

There are two types of B-spline - uniform and non-uniform. A non-uniform B-spline is a curve where the intervals between successive control points is not, or not necessarily, equal (the knot vector of interior knot spans are not equal). A common form is where intervals are successively reduced to zero, interpolating control points.

See also

References

This article was originally based on material from the Free On-line Dictionary of Computing, which is licensed under the GFDL.

External links

fr:B-spline

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools