Image-Guided Streamline Placement
Code Version 0.5
Documentation author: Greg Turk
Disclaimer
----------
>>> SUPPORT FOR THIS CODE WILL BE LIMITED OR NON-EXISTENT. <<<
Why? I am starting as an Assistant Professor at Georgia Tech in September
1996, and I know that this will make me incredibly busy. Code support will
be near the bottom of the queue for me. This means that bug fixes, more
detailed documentation and new releases of the code are all unlikely to
happen in the near future. I truly wish that I could spend more time
smoothing out this code, but it does not look like this will happen in
the near future.
Here is the copyright notice for the code:
Copyright (c) 1996 The University of North Carolina. All rights reserved.
Permission to use, copy, modify and distribute this software and its
documentation for any purpose is hereby granted without fee, provided
that the above copyright notice and this permission notice appear in
all copies of this software and that you do not sell the software.
The software is provided "as is" and without warranty of any kind,
express, implied or otherwise, including without limitation, any
warranty of merchantability or fitness for a particular purpose.
Overview
--------
This text accompanies public-domain code for performing streamline placement
in 2D vector fields. The techniques used are described in the following
article:
"Image-Guided Streamline Placement"
Greg Turk and David Banks
SIGGRAPH 96 Conference Proceedings
Computer Graphics Annual Conference Series 1996
Here is the abstract of this paper:
Accurate control of streamline density is key to producing several
effective forms of visualization of 2-dimensional vector fields. We
introduce a technique that uses an energy function to guide the placement
of streamlines at a specified density. This energy function uses a
low-pass filtered version of the image to measure the difference between
the current image and the desired visual density. We reduce the energy
(and thereby improve the placement of streamlines) by (1) changing the
positions and lengths of streamlines, (2) joining streamlines that nearly
abut, and (3) creating new streamlines to fill sufficiently large gaps.
The entire process is iterated to produce streamlines that are neither too
crowded nor too sparse. The resulting streamlines manifest a more
hand-placed appearance than do regularly- or randomly-placed streamlines.
Arrows can be added to the streamlines to disambiguate flow direction, and
flow magnitude can be represented by the thickness, density, or intensity
of the lines.
This distribution contains source code for four programs. Here are the
programs and a brief description of each:
mfield - make simple test vector field files
noise - create vector field noise files
stplace - use optimization to create streamlines for a given vector field
stdraw - draw images of streamlines that were created using "stplace"
In addition to the above code, the directory "data" contains several
sample vector field files.
Installation
------------
This distribution of code includes documentation and three directories.
These directories are:
libs - contains library routines
src - source code for all programs
data - sample vector fields and streamlines
In addition to the programs, a script called "arrrows.csh" is included
for embossing arrows with dropshadows over another image. This script
was used to make Figure 7 in our paper (wind velocity over Australia).
All of the programs are written in C++, so you need a C++ compiler to
create the executables. Some of the programs run with the X11 window
system. The programs were developed on a Silicon Graphics workstation, but
they are written in fairly vanilla C++ and should work with little or no
modification on other platforms.
To make the programs, type the following in the main directory:
cd libs
make
cd ../src
make
This should create four executables in the "src" directory:
stplace, stdraw, mfield, vnoise.
See the file "Programs.txt" for documentation of these programs.
<end of document>
没有合适的资源?快使用搜索试试~ 我知道了~
streamlines
共61个文件
c:22个
h:19个
vec:11个
需积分: 9 3 下载量 147 浏览量
2008-12-13
21:48:14
上传
评论
收藏 244KB ZIP 举报
温馨提示
placement of streamlines
资源推荐
资源详情
资源评论
收起资源包目录
41695035streamlines.zip (61个子文件)
streamlines
streamlines
libs
clip_line.h 745B
window.C 22KB
floatimage.C 17KB
window.h 4KB
clip_line.C 5KB
floatimage.h 2KB
cli.C 16KB
Makefile 307B
cli.h 3KB
Programs.txt 14KB
Readme.txt 4KB
src
sd_repel.h 2KB
dissolve.C 3KB
noise.C 5KB
sd_repel.C 12KB
stplace.h 1KB
sd_streamline.h 5KB
repel.h 2KB
picture.C 3KB
vfield.C 11KB
sd_vfield.C 11KB
sd_picture.h 2KB
stplace.C 82KB
lowpass.h 3KB
lowpass.C 28KB
stdraw.h 738B
repel.C 19KB
stdraw.C 14KB
sd_picture.C 7KB
xlines.C 4KB
vfield.h 2KB
streamline.C 48KB
intersect.h 2KB
sd_vfield.h 2KB
intersect.C 6KB
picture.h 1KB
streamline.h 6KB
mfield.C 10KB
visparams.C 11KB
visparams.h 2KB
Makefile 2KB
dissolve.h 1KB
sd_params.C 13KB
sd_streamline.C 28KB
sd_params.h 2KB
arrows.csh 2KB
data
const1.vec 32KB
const3.vec 32KB
circles.vec 32KB
center.vec 32KB
source.vec 32KB
dipole_example.st 6KB
vnoise.vec 12KB
const2.vec 32KB
dipole.vec 32KB
Readme 832B
saddle.vec 32KB
cylinder.vec 32KB
vnoise_example.st 2KB
spiral.vec 32KB
www.pudn.com.txt 218B
共 61 条
- 1
资源评论
lovecaomi11
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功