(p, q) ∈ ρ if and only if (q, p) ∈ ρ. We say that p and
q are ρ-adjacent (Herman, 1998). For X = Z
3
we de-
fine three symmetric binary relations on Z
3
that cor-
respond to 26, 18 and 6 voxel connectivity. For any
two points p = (p
1
, p
2
, p
3
) and q = (q
1
, q
2
, q
3
) of Z
3
we say that they are 18 connected or (p, q) ∈ δ
3
if and
only if they share a face or an edge.
The simplest plane rasterization in 3D is 18-
connected, so adjacent voxels in a digital plane will
share a face or an edge. Such plane is not tunnel-
free and 26-connected line can pass through the plane.
For some applications, especially in biomedical im-
age analysis, this is not acceptable one must find a
tunnel-free plane. A supercover plane is one likely
candidate as it has some additional desirable proper-
ties (Andr
`
es, 2003) beside being a tunnel-free struc-
ture. We will adopt the definitions by Andr
`
es (Andr
`
es,
2003):
Definition 2.1 (Supercover) A supercover S(X) of a
continuous object X is the set of all the discrete points
p ∈ Z
n
and associated voxels such that V(p)∩X 6=
/
0.
One of the drawbacks of the supercover objects is ex-
istence of bubbles.
Definition 2.2 (Bubble) A k-bubble is the supercover
of an Euclidean point that has exactly k half-integer
coordinates.
3 AN EXACT WEAVING OF
DIGITAL PLANE
An attractive method to produce digital planes is
by using weaving techniques (Lincke and W
¨
uthrich,
1999). Basic idea is to decompose surface rasteriza-
tion into two orthogonal curve rasterizations. For the
planes both curves are lines and by copying one along
the other the plane rasterization is obtained. The line
being copied is usually called master and the line used
for determining the positions of the master is called
base. As all lines in the plane along the base are
copies of the master and thus have the same chain
code we only need to compute the rasterizations of
the master line and of the base line. Copying the mas-
ter line along the base completes the plane weaving.
We usually denote a line with the letter L. Being
interested in lines with the same slope and different
intercepts only we just need to know the value of the
intercept.
Definition 3.1 (Straight line) For any k ∈ Z and a
pair p and q of relatively prime numbers, q 6= 0, the
straight line L
k
is a set of points L
k
= {(x, y) ∈ R
2
:
y =
p
q
x +
k
q
}.
Figure 1: A continuous and digital representation of the
plane defined by x + 2y − 5z = 0. For the digital represen-
tation voxels belonging to the master. are shown as wire-
frame and base is shown using darker shading.
This is sufficient for almost all applications as dis-
cussed in section 4.2.
When copying the master line one must notice that
simple copying of the master along the base will not
produce nearest neighbor rasterization as defined in
(W
¨
uthrich, 1998). To obtain a proper rasterization
one must also consider shift in the line chain code
that is introduced as the intercept changes. Lincke et
al. (Lincke and W
¨
uthrich, 1999) have presented an ex-
act weaving rasterization algorithm for digital planes.
Main result is the theorem stating how to compute a
shift of any line at given position:
Theorem 3.1 (Line shift) Let L
e
be a straight line
given by y(x) =
p
q
x + e where p and q are relatively
prime numbers, p, q ∈ Z, p ≤ q, q 6= 0 and e is an
arbitrary real intercept. The shift s of L
e
at position
i ∈ Z is given by [s]
q
= [rp
∗
]
q
with r = [pi + qe]
q
if q
is odd and r = [pi + qe +
1
2
]
q
if q is even.
The weaving algorithm now copies the master line
along the base, but the chain code is shifted by s. An
example rasterization of the plane x + 2y − 5z = 0 is
shown in figure 1.
The plane weaving algorithm produces an exact
rasterization of the plane Ax + By + Cz + D = 0 with
rational coefficients A, B, C and D. Produced rasteri-
zation is 18-connected set that does not contain all the
voxels a plane intersects. In figure 2 an 18-connected
plane x + 2y − 5z = 0 is superimposed over continu-
ous plane. One can immediately notice that contin-
uous plane is not contained within the 18-connected
GRAPP 2007 - International Conference on Computer Graphics Theory and Applications
328