Keywords

1 Introduction

We consider the problem of the characterization of finite discrete set of points of the 2D integer lattice from projections, i.e., from the knowledge of the number of points lying on parallel lines along a given set of discrete directions. This research is of great relevance in Discrete Tomography, and it is motivated by the need of a faithful reconstruction of the internal structure of an object that is not directly accessible. The general problem has been studied since the beginning of the 50’s, both from theoretical and computational perspectives (see [12] for a survey on the topic). Due to the existence of different sets of points that are consistent with the projections along any set of discrete directions (in [8], Fishburn et al. gave several characterizations of the finite subsets of \(Z^n\) that are uniquely determined by their horizontal and vertical projections), constraints have been added to restrict the space of solutions to obtain faithfulness, say uniqueness, in the reconstruction process.

In [10], the authors provided the following milestone result that answers the uniqueness problem in case of convex polyominoes, i.e. the class \(\mathcal {C}\) of connected sets of points that match their convex hulls:

Theorem 1

Let us consider the class \(\mathcal {C}\); it holds that

  1. 1.

    if U is a set of four discrete directions not having cross ratio \(\{4/3, 3/2, 2, 3, 4\}\), then \(\mathcal {C}\) is characterized by U (i.e., uniquely determined by the projections along the directions of U);

  2. 2.

    \(\mathcal {C}\) is characterized by any set of seven mutually nonparallel directions;

  3. 3.

    there is a set of six discrete directions not characterizing \(\mathcal {C}\);

  4. 4.

    \(\mathcal {C}\) cannot be characterized by any set of three discrete directions.

For every set of four directions \(U{=}\{u_1,u_2,u_3,u_4\}\), the cross ratio is defined as

$$ \rho (U) =\frac{(h_3-h_1)(h_4-h_2)}{(h_3-h_2)(h_4-h_1)}, $$

where \(u_i=(u_{ix},u_{iy})\) and \(h_i=\frac{u_{i y}}{u_{i x}}\), for \(i=1,2,3,4\) and \(0\le h_1<h_2<h_3 <h_4\). If \(u_4=(0,1)\), say by abuse of notation \(h_4 = \infty \), then we only keep the terms not containing \(h_4\), and the cross ratio reduces to \(\rho (U)=\frac{(h_3-h_1)}{(h_3-h_2)}\).

