Line integral convolution
In scientific visualization, line integral convolution (LIC) is a method to visualize a vector field, such as fluid motion.
Features
- global method
- integration-based method
- texture-based method
Convolution
In signal processing this process is known as discrete convolution.[1]
Integration-based method
It is the integration-based method (technique). More precisely it is based on the discrete line integral on uniform grids. Discrete numerical integration is performed along a line (more precisely curve). Line here means field line of vector field.
Global method
Compared to other integration-based techniques that compute field lines of the input vector field, LIC has the advantage that all structural features of the vector field are displayed, without the need to adapt the start and end points of field lines to the specific vector field. In other words, it shows the topology of the vector field.
In user testing, LIC was found to be particularly good for identifying critical points.[2]
other
With the availability of high-performance GPU-based implementations, the former disadvantage of limited interactivity is no longer present.
Texture-based method
LIC takes texture as an input and gives texture ( output). So it is texture synthesis.
History
LIC technique was proposed by Brian Cabral and Leith Casey Leedom[3]
Algorithm
Informal description
Principle : the pixel values along the field lines are strongly correlated, but orthogonally to them almost uncorrelated. As a result, the field lines stand out visually from the background and become visible.
Intuition:
- throwing paint in a river
- "emulates what happens when a rectangular area of massless fine sand is blown by strong wind"[4]
Intuitively, the flow of a vector field in some domain is visualized by adding a static random pattern of dark and light paint sources. As the flow passes by the sources, each parcel of fluid picks up some of the source color, averaging it with the color it has already acquired in a manner similar to throwing paint in a river. The result is a random striped texture where points along the same streamline tend to have similar color.
Formal mathematical description
Although the input vector field and the result image are discretized, it pays to look at it from a continuous viewpoint.[5] Let [math]\displaystyle{ \mathbf{v} }[/math] be the vector field given in some domain [math]\displaystyle{ \Omega }[/math]. Although the input vector field is typically discretized, we regard the field [math]\displaystyle{ \mathbf{v} }[/math] as defined in every point of [math]\displaystyle{ \Omega }[/math], i.e. we assume an interpolation. Streamlines, or more generally field lines, are tangent to the vector field in each point. They end either at the boundary of [math]\displaystyle{ \Omega }[/math] or at critical points where [math]\displaystyle{ \mathbf{v}=\mathbf{0} }[/math]. For the sake of simplicity, in the following critical points and boundaries are ignored. A field line [math]\displaystyle{ \boldsymbol \sigma }[/math], parametrized by arc length [math]\displaystyle{ s }[/math], is defined as [math]\displaystyle{ \frac{d\boldsymbol \sigma (s)}{ds} = \frac{\mathbf{v}(\boldsymbol {\sigma}(s))}{|\mathbf{v}(\boldsymbol{\sigma}(s))|} }[/math]. Let [math]\displaystyle{ \boldsymbol{\sigma}_\mathbf{r}(s) }[/math] be the field line that passes through the point [math]\displaystyle{ \mathbf{r} }[/math] for [math]\displaystyle{ s=0 }[/math]. Then the image gray value at [math]\displaystyle{ \mathbf{r} }[/math] is set to
- [math]\displaystyle{ D(\mathbf{r}) = \int_{-L/2}^{L/2} k(s)N(\boldsymbol{\sigma}_{\mathbf{r}}(s)) ds }[/math]
where [math]\displaystyle{ k(s) }[/math] is the convolution kernel, [math]\displaystyle{ N(\mathbf{r}) }[/math] is the noise image, and [math]\displaystyle{ L }[/math] is the length of field line segment that is followed.
[math]\displaystyle{ D(\mathbf{r}) }[/math] has to be computed for each pixel in the LIC image. If carried out naively, this is quite expensive. First, the field lines have to be computed using a numerical method for solving ordinary differential equations, like a Runge–Kutta method, and then for each pixel the convolution along a field line segment has to be calculated.
The output image will normally be colored in some way. Typically some scalar field in [math]\displaystyle{ \Omega }[/math] is used, like the vector length, to determine the hue, while the gray-scale LIC image determines the brightness of the color.
Different choices of convolution kernels and random noise produce different textures: for example pink noise produces a cloudy pattern where areas of higher flow stand out as smearing, suitable for weather visualization. Further refinements in the convolution can improve the quality of the image.[6]
Description for programmers
Algorithmically, the technique starts by generating in the domain of the vector field a random gray level image at the desired output resolution. Then, for every pixel in this image, the forward and backward streamline of a fixed arc length is calculated. The value assigned to the current pixel is computed by a convolution of a suitable convolution kernel with the gray levels of all the pixels lying on a segment of this streamline. This creates a gray level LIC image.
Problem
Visualize field lines and singularities of a 2D stationary vector field (stream lines of a 2D steady flow)
Input
- vector field: 2D stationary vector field
- noise: stationary white noise (scalar field = texture)
Output
result (output image) = final LIC image of input vector field
Steps
constraints
- false singularities
Versions
Basic
Basic LIC images are grayscale images, without color and animation. While such LIC image conveys the orientation of the field vectors, it does not indicate their direction; for stationary fields, this can be remedied by animation. Basic LIC images do not show the length of the vectors (or the strength of the field).
Color
The length of the vectors (or the strength of the field) is usually coded in color; alternatively, animation can be used.[3][5]
Animated version
LIC images can be animated by using a kernel that changes over time. Samples at a constant time from the streamline would still be used, but instead of averaging all pixels in a streamline with a static kernel, a ripple-like kernel constructed from a periodic function multiplied by a Hann function acting as a window (in order to prevent artifacts) is used. The periodic function is then shifted along the period to create an animation.
FLIC
Fast Lic ( FLIC)
The computation can be significantly accelerated by re-using parts of already computed field lines, specializing to a box function as convolution kernel [math]\displaystyle{ k(s) }[/math] and avoiding redundant computations during convolution.[5] The resulting fast LIC method can be generalized to convolution kernels that are arbitrary polynomials.[7]
OLIC
Oriented Line Integral Convolution (OLIC)
UFLIC
For time-dependent vector fields ( unsteady flow) a variant (UFLIC = Unsteady Flow LIC), has been designed that maintains the coherence of the flow animation.[10]
Parallel versions
Since the computation of a LIC image is expensive but inherently parallel, it has also been parallelized[11] and, with availability of GPU-based implementations, it has become interactive on PCs. Also for UFLIC an interactive GPU-based implementation has been presented.[12]
Multidimensional
Note that domain [math]\displaystyle{ \Omega }[/math] does not have to be a 2D domain: the method is applicable to higher dimensional domains using multidimensional noise fields. However, the visualization of the higher-dimensional LIC texture is problematic; one way is to use interactive exploration with 2D slices that are manually positioned and rotated. The domain [math]\displaystyle{ \Omega }[/math] does not have to be flat either; the LIC texture can be computed also for arbitrarily shaped 2D surfaces in 3D space.[13]
Applications
This technique has been applied to a wide range of problems since it first was published in 1993.
Applications:
- representing vector fields by approximation a field lines of the input vector field
- flow-visualization method for steady ( time independent) flows.[14] Here field lines are called streamlines
- Visual exploration of 2D autonomous dynamical systems[15]
- windy maps[16]
- water directions
- artistic effects to generate fancy images
- Terrain generalization: creating generalized shaded relief[21]
Implementations
- GPU Based Image Processing Tools by Raymond McGuire
- ParaView : Line Integral Convolution
- A 2D flow visualization tool based on LIC and RK4. Developed using C++ and VTK. by Andres Bejarano
- Wolfram Research (2008), LineIntegralConvolutionPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/LineIntegralConvolutionPlot.html (updated 2014).
See also
References
- ↑ Line Integral Convolution for Flow Visualization by Dr. Matthew O. Ward
- ↑ Laidlaw, David H.; Kirby, Robert M.; Davidson, J. Scott; Miller, Timothy S.; da Silva, Marco; Warren, William H.; Tarr, Michael J. (October 21–26, 2001). "Quantitative Comparative Evaluation of 2D Vector Field Visualization Methods". San Diego, CA, USA. pp. 143–150.
- ↑ 3.0 3.1 Cabral, Brian; Leedom, Leith Casey (August 2–6, 1993). "Imaging Vector Fields Using Line Integral Convolution". SIGGRAPH '93. Anaheim, California. pp. 263–270. doi:10.1145/166117.166151. ISBN 0-89791-601-8.
- ↑ LIC by Zhanping Liu
- ↑ 5.0 5.1 5.2 Stalling, Detlev; Hege, Hans-Christian (August 6–11, 1995). "Fast and Resolution Independent Line Integral Convolution". SIGGRAPH '95. Los Angeles, California. pp. 249–256. doi:10.1145/218380.218448. ISBN 0-89791-701-4. https://archive.org/details/computergraphics00sigg/page/249.
- ↑ Weiskopf, Daniel (2009). "Iterative Twofold Line Integral Convolution for Texture-Based Vector Field Visualization". in Möller, Torsten; Hamann, Bernd; Russell, Robert D.. Mathematical Foundations of Scientific Visualization, Computer Graphics, and Massive Data Exploration. Mathematics and Visualization. Berlin, New York: Springer. pp. 191–211. doi:10.1007/b106657_10. ISBN 978-3-540-25076-0. https://archive.org/details/mathematicalfoun00mlle.
- ↑ Hege, Hans-Christian; Stalling, Detlev (1998), "Fast LIC with Piecewise Polynomial Filter Kernels", in Hege, Hans-Christian; Polthier, Konrad, Mathematical Visualization, Berlin, Heidelberg: Springer-Verlag, pp. 295–314, doi:10.1007/978-3-662-03567-2_22, ISBN 978-3-642-08373-0
- ↑ Fast Oriented Line Integral Convolution for Vector Field Visualization via the Internet by Rainer Wegenkittl and Eduard Gr¨oller
- ↑ Java Exploration Tool for Dynamical Systems by R. Wegenkittl and E. Gröller.
- ↑ Shen, Han-Wei; Kam, David L. (1998). "A New Line Integral Convolution Algorithm for Visualizing Time-Varying Flow Fields". IEEE Trans Vis Comput Graph (Los Alamitos: IEEE) 4 (2): 98–108. doi:10.1109/2945.694952. ISSN 1077-2626. http://web.cse.ohio-state.edu/~shen.94/Research/Gravity/Project_2_files/Shen1998a.pdf.
- ↑ Zöckler, Malte; Stalling, Detlev; Hege, Hans-Christian (1997). "Parallel Line Integral Convolution". Parallel Computing (Amsterdam: North Holland) 23 (7): 975–989. doi:10.1016/S0167-8191(97)00039-2. ISSN 0167-8191. http://www.zib.de/visual-publications/sources/src-1996/parLIC.pdf.
- ↑ Ding, Zi'ang; Liu, Zhanping; Yu, Yang; Chen, Wei (2015). "Parallel unsteady flow line integral convolution for high-performance dense visualization". Hangzhou, China. pp. 25–30.
- ↑ Battke, Henrik; Stalling, Detlev; Hege, Hans-Christian (1997). "Fast Line Integral Convolution for Arbitrary Surfaces in 3D". in Hege, Hans-Christian; Polthier, Konrad. Visualization and Mathematics: Experiments, Simulations, and Environments. Berlin, New York: Springer. pp. 181–195. doi:10.1007/978-3-642-59195-2_12. ISBN 3-540-61269-6. https://archive.org/details/visualizationmat00fran.
- ↑ DAAC: Line Integral Convolution
- ↑ Visual exploration of 2D autonomous dynamical systems Thomas Müller2,1 and Filip Sadlo1 Published 26 February 2015 • © 2015 IOP Publishing Ltd European Journal of Physics, Volume 36, Number 3
- ↑ A real-time map of the wind in the U.S. by Fernanda Viégas and Martin Wattenberg.
- ↑ researchgate publication: Sun, Shuo & Huang, Dongwei. (2022). Efficient Region-Based Pencil Drawing.
- ↑ S. Yamamoto, Xiaoyang Mo and A. Imamiya, "Enhanced LIC pencil filter," Proceedings. International Conference on Computer Graphics, Imaging and Visualization, 2004. CGIV 2004., 2004, pp. 251-256, doi: 10.1109/CGIV.2004.1323994.
- ↑ Xiaoyang Mao, M. Kikukawa, K. Kashio and A. Imamiya, "Automatic generation of hair texture with line integral convolution," 2000 IEEE Conference on Information Visualization. An International Conference on Computer Visualization and Graphics, 2000, pp. 303-308, doi: 10.1109/IV.2000.859772.
- ↑ Xiaoyang Mao, Toshikazu Suzuki, and Atsumi Imamiya. 2003. AtelierM: a physically based interactive system for creating traditional marbling textures. In Proceedings of the 1st international conference on Computer graphics and interactive techniques in Australasia and South East Asia (GRAPHITE '03). Association for Computing Machinery, New York, NY, USA, 79–ff. https://doi.org/10.1145/604471.604489
- ↑ Bernhard Jenny (2021) Terrain generalization with line integral convolution, Cartography and Geographic Information Science, 48:1, 78-92, DOI: 10.1080/15230406.2020.1833762
Original source: https://en.wikipedia.org/wiki/Line integral convolution.
Read more |