Escolar Documentos
Profissional Documentos
Cultura Documentos
113
0-7695-1007-8/01 $10.000 2001 IEEE
2. Boundary processing for illustration
Pl
P10 -P PI0
114
l-----l l-----l L s i , k - l s i , k s i , k + l of si. The l e n g t h ( s i , k )denotes the edge
we divide the polyline at the point that connects the adjacent In the image-based illustration system, little information
line segments. On the other hand, if two distinct polylines is supplicd, so user strokcs arc used to compensate for in-
arc closer than a given threshold, we merge them in order to sufficiencies.
makc the polylincs into one. After the separation and merg- A user provides uscr strokes by drawing polylines di-
ing, the image contour construction process removes noisy rectly on an image with a mouse or a stylus pen. The di-
polylines that are shorter than the user-defined threshold. rection and number of user strokes must be carefully detcr-
mined, since three parameters( 3 of strokes, their direction,
and their length) are crucial to the quality of the final illus-
3. Stroke morphing tration. Then, user strokes are simplified and smoothed, to
eliminate noisy and redundant control points.
Stroke morphing is a technique uscd to automatically
Our system accepts two types of user stroke: the shape
generate artificial strokes based on given user strokes. We
user stroke and the direction user stroke. Fig.7 shows how
use two kinds of methods: flow-oriented stroke morphing
this system generates artificial strokes when the shape user
and shape-oriented stroke morphing. Flow-oriented stroke
strokes (a) and the direction user strokes (b) are given. For
morphing is suitable when strokes are intended to show flow
some objects, the direction user strokes do not need to be
or direction, like smoke or water. Shape-oriented stroke
given. Fig.7 shows two different cases: in Fig.7(a), only
morphing, on the other hand, is suitable when strokes are
shape user strokes are used, and in Fig.7(b), both shape and
influenced more by shape than flow, so this can be applied
direction uscr strokes are used.
to drawing leaves or feathers.
Fig.4 shows the two different drawing stroke morphing
methods, both with the same number of user strokes. Fig.4
(a)+(b) show the flow-orientedstroke morphing procedure,
and Fig.4 (c)+(d) show the shape-oriented stroke morphing
procedure. The morphing method employed by the user can (a) s, (b) sd (c) ss @ sd.
be chosen based upon the characteristics of each illustration
image. Figure 6. User strokes and artificial strokes:
Fig.5 shows a notation for the structure of a user stroke; (a) s , ~ user
: stroke for the shape (b) S d : user
control points, angles, length of composing vector, direction stroke for the processing direction (c) artifi-
vectors, and a base vector shown a? a dotted line. Let si be cial strokes = s,?@I sd
the i-th user stroke. The si,j denotes the j-th control point
of the user stroke s;. The a n g l r ( s i , k ) in this figure denotes
115
user stroke s, and n denotes the number of user strokes.
After detlmnining 11 (s,,,,), we must generate each di-
rection vector of the stroke s , , ~ ~ , The
,. k-th direction vector
of s,,, Gnezt,,k, is generated by following equation.
original image ,where disf ( s , , ~y, ) denotes the distance between points s, ,
5 -l and p , n (s,) denotes the number of direction vectors of the
user stroke .it and n denotes the number of user strokes.
Through this equation, we can generate the direction
vector of anew artificial strobe which started from a point p .
After generating the direction vector, the point p is modified
+
to p ij'!,, k and the generating process of a direction vec-
\..
L
L,j tor is repeated until r) (s,,,,,) vectors are generated. Then the
same process is repeated for the next starting point ( S I , y~).
user stroke Fig.8 shows an artificial stroke s,,,, and many notations
-1 5 used in equations. The snev,is generated by the flow mor-
phing technique with two user strokes, s , , s l t l .
final illustration
(a) (b)
,where d i s t ( ~ i p, ~) denotes
, the distance between pointssi,l ,where R is the number of user strokes, & denotes the base
and p , n ( s i ) denotes the number of direction vectors of a vector of a user stroke si.
116
1)) CJ
n, = 17 n , =246
user strokes
117
3
C
C J
\ -c
-8 3
(a)
'X
nu = 9
(b)
n, = 152
(c)
Figure 11. An example of shape morphing : (a) a given 2D image (b) extracted boundary and user
strokes (c) the illustration result of (a)
probabilistically if the pointy can be a starting point of a two typical illustrations produced using the stroke morph-
new artificial stroke or not. Let P r ( p )be the probability of ing method. Fig.l4(a) is a given 2D image. In Fig.l4(b),
an artificial stroke starting at a point ( x ,y). Then we can a human illustrator creates user strokes within each image.
calculate P r ( p )as follows: The final results are shown in Fig.l4(c), where the wolf and
the prairie dog illustrations are completed in postscript for-
mat. In case of the wolf image, 13 shape user strokes are
given and 308 artificial strokes are generated in the result
P r ( p ) = 0, if I B O A - ~>=
( ~ )to, illustration image. For prairie dog, 17 shape user strokes
where f o and f l are control constants. In this experiment, are given and 421 artificial strokes are generated. Fig.15
t l = 4. So, if a pixel is surrounded with a perfect black shows the result when our illustration method is used for
box, then about 25% of such black pixels might be starting dictionary typesetting.
points of any artificial strokes. Selecting a good t o , t l and This paper presents a new illustration method that high-
d of B O S d ( p )is very important in generating a realistic il- lights the important features of original images. The im-
lustration. Also we can generate many different illustrations proved features of our method can be summarized ar fol-
by adjusting these control variables t o , t l , and d. lows:
0 Illustrations can be created by specifying a small num-
4. Experimental results and conclusion ber o f simple user strokes.
This illustration system has been implemented on a Pen- 0 The proposed technique enables users to easily control
tium 111, 600MHz. All input images are 512x512 black the illustration effects by adjusting the user strokes.
and white images. The execution time depends on the den- 0 This is the first illustration technique that utilizes
sity of the objects in the input image and the number of user stroke morphing.
strokes. In our experiments, the average execution time was
about one minute. The final results were translate to the
postscript format with a Be'zier curve to make more refined, References
high resolution images.
Fig.12 shows result illustrations based on the number of [I] J. M. Cychosz. Eficient Binary Image Thinning Using Neigh-
borhood Maps. Graphics Gems TV, 1994.
user strokes. If there are too few user strokes, the system can
[?I 0. Deussen, J. Hamel, A. Raab, S. Schlechtweg, and
not generate good results. However, it is of no use to give T. Strcithotte. An illustration technique using hardware-based
too many strokes, as Fig.l2(c). It can be seen that results of intersections and skeletons. Graphics Interface '99, pages
Fig.12(b)(nU=5)and Fig.12(c)(nU=15)are not so different. 175-182, June 1999.
Fig. 13 shows the result illustrations of two knot images [3] S. Gupb and R. F. Spmull. Filtering edges for gray-scale
and an example of dictionary typesetting. Fig.14 shows displays. Computer Graphics '81,pages 1-5, August 1981.
118
knot InoVn 1. a. A compact intersection of interlaced material,
such as cord, ribbon, or ropc. b. A fastening made by tying together
lengths of niaterial. such as rope. in a prescribed way. 2. A decorative
how of ribbon. fabric, or braid. 3. A unifying bond, apccially a n i w
iage bond. 4. A tight cluster of pcnons or things: a knot of onlookcn.
5 . A feeling of tightness:
a knot of fear i n my stoma-
ch. 6. A coniplex problem.
01.
hard place or lump. especi-
ally on a tree, at a point fr-
om which a stem or branc-
h grows. 7.A hard place
or lump. especially on ai-
rec, at a point from which
a stcm 01 branch grows.
(a) slip knot I (b) overhand knot (c) an example for dictionary typesetting by authors
Figure 13. illustrationsoutput: two kinds of knots
-L
(c) n , = 15
119
I-
ilt, = 13
IT 11, = 308
Figure 14. The three steps of illustrations building: (a) 2D images (b) boundary extraction and user
strokes (c) final results of the processing, 1 2 , is the number of artificial strokes, r j t l denotes the
number of user strokes
hand /hend/n 1[C] either o f the movable pans at the end of a person’s arm,
including the lingers: S h e had a gun in her hand. [=She was holding a
p n ] I I’ve got Inasty cut inlon my left hnd. I I held the child by
the hands (with each other). ltIe left the child by the hand. hands
with each other. IHe left the child by the hand.lShe’s very good with
her hands. =good at making thing, mending things,etc. I Wait until
get my hands c>nhim! I can’t d o i t today - I’ve got my hands full.ltIe
go1 my as ked For her hand in marriage. I That child needs a firmhand!
2. [C]apointer or needle on a clock, machine or measuring insnument:
little finger
(a)Original image(second author’s left hand) (b)An example for dictionary illustration
120