A major task in proving the above result relies on the analysis of the class of lattice U-polygons, consisting of any non-degenerate convex polygon P such that, for any vertex v of P, and for any direction \(u\in U\), the line through v and parallel to u meets a different vertex \(v'\) of P. The proof of Theorem 1 comes out from a number of lemmas and properties that combine tools from p-adic valuations, projective geometry, algebraic number theory and convexity.

After the paper of Gardner and Gritzmann appeared, the leading idea was that, when a kind of convexity information is available, ambiguous reconstructions are somehow related to the existence of U-polygons. Therefore, understanding the properties of such structures can help in achieving uniqueness results and reconstruction hints (see [1,2,3,4,5,6] for interesting examples). In [4] it was proved that if \(|U|\ge 4\), and the values of the cross ratio of any set of four directions in U, arranged in order of increasing angle with the positive x-axis, are in the set \(\{4/3, 3/2, 2, 3,4\}\), then a lattice U-polygon does exist. All the lattice U-polygons exhibited in [4] are dodecagons, produced by tiling affinely regular hexagons. Such kind of hexagonal tiling has been investigated and generalized in [6, 7], where several results concerning the symmetries of U-polygons, and their geometric structure have been also provided.

In [4], and later on in [9], some classes of polyominoes that are uniquely determined by projections are provided, combining the notion of horizontal and vertical convexity with additional geometrical constraints. The characterization of the class of hv-convex polyominoes, say \(\mathcal {HV}\), from projections is still open: again in [4], it was conjectured that Theorem 1 continues to hold for the elements of this class.

Our study sheds some new light on this problem: we restrict the conjecture by showing that ambiguities in the reconstruction do persist for any set of directions whose elements belong to the same quadrant and do not include both the horizontal and the vertical ones. Then, we go further by showing that no characterization is possible for any set of four directions including the two axial ones and such that the remaining two form a sufficiently small angle.

The overall organization of the paper includes, in the next section, a review to the basics of discrete tomography and the related uniqueness problem. Then, Sect. 3 presents our main results, i.e., the construction of specific hv-switchings along a class of 4-tuples of directions. The prominent role of the projections along the horizontal and vertical directions is also underlined. Finally, in Sect. 4 we provide perspectives and open problems related to the definition of hv-convex polyominoes from a generic set of given projections.

2 Definitions and Known Results

A finite discrete subset of points S in the integer lattice is usually represented by a set of cells (unit squares whose centers are the points in the set itself) on a squared surface, and its dimensions are those of the minimal bounding rectangle. We choose to identify the lower leftmost cell of such rectangle with the origin of the integer lattice, so that each set of points will be considered up to translation.

A polyomino is a finite union of cells whose interior is connected (see Fig. 1(a)). A column (row) of a polyomino is the intersection between the polyomino and an infinite strip of cells whose centers lie on a vertical (horizontal) line.

Nevertheless, several subclasses of interest were considered by putting on polyominoes constraints defined by the notion of convexity along different directions. In particular, a polyomino is h-convex (resp. v-convex) if each of its rows (resp. columns) is connected. A polyomino is hv-convex, if it is both h-convex and v-convex (see Fig. 1(b)). Finally, a polyomino is convex if it is convex w.r.t. all the discrete directions, i.e., if it equals its discrete convex hull (see Fig. 1(c)).

Fig. 1.
figure 1

(a) a polyomino; (b) an hv-convex polyomino; (c) a convex polyomino and its projections along the direction \(u=(1,1)\).

Let \(u=(u_x,u_y)\) be a discrete direction i.e., a couple of coprime integers. To each discrete set S and direction u, we associate an integer vector \(X_u(S)\) that stores the number of points of S that lie on each line parallel to u and intersecting the minimal bounding rectangle of S; we indicate such a vector as the (vector of) projections of S along u (see Fig. 1(c)).

Let U be a finite set of discrete directions. We say that S is determined by (the projections along the directions of) U, if \(X_u(R)=X_u(S)\) implies \(R=S\). We say that S is ambiguous w.r.t. U otherwise. Finally, a class of discrete sets \(\mathcal {S}\) is characterized by U if all its elements are non ambiguous w.r.t. U inside the class.

One of the main aims in the field of Discrete Tomography is the achievement of a faithful reconstruction of an unknown object, regarded as a discrete set of points at a certain resolution, from a set of projections. As one can imagine, the existence of different sets of points sharing the same set of projections may dramatically change into meaningless the whole process, so the relevance of the following problem:

Uniqueness \((\mathcal {S},U)\)

Instance: a class of discrete sets \(\mathcal {S}\), and a set of discrete directions U.

Question: Does there exist two distinct elements of \(\mathcal {S}\) having the same projections along the directions of U?

2.1 The Notion of Switching Components

Many authors studied Uniqueness \((\mathcal {S},U)\) in terms of the cardinality and the characteristics of the class of discrete sets sharing the same projections along U and, since the very beginning, they relied on the idea of switching component (in a very first study, Ryser [14] called it interchange) i.e., a rearranging of some elements of a set that preserves the projections along U.

More precisely, a discrete set S contains a switching component along U if there is a set of cells \(S'\) in the corresponding minimal bounding rectangle such that:

  • \(S'= S^0 \cup S^1\), \(S^0 \cap S^1 = \emptyset \) and \(|S^0| = |S^1|\);

  • if \(a \in S^0\) and \(b \in S^1\), then exactly one among a and b belongs to S;

  • for each \(u\in U\), \(X_u(S^0) = X_u(S^1)\) i.e., each line parallel to one direction of U contains the same number of elements in \(S^0\) and \(S^1\).

We call \(S'\) a switching component along U.

Figure 2(a), shows the two different switching components \(S^0\) and \(S^1\) along two directions, (the light gray cells are not elements of S).

Fig. 2.
figure 2

(a) the switching components \(S'\) and its two sets \(S^0\) and \(S^1\) along the directions (1, 0) and (1, 2). The dark squares are elements of S; (b) the switching component \(\overline{S}'\) obtained by \(S'\) after changing the values of its elements; (c) the recursive step of the construction of a switching along the n-th direction \(u_n\).

From the definition of switching component, it holds that if a set S has a switching component \(S'\) along U, then by changing the values of the elements of \(S'\), we obtain another set having the same projections. We denote this discrete set by \(\hat{S}\). Furthermore, we call the switching component obtained by changing the values of all the elements of \(S'\), its dual, and we indicate it by \(\overline{S}'\) (see Fig. 2(b)). Obviously the dual operator has period 2. We recall the following result (see [13]):

Theorem 2

Let \(\mathcal {S}\) be a class of discrete sets. An element \(S \in \mathcal {S}\) is ambiguous (in \(\mathcal {S}\)) w.r.t. to a set of directions U, if and only if S has a switching component along U such that \(\hat{S} \in \mathcal {S}\).

The following simple property, rediscovered several times (see [12]), introduces a recursive way to generate switching components along a generic set of discrete directions:

Property 1

Let \(S'\) be a switching component along \(u_1,u_2,\dots ,u_{n-1}\), and \(S''\) be the dual of the translation of \(S'\) along the further direction \(u_n\) so that \(S'\cap S'' =\emptyset \), i.e., \(S''=\{k u_n+(i,j): (i,j)\in \overline{S}' \}\), for k sufficiently large integer. The set \(S'\cup S''\) is a switching component along the directions \(u_1,u_2,\dots ,u_n\).

From this property, two main consequences follow:

  • (i) we can construct a switching component along a generic set U of directions in the recursive way shown in Fig. 2;

  • (ii) since we can construct a switching component along every U, then the class of all the possible discrete sets cannot be characterized by any set of discrete directions.

We stress that the switching components may also be composed in order to achieve complex switching configurations that connect all the elements sharing the same projections to form a connected graph structure.

If we restrict our study to the class \(\mathcal {C}\) of convex polyominoes, Theorem 1 states necessary and sufficient conditions in order for a discrete set to be characterized by projections. In particular, any set of seven directions provides uniqueness, while six do not always suffice as the U-dodecagon in Fig. 3 shows, since every set of four directions in U returns a value of the cross ratio belonging to \(\{4/3, 3/2, 2,3,4\}\).

Fig. 3.
figure 3

An example of a (dodecagonal) switching component along the directions (1, 0), (0, 1), (ab), \((-a,b)\), (a, 2b), and (2ab).

On the other hand, if we relax too much the constraints on the convexity of the sets, for example preserving convexity only along the horizontal direction, then a negative result holds, as shown in [4], Theorem 3.7:

Theorem 3

No finite set of directions characterizes the class of horizontally (resp. vertically) convex polyominoes.

Our intent is to inspect the cut-off line between those results that seems to show up when both the horizontal and vertical convexity are present.

In the same paper, it has been proposed the following

Conjecture 1

The class \(\mathcal {HV}\) is characterized by a set of four discrete directions \(U = \{(1, 0), (0, 1), u_3, u_4\}\) such that \(\rho (U)\) does not belong to \(\{4/3, 3/2, 2, 3, 4\}\).

that has been supported by computational evidence: hv-convex polyominoes were randomly generated and each of them reconstructed using its projections along a set of four directions whose cross ratio does not belong to \(\{4/3, 3/2, 2, 3, 4\}\). It was verified that the algorithm uniquely reconstructed the generated hv-convex polyominoes. In the next section, we modify the conjecture by showing a new class of 4-tuples of directions that allow switching components in hv-convex polyominoes.

3 A New Class of Switching Components

The following result from [4, 11], provides a step forward to the study of the uniqueness problem on the class \(\mathcal {HV}\):

Property 2

Let \(u_1\), \(u_2\), and \(u_3\) be three discrete directions. There is a hexagonal switching H along \(U = \{u_1, u_2, u_3\}\).

Proof

We prove the statement by construction. First of all we construct the switching S along \(u_1\) and \(u_2\), following Property 1. Then, we extend both the sides of S until they equal a k multiple of \(u_3\), and finally we add to S its dual along \(k u_3\), i.e. \(H=S\cup ku_3+\overline{S}\). The two coincident points are deleted (see Fig. 4).   \(\square \)

Fig. 4.
figure 4

The construction of the hexagonal switching along three directions \(u_1\), \(u_2\), and \(u_3\).

Observe that hexagonal switching components have just six distinct points, which is the minimal cardinality for a three directions’ switching, while the general construction along three directions defined in Property 1 requires eight points. Furthermore, each hexagonal switching is convex in the sense that it is a switching of a convex set.

However, from Property 2 it is easy to realize that hexagonal switching components are not different from those defined in Property 1: as a matter of fact, they can be obtained by translating along the direction \(u_3\) an appropriate magnification of the switching components along \(u_1\) and \(u_2\), so that two opposite of the eight points coincide and so annihilate.

Let \(U=\{u_{1},u_{2},u_{3}\}\) be a set of three directions in \(\mathbb {R}^{2}\). The group \(\mathcal {S}_{3}^U\) which permutes the indices \(\{1,2,3\}\) can be represented as a group of symmetries fixing a triangle T with edges parallel to \(\{u_{1},u_{2},u_{3}\}\). In [7, Theorem 6], the following characterization of lattice U-polygons has been determined

Theorem 4

Let \(U=\{u_{1},u_{2},u_{3}\}\) be any set of three lattice directions. Let P be a lattice hexagon. Then P is a U-polygon if and only if \(\mathcal {S}_{3}^{U}(P)=P\).

As a consequence, a hexagonal switching along \(U=\{u_1,u_2,u_3\}\) always returns a rational magnification of a lattice U-hexagon P, where the triangle T reduces to its barycenter.

Property 3

The class \(\mathcal {HV}\) cannot be characterized by a finite set of discrete directions U such that:

  • (i) at most one among the directions \(h=(1,0)\), and \(v=(0,1)\) belongs to U; and

  • (ii) all the directions in U belong to the same quadrant.

This property predicts the basic role played by the two convexity directions h and v when they belong to U; for brevity we omit its proof, that is related to the possibility of connecting sufficiently distant parts of a switching component defined as in Property 1 with a path that preserves hv-convexity. It is also easy to verify that the same construction holds when the axes direction is replaced by a generic one:

Property 4

The class \(\mathcal {HV}\) cannot be characterized by a finite set of discrete directions U not containing (1, 0) and (0, 1) and such that all but one lie in the same quadrant.

Relying on these results, we focus on the characterization of \(\mathcal {HV}\) by means of a set of four directions \(U=\{h,v,u_3,u_4\}\) such that \(\rho (U)\not \in \{4/3, 3/2, 2, 3, 4\}\).

3.1 Composing Hexagonal Switching Components Along a Diagonal Direction

The definition of hexagonal switching component along three directions suggests a possible construction of hv-convex switching operations along four directions. From [7, Corollary 7] we know that an hexagon H is a lattice U-polygon if and only if for any two diagonals of H, having direction \(v_{1},v_{2}\), there exists a symmetry \(\sigma \in \mathcal {S}_{3}^{U}\) such that \(\sigma ( \{u_{1},u_{2},u_{3}\})=\{u_{1},u_{2},u_{3}\}\), and \(\sigma (v_{1})=v_{2}\). This induces to explore further switchings of a hexagonal one when performed along a diagonal direction. We define such switchings as diagonal-hexagon switchings. Also, up to affine transformation, we can always assume that \(U=\{(a,0), (0,b), (a,b)\}\).

Property 5

For any three integer numbers abk

  • (i) there exists an hv-convex hexagonal switching \(H_k\) along the set of three directions \(U=\{(a,0), (0,b), (a,b)\}\);

  • (ii) there exists an hv-convex diagonal-hexagon switching \(H_k'\) along \(U_k'=U \cup \{(2a,2b)+k(2a,b)\}\). The same holds if \(U_k'=U \cup \{(2a,2b)+k(a,2b)\}\).

Proof

Let us consider the set \(U=\{(a,0), (0,b), (a,b)\}\) and construct the related hexagonal switching H. Then, we translate it along the direction (2ab), and we annihilate the incident points having opposite values. The obtained ten points configuration, say \(H_1=H\cup ((2a,b)+H)\), is still an hv-convex switching along U. Now we define \(H_1'=H_1 \cup ((4a,3b) +\overline{H}_1)\). It is immediate to see that \(H_1'\) is an hv-convex switching along \(U'=U\cup \{(4a,3b)\}\). Now, by iterating the construction for k times, we get

$$\begin{aligned} H_k=H \bigcup _{i=1}^k (k(2a,b)+H) \,\,\, \text{ and } \,\,\, H_k'= H_k \cup ((2a,2b)+k(2a,b) +\overline{H}_k). \end{aligned}$$
(1)

Then \( H_k'\) provides an hv-convex switching component with respect to the set \(U_k'=U \cup \{((2a,2b)+k(2a,b))\}\). In the case \(U_k'=U \cup \{((2a,2b)+k(a,2b))\}\), the statement follows with a quite analogous argument.   \(\square \)

Theorem 5

The cross ratio of any diagonal-hexagon switching \(U_k'\) is

$$\rho (U'_k)=2\frac{k+1}{k}.$$

Proof

Suppose that \(U_k'=U \cup \{((2a,2b)+k(2a,b))\}\). Then, being \(a,b,k>0\), the slope \(m_k\) of the k-dependent direction of \(U_k'\) satisfies

$$0< m_k=\frac{(k+2)b}{2(k+1)a}< \frac{b}{a}.$$

Assume the slope as a projective coordinate. Then, by arranging increasingly the four slopes of the directions in \(U_k'\), the computation of their cross ratio \(\rho (U_k')\) provides

$$\rho (U_k')=(0,\,\,m_k,\,\,\frac{b}{a},\,\,\infty )=2\frac{k+1}{k}.$$

In case \(U_k'=U \cup \{((2a,2b)+k(a,2b))\}\), it results

$$0< \frac{b}{a} <m_4= \frac{2(k+1)b}{(k+2)a},$$

so that

$$\rho (U_k')=(0,\,\,\frac{b}{a},\,\, m_k, \,\,\infty )=2\frac{k+1}{k},$$

and the statement follows.   \(\square \)

Remark 1

Note that \(\rho (U_1')=4\), \(\rho (U_2')=3\), and

$$\lim _{k\rightarrow \infty }\rho (U_k')=2.$$

Moreover, up to rearranging the order of the directions, the values 4/3 and 3/2 can be turned to 4 and 3, respectively. This points out that the set of cross ratio determined by diagonal-hexagon switching

$$\left\{ 2\frac{k+1}{k},\,\,k\in \mathbb {N},\right\} ,$$

naturally refines the set \(\{4/3, 3/2, 2, 3, 4\}\), that prevents uniqueness in the class \(\mathcal {C}\) of convex lattice sets.

Figure 5 shows the above result in the case when \(k=3\) and the related switching along the directions \(U'=\{(a,0),(0,b),(a,b),(8a,5b)\}\) whose cross ratio is 8 / 3.

Fig. 5.
figure 5

The composition of four hexagonal switchings, i.e., \(k=3\) w.r.t. the set \(U=\{(a,0),(b,0),(a,b)\}\) along the direction (2ab) and the related switching components. The fourth obtained direction is (8a, 5b).

3.2 General Construction of the Switching Components

Finally, we push to the last step our construction of a new class of hv-convex switching components by observing that successive shifts along one of the two directions \(u=(2a,b)\) or \(v=(a,2b)\) of the hexagon H can also generate new 4-tuples of elements for the set of directions \(U'\).

In particular, let us consider a sequence of \(k_1\) successive shifts of H along u and \(k_2\) along v: the obtained switching along U, say \(H_{k_1,k_2}\) is represented in Fig. 6(a). Following Eq. (1), we define

$$ H'_{k_1,k_2}= H_{k_1,k_2} \cup ((2a,2b)+k_1(2a,b)+k_2(a,2b) +\overline{H}_{k_1,k_2}). $$

The following holds

Theorem 6

The set \(H'_{k_1,k_2}\) is an hv-convex switching along the directions \(U'=U\cup \{u_4\}\), with \(u_4=(2a,2b)+k_1u+k_2v\).

The proof can be achieved after observing that \(H_{k_1,k_2}\) is an hv-convex switching along U, and the union with its dual, once translated along the direction \(u_4\), preserve both the projections along \(u_4\), by definition, and the hv-convexity.

Figure 6(b) shows an example of the switching when \(k_1=1\) and \(k_2=3\). We again underline that the cross ratio of the obtained direction \(u_4=(2a+k_12a+k_2,2b+k_1b+k_22b)=(7a,9b)\) does not belong to the set \(\{4/3, 3/2, 2, 3, 4\}\).

Fig. 6.
figure 6

(a) a generic composition of \(k_1\) hexagonal switchings along the direction (2ab) and \(k_2\) along the direction (a, 2b); (b) an example when \(k_1=1\) and \(k_2=3\). The obtained fourth direction is (7a, 9b).

After defining the set of discrete directions

$$D=\{(2a+k_12a+k_2,2b+k_1b+k_22b): k_1, k_2 \in \mathbb {N}\},$$

Theorem 6 allows us to modify Conjecture 1 as follows:

Conjecture 2

The class of hv-convex polyominoes is characterized by a set of four discrete directions \(U=\{(1,0),(0,1),(a,b),u_4\}\) such that:

  • \(\rho (U)\not \in \{4/3, 3/2, 2, 3, 4\}\);

  • \(u_4 \not \in D\).

4 Conclusions and Perspectives

In this paper we have addressed the problem of generalizing the results of [10], related to the lattice convex sets, to the wider class \(\mathcal {HV}\) of hv-convex polyominoes. We have obtained a few preliminary properties towards a detailed answer to Conjecture 1. In particular we have obtained a complete characterization of diagonal-hexagon switching in \(\mathcal {HV}\), and we have determined all the possible values of the cross ratio involved in the corresponding ambiguous reconstructions. These have been explicitly exhibited also from the geometric point of view.

As a further step we wish to investigate different extensions of the presented constructions, in order to get a general description of all switchings preserving hv-convexity. This would allow to get a uniqueness result for hv-convex polyominoes, as well as to get new information on the geometric meaning of the values of the cross ratio related to ambiguous reconstructions