Skip to main content
Springer logoLink to Springer
. 2026 Oct 7;88(11):198. doi: 10.1007/s11538-026-01754-9

A High Throughput and User-Friendly Computational Tool for Quantifying and Visualizing Symmetry Variation in Image Datasets

Liam D O’Brien 1,✉, Punit Gandhi 2, Maria-Veronica Ciocanel 3,4, Adriana T Dawes 1,5,✉
PMCID: PMC13645982  PMID: 42842049

Abstract

Symmetry is a fundamental property of biological systems, yet it is commonly reduced to discrete, subjective classifications that fail to capture the continuous and graded nature of symmetry in real organisms. We present a high-throughput, user-friendly computational framework for quantifying and visualizing biological symmetry as a continuous variable using transformation information (TI), an information theoretic measure that quantifies the divergence between an object and its transformed self. We establish key mathematical properties of TI, including invariance, equivariance, and Lipschitz continuity, that guarantee robustness to transformations such as translation, rotation, reflection, and rescaling, enabling reliable symmetry quantification across heterogeneous image datasets without manual landmarking or image alignment. Building on this theoretical foundation, we introduce a computational pipeline that automates symmetry center detection, TI curve computation, and visualization of the symmetry data using functional principal component analysis (fPCA). We demonstrate the utility of this framework on two biological datasets: a large collection of angiosperm flower images, where we investigate rotational and reflectional symmetries, and a dataset of simulated fern images, where we investigate fractal self-similarity under scaling and translation. Our analysis of the floral dataset provides novel evidence of convergent evolution. In both datasets, fPCA of the resulting TI profiles reveals that symmetry is best characterized as a continuum rather than a set of discrete classes, and there is subtle morphological variation that is not captured by traditional categorical approaches. Together, these results suggest that TI provides a mathematically principled and biologically informative foundation for integrating symmetry into quantitative evolutionary, ecological, and developmental models.

Supplementary Information

The online version contains supplementary material available at https://doi.org/10.1007/s11538-026-01754-9.

Keywords: Transformation information, Asymmetry quantification, Approximate symmetry, Symmetry classification, Image analysis, Floral symmetry

Introduction

Symmetry is a fundamental property of living systems, manifesting across multiple temporal and spatial scales, and driving biological functions such as fecundity and evolvability. In flowering plants, for example, symmetries in floral structures are tightly linked to their reproductive behavior and ecological interactions (Endress 1999; Luo et al. 1996; Neal et al. 1998; Sargent 1539; Fenster et al. 2004; Nikkeshi et al. 2015; Wang et al. 2023).

Uncovering the role of symmetry in biology relies on large-scale phenotyping; however, researchers often default to treating symmetry as a discrete, system-specific variable and classify specimens based on subjective visual criteria. Flowers, for instance, are typically grouped as actinomorphic (radial symmetry) or zygomorphic (bilateral symmetry); yet, many flowers fit neither category, making the classification inadequate. Such categorical approaches bias symmetry measurements, prevent meaningful comparison across heterogeneous populations, and impose an artificial structure on organisms that are inherently variable. By reducing a rich spectrum of symmetry to a set of subjective categorical labels, scientists risk discarding subtle information that may hold the key to understanding how symmetry affects biological fitness.

Mathematical descriptions of symmetry have traditionally relied on the rigorous framework of group theory, which defines symmetry as invariance under a specified transformation. While this formalism is powerful, its application to biological data is severely limited. Group theory classifies objects by the subgroup of transformations they are invariant under, partitioning them into discrete symmetry types such as Cn (cyclic) or Dn (dihedral). Since biological symmetries are rarely exact, most natural objects would not belong to any symmetry class under this classification. For example, a flower with nearly but not perfect five-fold rotational symmetry is assigned to the same class as a completely asymmetric object. Moreover, even among objects sharing a symmetry class, meaningful morphological differences are discarded. As a result, rigid group-theoretic definitions fail to capture the graded and continuous nature of symmetry in real biological data.

Methods for measuring approximate symmetry and morphology in biology have relied heavily on landmark-based morphometrics or outline analyses (Klingenberg 2002), which quantify deviations from ideal symmetry by comparing homologous points or structures reflected across some axis. More recent work has aimed to automate and generalize symmetry measurements. For instance, Savriama and Klingenberg (2011) extended landmark-based morphometrics to consider general symmetries. These established methods still require expert input to select biologically-meaningful landmarks and often assume bilateral symmetry across a user-selected axis. To address these issues, Gandhi et al. (2021) proposed using an information-theoretic measure called transformation information (TI) (Vstovsky 1997) for biological data. TI quantifies symmetry by comparing an object to its transformed self across a broad set of transformations. Rather than assigning each specimen to a discrete symmetry category, it represents symmetry with a function that varies continuously (in function space) and captures the full symmetry profile. TI does not require segmentation of the object or selection of key landmarks, avoiding two steps that are often difficult or subjective for biological imagery. However, this measure still requires that a meaningful set of symmetry transformations is selected, that the object of interest is isolated against a uniform black background, and that the center of the object is selected. This approach trades difficult or subjective steps for more tractable and unbiased ones, which can often be automated. Bermingham et al. (2023) also recently proposed the use of the extended persistent homology transform to automatically quantify approximate symmetries. This approach is well-suited for capturing topological changes in binary images or shapes under a symmetry transformation, whereas the TI approach captures changes in scalar-valued functions under a symmetry transformation (e.g. pixel intensity for an image).

Ciocanel et al. (2025) extended the TI framework by studying transitions in symmetry, proposing a formal analogy with bifurcation theory. This study used TI to characterize critical changes in symmetry across model-generated developmental patterns and demonstrated the sensitivity of TI to subtle changes in morphology that are not easily detected by eye.

In this work, we advance the TI paradigm by developing a robust, high-throughput, and user-friendly pipeline for symmetry analysis of image data. We first establish mathematically-desirable properties of TI, ensuring that the method works for diverse data types with minimal preprocessing (Sect. 3). Building on this theoretical foundation, we present a general computational framework and accompanying software for measuring and comparing the symmetries of image data (GitHub 2025) (Sect. 4).

We then illustrate the versatility of the approach by applying our computational framework to two distinct systems: a large dataset of angiosperm flower images and a generated dataset of ferns (Sect. 5). In the floral dataset, our continuous, function-valued symmetry measure reveals something biologically meaningful: across flowering plants, distantly-related clades contain flowers that span the gamut of symmetry types, suggesting floral symmetries evolved independently across lineages and therefore carry real functional significance, likely tied to survival in specific ecological niches. The application to simulated ferns demonstrates the flexibility of our method, which can capture symmetry under arbitrary transformations. We investigate the fractal symmetry of ferns and show that fern symmetry also exists along a continuum. Together, these applications illustrate that our framework can detect subtle morphological features that may not be observable using traditional discrete classifications, allowing researchers to move towards developing more sophisticated statistical models that can correlate a continuous, function-valued symmetry measure to functional properties in organisms.

Introduction to Transformation Information (TI)

Approximate symmetry can be measured by comparing an object to a transformed version of the object. When the transformed object is similar to the original, the object is approximately symmetric under that transformation. Objects of interest in biology may include concentrations of biochemicals, patterns of cell fates, or image datasets, which can all be represented with a distribution μ(x) that takes a spatial coordinate x as input and outputs a real number. Furthermore, we can transform μ(x) by composing it with an appropriate (invertible) transformation Ta. A distribution μ(x) transformed by Ta is given by the distribution μ(Ta-1x), which we denote Taμ (as in representation theory, where Ta can be thought of as a acting on μ (Golubitsky et al. (2012), Ch. 7). Transformation information (defined below) measures the divergence between μ and Taμ, yielding a value of zero if they are identical and a large value if they are very different. Thus, the value of TI provides a measure of deviation of the object from being (exactly) symmetric.

Definition 1

(Transformation information) Let μ:D→R>0 with D⊂Rn be a measurable and positive-valued function, and let {Ta:Rn→Rn}a∈A be a set of invertible transformations smoothly parameterized in a. Then the transformation information of μ under the family of transformations {Ta} is given by

TI[μ,Ta]=∫D~μ(x)logμ(x)Taμ(x)dx, 1

where D~=D∩Ta(D).

The measure is analogous to quantifying the relative entropy between μ and Taμ, which can be interpreted as the inefficiency in describing the system with the distribution Taμ when the true distribution is μ. Relative entropy provides a conceptually-rich framework that connects symmetry with ideas from statistical mechanics and dynamical systems. Alternative definitions of TI, which require μ to be normalized or alter the region of integration, have been considered and are discussed in Sect. A.1.

Remark 1

The assumption that μ is measurable guarantees that the integral is defined. In applications to data, this assumption is typically satisfied.

Remark 2

When data consists of images, a continuous signal is sampled on a discrete domain D. When D is discrete, D~ is empty for many transformations Ta, so TI[μ,Ta] can vanish even for highly asymmetric data. We address this issue in Sect. 4.3.

Remark 3

To ensure that TI[μ,Ta]<∞, we often require that D is compact (equivalently, closed and bounded) or that μ is bounded below by some positive value.

Remark 4

Although we primarily observe rotational and bilateral symmetry in biological systems, transformation information can measure the symmetry of an object under any invertible transformation. We often assume that {Ta} is a subset of the invertible affine transformations on Rn, denoted Aff(n); however, we can certainly consider more general transformations such as the set of diffeomorphisms from Rn→Rn.

Remark 5

An affine transformation on Rn

Ta(x)=Ax+b

can be written in homogeneous coordinates with the (n+1)×(n+1) augmented matrix below.

Ab0T1x1=Ta(x)1

In this notation, composition of affine transformations is equivalent to matrix multiplication. Furthermore, the determinant of an affine transformation is defined as the matrix determinant in homogeneous coordinates.

Definition 2

(Local Minima and Maxima) Let f:X→R be a function on a topological space X. x∈X is a local minimum (respectively, maximum) if there exists some neighborhood of x, Nx such that for every y∈Nx, f(x)≤f(y) (respectively, f(x)≥f(y)).

Definition 3

(Approximate Symmetries and Maximal Asymmetries) Let {Ta}a∈A be transformations as introduced in Definition 1. Suppose that A is a topological space. Then Ts is an approximate symmetry (respectively, maximal asymmetry) if s is a local minimum (respectively, maximum) of TI[μ,Ta] as a function of a (Fig. 1).

Fig. 1.

Fig. 1

We represent the leaf image by a positive-valued function μ and compute TI[μ,Rθ], where Rθ denotes rotation by angle θ (see Sect. 4). The resulting TI curve is shown above. Local minima and maxima of the curve identify approximate symmetries and maximal asymmetries, respectively. For example, R(34π/180) is the maximal asymmetry associated with the local maximum at θ=34π/180 (blue diamond), while R(62π/180) is the approximate symmetry associated with the local minimum at θ=62π/180 (green triangle). The corresponding rotated images (bottom) demonstrate low overlap for the maximal asymmetry and high overlap for the approximate symmetry

Remark 6

For isometries Ta:D→D, approximate symmetries are generalizations of exact symmetries because TI[μ,Ta]≥0 and TI[μ,Ta]=0 if and only if μ=Taμ.

Remark 7

When thinking of TI[μ,Ta] as a function of a, we will refer to the graph {(a,TI[μ,Ta])}⊂A×R≥0 as the TI curve (Fig. 1).

Remark 8

While approximate symmetries may themselves be a discrete set, the TI curve encodes more information. The full TI curve, rather than the approximate symmetries, is the primary object of our analysis, and the fPCA of Sect. 5 operates on these curves as elements of a function space.

The center of an object μ is important for considering reflections and rotations; we would like to rotate about the center and reflect across an axis that passes through the center. Heuristically, the center of an object is the point in the domain of μ from which we can observe the most symmetry. We define this formally below.

Definition 4

(Symmetry Center) Consider the continuous function μ:D→R>0. Suppose that D⊂Rn is compact and that μ>δ for some δ>0. Let TI be defined as in Definition 1. Furthermore, assume that μc is defined as

μc(x)=μ(x-c)x∈D∩(D+c)δx∈D\(D+c). 2

Now, define

Mc={a∈A:ais a local minimum ofTI[μc,Ta]},

and let

M¯c=Mc\{a∈A:Ta=id}.

Then the symmetry center of μ is given by

x¯:=argminc∈D{infa∈M¯cTI[μc,Ta]}. 3

In our computational pipeline, we use Definition 4 to identify the symmetry center of each image, finding the point from which we can observe the smallest TI value (see Fig. 2). However, there are various ways to define the “most symmetry.” For example, one may consider the symmetry center to be the point with the largest number of approximate symmetries, with the lowest average TI, or with the smallest min to max ratio. In our simulations, we find that each of these notions finds approximately the same symmetry center of the object.

Fig. 2.

Fig. 2

To locate the symmetry center, we sample a grid of candidate points in the domain (shown in green). For each grid point, we compute the corresponding TI curve as if that point were the origin (see Sect. 4); two examples are shown below. We then record the smallest local minimum (excluding ones that correspond to the identity symmetry) for each potential symmetry center point. The point producing the smallest local minimum is then selected as the symmetry center of the image, shown by the red dot in the middle-right panel. In this case, the TI curve in the bottom right plot attains the smallest local minimum (green). For comparison, the TI curve obtained by rotating about the red point on the middle-left image has a higher minimum (pink)

We note one limitation of Definition 4 in practice: because TI is computed on D~=D∩Ta(D), candidate centers that produce little overlap between D and Ta(D) under some transformation are evaluated on a smaller domain and can therefore attain spuriously small TI values, biasing the argmin in (3) towards such candidates. This is the same concern discussed in Sect. A.1, where we provide an alternative definition of TI that bypasses this issue but implies a slightly different notion of “symmetry." We show that the alternative definition of TI improves center estimation in Sect. A.3.

Another natural alternative is the intensity-weighted mean or centroid of the pixel coordinates

x¯:=∑x∈Dxμ(x)∑x∈Dμ(x), 4

which is far cheaper to compute. In our dataset it lies close to the symmetry centers obtained from Definition 4, and may be a reasonable substitute when computational cost is a concern (see Sect. A.3).

We nonetheless retain Definition 4 for our applications. The centroid measures the distribution of intensity rather than symmetry, so agreement is a property of these images rather than a general guarantee, and computing TI about the centroid yields strictly larger minima than computing it about the symmetry center. The centroid also yields a single point regardless of the symmetry transformation family. By contrast, the symmetry center locates the point from which the object exhibits the most symmetry and is adapted to the symmetry of interest.

Remark 9

We assume that μ is continuous and D is compact to ensure that the argmin in (3) exists. In our application to image data, D represents a finite set of pixels, meaning that the argmin will exist despite μ being discontinuous.

Remark 10

When searching for the symmetry center, we define M¯c so that we only consider transformations Ta that are not equal to the identity map, id. If instead we considered Mc such that Ta=id for some a∈Mc, then for every c, we have that

mina∈McTI[μc,Ta]=TI[μc,id]=0.

implying that every c∈D is a symmetry center, which is not useful for our analysis.

Mathematical Properties of TI

A central requirement for any symmetry measure is that it should capture intrinsic structure rather than arbitrary choices in how an object or image is presented. In our context, this means that TI should be robust to affine transformations of the object of interest such as translation, rotation, reflection, and rescaling. This is especially important when analyzing large datasets, since inspecting each image individually is impractical. In this section, we show that two images representing the same object, but taken at different positions, orientations, or sizes produce TI curves that only differ in predictable, well-characterized ways. For example, when {Ta} denotes rotations by angle a, rotating an image does not change the TI curve despite the change in pixel arrangement. This property allows TI to reliably detect symmetries of images without requiring that they be perfectly aligned or scaled.

As before, to show that TI is robust, we assume that our object of interest μ is a measurable, real-valued function on Rn, bounded below by some positive constant δ. The results, however, hold for objects or images defined on D⊊Rn if there is a sufficiently large uniform background, as proven below (Proposition 1, Fig. 3). Furthermore, although we prove all results for functions on Rn, similar results hold for functions on Zn, such as image data (see Sect. 4.3).

Fig. 3.

Fig. 3

Schematic illustrating Proposition 1. Left: when the domain is small relative to the leaf, the set D~ (bottom left) cuts off parts of the leaf, unlike in R2. Right: extending the uniform background ensures D~ contains both the original and transformed leaf; since the overlapping background contributes 0 to TI, Proposition 1 shows that the TI results match those of a function defined on all of R2

In Proposition 1 below, g(x) defined on F represents the object of interest while the constant function m on Rn\F represents the uniform background. If a domain D satisfies the specified properties, then TI is the same whether considering μ on the entire space or restricted to D.

Proposition 1

(Large background domain makes TI robust) Let μ:Rn→R be defined as follows:

μ(x)=g(x)x∈Fmx∈Rn\F

for some F⊂Rn and some constant m>0. Let {Ta:Rn→Rn}a∈A arbitrary family of invertible transformations. Furthermore, let D⊂Rn be such that F⊂D and Ta±(F)⊂D for all a∈A. Then

TI[μ,Ta]=TIμ|D,Tafor alla∈A.

Proof

Let D~=D∩Ta(D). Since F⊂D and Ta±(F)⊂D for all a, μ|Rn\D~≡m and (Taμ)|Rn\D~≡m. Therefore, we have that

TI[μ,Ta]=∫RnμlogμTaμ=∫D~μlogμTaμ+∫Rn\D~μlogμTaμ=∫D~μlogμTaμ+∫Rn\D~mlogmm=∫D~μlogμTaμ=TIμ|D,Ta.

□

Since an object with a sufficiently large uniform background has the same TI as an object defined on Rn, we assume the object is defined on Rn for the rest of this section.

Properties for General Transformations

To formally establish the robustness of TI, we analyze its behavior when a transformation A is applied to the object μ. We consider the general case where A is an affine transformation and may represent a combination of translation, rotation, and scaling. We show that the TI curve of the transformed data Aμ is not an arbitrary new function, but a predictable mapping of the original. This allows us to prove that the core information about the symmetry is preserved despite changes in the object’s orientation or position.

The following identity characterizes how TI changes when an affine transformation acts on μ. Transforming the object of interest μ transforms the TI curve in a similar way. Loosely speaking, the “shape” of the TI curve will stay the same when an affine transformation is applied to μ.

Remark 11

For an affine transformation A∈Aff(n), with determinant as defined in Remark 5, the quantity |det(A)| is the factor by which A scales volumes; for any measurable set E⊂Rn with image AE:={Ax:x∈E}, we have vol(AE)=|det(A)|vol(E). Writing χE for the indicator function of E and observing that χE(A-1x)=χAE(x), it follows that

∫RnχE(A-1x)dx=|det(A)|∫RnχE(x)dx.

Approximating by simple functions extends the identity to any integrable f:Rn→R, so that

∫Rnf(A-1x)dx=|det(A)|∫Rnf(x)dx. 5

This is the change of variables x↦Ax applied in the proofs that follow, and it is the source of the factor |det(A)| in (6).

Proposition 2

(TI curve of transformed data is conjugate) Let μ:Rn→R>0 be a function bounded below by some positive constant δ. Furthermore, let A,B∈Aff(n). Then

TI[μ,B]=1|detA|TI[Aμ,ABA-1]. 6

Proof

TI[Aμ,ABA-1]=∫AμlogAμABA-1Aμ=∫μ∘A-1logμ∘A-1μ∘A-1∘A∘B-1∘A-1=∫μ∘A-1logμ∘A-1μ∘B-1∘A-1=|det(A)|∫μlogμμ∘B-1(x↦Ax)=|det(A)|TI[μ,B].

□

Since the “shape" of the TI curve is the same when an affine transformation acts on μ, some structure in the set of approximate symmetries of μ should also be preserved. We show below that transforming the data does not change the number of approximate symmetries. In fact, the set of approximate symmetries is conjugate.

Proposition 3

(Symmetries of transformed data are conjugate) Let μ:Rn→R>0 be a function bounded below by some positive constant δ. Suppose {Ta}=Aff(n) with the standard topology. If S⊂Aff(n) is the set of approximate symmetries of μ, then for any A∈Aff(n), ASA-1 is the set of approximate symmetries of Aμ.

Proof

Let M∈Aff(n) be an approximate symmetry of μ (Definition  3). Then by definition, there exists some neighborhood of M, call it NM, such that for all B∈NM, TI[μ,M]≤TI[μ,B]. Using (6), we can immediately see that for any A∈Aff(n) and any B∈NM, we also have that

TI[Aμ,AMA-1]≤TI[Aμ,ABA-1]. 7

Consider the neighborhood of AMA-1 given by N¯=ANMA-1. By (7), for every C∈N¯ we have that

TI[Aμ,AMA-1]≤TI[Aμ,C]. 8

Since there exists a neighborhood of AMA-1 given by N¯ such that for every element C∈N¯, (8) holds, AMA-1 is an approximate symmetry of Aμ by definition. Since this holds ∀M∈Aff(n), we have shown that ASA-1 is a subset of the approximate symmetries of Aμ. We can prove the reverse inclusion in the same manner. □

We end this section by showing that scaling μ results in scaling the TI curve and thus does not change the set of approximate symmetries.

Proposition 4

(Scaling an object scales TI) Let μ:Rn→R>0 be a function bounded below by some positive constant δ, and consider the scaling matrix S=sI for s≠0, where I is the n×n identity matrix. Then for any A∈Aff(n),

TI[Sμ,A]=snTI[μ,A]

Proof

TI[Sμ,A]=∫SμlogSμASμ=∫μ∘S-1logμ∘S-1μ∘S-1∘A-1=|det(S)|∫μlogμμ∘S-1∘A-1∘S(x↦Sx)=sn∫μlogμμ∘A-1(Scommutes)=snTI[μ,A].

□

Collectively, these results demonstrate that while affine transformations may shift or scale the data, the resulting TI curves and their approximate symmetries remain conjugate to the original. This mathematical consistency ensures that the intrinsic symmetry of an object, as measured by TI, is preserved under deformation, providing a reliable foundation for empirical analysis. Building on this general framework, we now focus on rotational and reflectional symmetries, which are particularly important in biological systems.

Properties for Rotations and Reflections

In most biological applications, we are interested in rotational and reflectional symmetries given by the transformations {Rθ} for θ∈[0,2π) and {κθ} for θ∈[0,π) (with the subspace topology inherited from R). In homogeneous coordinates (Remark 5), reflections and rotations in R2 take the form

Rθ=cos(θ)-sin(θ)0sin(θ)cos(θ)0001, 9
κθ=cos(2θ)sin(2θ)0sin(2θ)-cos(2θ)0001. 10

Note that reflections only need to be defined for θ∈[0,π) because κθ=κθ+π.

Considering these transformations leads to special invariance and equivariance properties of the TI curve when we reorient the object μ by taking Rφμ or κφμ. To describe these properties, we fix a function μ and refer to the TI curves of TI[μ,Rθ] and TI[μ,κθ] by TIrot(θ) and TIref(θ), respectively. We also periodically extend TIref(θ) so that both TI curves are defined on [0,2π).

Next, we define the operators

Frot:μ↦TIrot(θ), 11
Fref:μ↦TIref(θ). 12

Lastly, define the following transformations on [0,2π):

R¯φ(θ)=θ+φmod2π, 13
κ¯φ(θ)=2φ-θmod2π, 14

and as before denote the transformed versions of the TI curves as

R¯φTI(θ):=TIR¯φ-1(θ),κ¯φTI(θ):=TIκ¯φ-1(θ).

See Fig. S1 for examples of these transformations. We then have the following result on how TI commutes with rotation and reflection transformations.

Proposition 5

(Equivariance of Frot and Fref under rotation and reflection of μ) Let μ:R2→R>0 be some function bounded below by a positive constant δ. Furthermore, let Frot, Fref, R¯φ, and κ¯φ be defined as in (11)-(14). Then the following equations hold for every φ∈[0,2π).

Frot(Rφμ)=Frot(μ) 15
Frot(κφμ)=κ¯0Frot(μ) 16
Fref(Rφμ)=R¯φFref(μ) 17
Fref(κφμ)=κ¯φFref(μ). 18

It follows that:

  1. If S is the set of rotational approximate symmetries of μ, then S is the set of rotational approximate symmetries for Rφμ.

  2. If S is the set of rotational approximate symmetries of κφμ, then κ¯0S is the set of rotational approximate symmetries for κφμ.

  3. If S is the set of reflectional approximate symmetries of μ, then R¯φS is the set of reflectional approximate symmetries of Rφμ

  4. If S is the set of reflectional approximate symmetries of μ, then κ¯φS is the set of reflectional approximate symmetries of κφμ.

Figure 4 shows an illustration of Proposition 5 for a flower image. In Sect. A.2, we provide the proofs for these statements.

Fig. 4.

Fig. 4

Effect of image transformations on TI. In row 2 (rotational symmetries), the TI curve is invariant under rotation (col. 2), reflected across θ=0 modulo 2π (green line) under image reflection (col. 3), and scaled by (1/2)2 under image scaling (col. 4). In row 3 (reflection symmetries), rotation by 5π/6 translates the TI curve by the same amount (col. 2), reflection across θ=5π/6 the curve across that axis modulo 2π (green line) (col. 3), and scaling again multiplies the TI curve by (1/2)2 (col. 4). Red stars highlight points that help visualize the transformations. Small variations in TI curves arise from numerical error and boundary effects

Computational Pipeline

We now describe our MATLAB computational pipeline for calculating the transformation information of image data. The pipeline consists of the following steps, which we explain in further detail in this section:

  1. Preprocessing images.

  2. Representing an image with a real-valued function μ¯ on a finite domain.

  3. Computing TI of image data.

  4. Centering μ¯ to obtain a new function μ.

Preprocessing Images

TI is designed to reliably extract symmetry information with minimal user input. Common imaging techniques, such as fluorescence microscopy or slide imaging, provide the uniform backgrounds necessary for high-fidelity analyses, meaning TI can often be applied directly to raw data.

In our applications (Sect. 5), we ensure that the images have uniform black backgrounds through either controlled imaging conditions or straightforward digital background removal. In cases where images have light backgrounds or backgrounds with significant variations in pixel intensity, simple preprocessing steps such as taking the negative, smoothing, or thresholding can be employed to isolate the object of interest. These minor adjustments ensure that the resulting TI curves faithfully reflect the symmetry of the data. For further details on these implementations, see Sect. A.4 and Fig. S2.

Representing Each Image with A Real-Valued Function μ¯ on a Finite Domain

An image can be represented as a an array of three ℓ×w matrices R, G, and B that represent the intensities of red, green, and blue light at each pixel on a scale from 0 to 255. We convert an image to grayscale by taking a weighted sum of R, G, and B. The result is a single grayscale matrix M=(mij) with 0≤mij≤255 for any i, j. We define the representative function for the image as

μ¯(i,j)=mij+δ 19

for some δ>0 (Fig. S2). We add a small δ value to each image to ensure that the function is positive on its domain, as is required to compute TI. By Proposition 6 (Lipshitz continuity of μ↦TI[μ,Ta]), adding a small δ will only change the TI curve by a small amount. In our applications to flowers and ferns, we take δ=1. Note that the domain D of μ¯ is the finite set

D={i:1≤i≤ℓ}×{j:1≤j≤w}. 20

Remark 12

The weighted sum of R,G, and B matrices can be adjusted to emphasize certain colors. For example, Gandhi et al. (2021) emphasize green by taking the brightness of green minus the average pixel brightness (M=(2G-R-B)/3) when analyzing approximate symmetries of the unicellular freshwater desmid Micrasteria, which is a type of green algae. In Fig. S3, we demonstrate this method for an image of a leaf on dirt.

Computing TI of Image Data

In computing the TI of image data, we note that a grayscale image μ¯ (19) is defined on a finite domain D; therefore, the set D~=D∩Ta(D) will almost always be empty (see Fig. 5), and TI will thus be zero. To avoid this issue, we redefine Taμ¯ on a subset of the lattice of integers by using linear interpolation of μ¯ between the points in Ta(D). For the remainder of this manuscript, we will abuse notation and assume that we have already performed this process when considering the transformed image Taμ¯, so that it is defined on a set that we denote as T~a(D)⊂Z2. Then, for the application to images, we can rewrite TI as

TI[μ¯,Ta]=∑(i,j)∈D~μ¯(i,j)logμ¯(i,j)Taμ¯(i,j)

where D~=D∩T~a(D).

Fig. 5.

Fig. 5

An image μ¯ as in Sect. 4.2 is supported on a lattice of pixels D (top left). Thus, the transformed image Taμ¯ is supported on a transformed domain Ta(D) (top right). Taking the intersection of these domains (bottom), no pixels align perfectly, so D~=D∩Ta(D)=∅

Centering μ¯ to Obtain a New Function μ

To analyze an image’s invariance under rotations and reflections, we must first establish its symmetry center (Definition 4). Given a grayscale image represented as a function μ¯:D→R (Sect. 4.2) and a set of transformations {Ta}, the symmetry center can be found using Definition 4.

Numerically, we begin by selecting a grid of candidate symmetry centers c∈D. Candidate centers are restricted to the central 25% of the image since candidates near the boundary produce trivial symmetries (Sect. 2, Fig. 11). For each candidate, we translate the image so that c is mapped to the origin, obtaining the centered image μ¯c. Fixing the center, we compute transformation information TI[μ¯c,Ta] and find the approximate symmetries, excluding the identity symmetry. The strongest approximate symmetry, given by the smallest local minimum of the TI curve, is stored (Fig. 2). Repeating this procedure over all candidate symmetry centers c produces a scalar value for each candidate. The true symmetry center is then defined as the point c at which this value achieves its minimum. We then set μ:=μ¯c to be the final function for our analysis. Details of the implementation, including discretization choices, and peak-detection procedures are provided in the accompanying code repository (GitHub 2025).

Fig. 11.

Fig. 11

As discussed in Sect. A.1, using Equation (21) helps avoid artificial symmetries that may arise with Definition 1. For some images, this provides an improvement in the center detection. Left: the rotational center detected with Definition 1 is far from the flower. Rotating the image by 214π/180 about that center places the rotated flower entirely on the background of the original image, yielding an artificially small TI value. Right: using Equation (21) for TI, the rotational center falls in the middle of the flower

In our applications, we compute the symmetry center for two distinct transformation groups: reflections {κθ} across an axis at angle θ, and rotations {Rθ} by angle θ (9),(10). We denote the resulting reflectional symmetry center as x¯κ and the rotational symmetry center as x¯R. Our pipeline produces four specific TI curves:

  1. Rotation about x¯R: TI[μ¯x¯R,Rθ].

  2. Reflection about x¯R: TI[μ¯x¯R,κθ].

  3. Rotation about x¯κ: TI[μ¯x¯κ,Rθ].

  4. Reflection about x¯κ: TI[μ¯x¯κ,κθ].

Remark 13

As a consequence of Proposition 7, if an object has perfect reflection symmetry, then the TI curves for rotations and reflections contain identical information.

Applications

We apply the computational framework outlined in Sect. 4 to two datasets of flower and respectively fern images. The resulting collection of TI curves characterizes the symmetries present in each image, enabling the use of functional data analysis to explore correlations between symmetry and specific functional properties of the specimens. As an initial step, we project each image’s TI curve onto the first two functional principal components (i.e. functional principal component analysis (fPCA)) using the PACE toolbox (Yao et al. 2003) for the flower TI curves and Shi et al. (2022)’s code for the fern TI curves. We use two methods as each is optimized for functions on R and R2, respectively.

In the floral dataset, the fPCA plots (Fig. 6) reveal that TI curves overlap across evolutionarily distinct clades, suggesting that symmetry types evolved independently and are therefore functionally significant. In the fern dataset, we investigate fractal symmetry, demonstrating that TI can represent arbitrary symmetry transformations. In both applications, the visualizations demonstrate that the symmetries are distributed continuously in the function space of TI curves, rather than discrete clusters based on idealized symmetry categories.

Fig. 6.

Fig. 6

fPCA of TI curves by rotation about the rotational symmetry center (TI[μx¯R,Rθ]) reveals a continuous landscape of symmetries. Top: rosid curves projected onto the first two principal components, capturing 85.9% of the variance. Two branches emerge corresponding to 5-fold and 4-fold symmetries. Where the branches converge, flowers have indistinct petals and small variations in their TI curves. Bottom: all projected TI curves, color-coded by clade, capturing 71.9% of the variance. Flowers with radial symmetry cluster along a central axis, transitioning from indistinct to well-defined petals from left to right, while flowers off the axis exhibit bilateral symmetry. The flower images presented on the graphs are stock images that closely match the image data used for our analysis (Descouens 2022; Game 2017; Starr and Starr 2026; North Queensland Plants 2026; Reese 2024; falcon_311 2025; Carr 2005; Edison and Ford Winter Estates 2010; Smith 2024)

Floral Symmetries

We begin by investigating the symmetries of flowers from the Plant Gateway poster (Byng et al. 2018). Using the computational pipeline described in Sect. 4, we generate TI curves by rotation and reflection for each image. We then perform fPCA and present the results for rotational TI in Fig. 6. The analogous results for reflectional TI are included in Sect. A.5. For our dataset, the remaining two TI curves (TI[μ¯x¯R,κθ] and TI[μ¯x¯κ,Rθ], Sect. 4.4) are redundant since the rotational center x¯R and reflectional center x¯κ agree closely (Sect. A.3). The rotational fPCA results show that floral symmetry exists along a continuum rather than within the traditional discrete categories of bilateral (zygomorphic) and radial (actinomorphic) symmetries. Notably, we see in the bottom panel of Fig. 6 that points with different colors, representing flowers from different clades, are intermixed. This shows that the range of exhibited symmetries are represented within each clade, providing evidence that the symmetries evolved independently and are not merely incidental but adaptive. We come to the same conclusion by analyzing reflectional symmetry (Sect. A.5).

The fPCA also effectively captures intuitive morphological differences; for example, the fPCA of rosids presents two diverging branches. Flowers towards the tip of the upper branch have 5-fold rotational symmetry, while those at the tip of the lower branch have 4-fold rotational symmetry. Towards the left of the plot, the flowers are characterized by indistinguishable petals and small variations in symmetry. These trends, however, are not visually apparent from the embeddings of reflectional TI curves (Sect. A.5).

The continuum of symmetry can be represented using a variety of visualization techniques. We choose fPCA here because it is a classical and well-established approach for comparing curves; however, there may be benefits to other visualizations depending on the application of interest. In Fig. 7, we present two such alternatives. Both methods begin by vectorizing the TI curves as (TI[μ,Rθ1],...,TI[μ,RθN]) for some 0≤θ1<...<θN≤2π. The top panel applies standard principal component analysis (PCA) to these vectors and projects them onto the first two principal components. The bottom panel computes the GWτ distance (Kravtsova et al. 2023) between TI vectors and embeds them in the plane using multidimensional scaling (MDS). GWτ is an optimal transport metric derived from the Gromov-Wasserstein distance. GWτ calculates the shape difference between two ordered data sets by representing data sets as metric-measure spaces. This measure consistently outperforms standard measures including Euclidean and Dynamic Time Warping (DTW) while being computationally efficient.

Fig. 7.

Fig. 7

Alternative visualizations of symmetry landscapes. After vectorization, TI curves are visualized using two approaches: PCA projection onto the first two principal components (top) and MDS embedding based on GWτ distances (bottom). Both representations capture the overlap in symmetry types across clades and the continuous variations in symmetry that were present in the fPCA

A systematic comparison of the strengths and limitations of these visualization approaches is left to future work.

Fern Symmetries

The TI framework accommodates various forms of symmetry. To demonstrate this, we analyzed the self-similarity (fractal symmetry) of simulated fern images under translation and scaling. Each simulated fern is the attractor of an iterated function system, where we vary a parameter to get different simulations (see Sect. A.6 for details).

The following set of transformations, expressed in homogeneous coordinates, represents the composition of scaling and translation along the positive y-axis:

graphic file with name 11538_2026_1754_Equ71_HTML.gif

Given that the transformation relies on two parameters, the resulting TI “curve” is a mapping from R2→R, as shown in Fig. 8.

Fig. 8.

Fig. 8

The TI curve for the fern (top left) under vertical translation and scaling. Since the transformation T(s,t) relies on two parameters, the TI curve is a 2-dimensional surface

We applied fPCA to these surfaces using the algorithm from Shi et al. (2022); the resulting projection onto the first two principal components is shown in Fig. 9. Complementing our observations in flowers, the ferns exhibit a symmetry continuum. There is a clear progression of symmetries, ranging from Barnsley-type ferns in the top right to Cyclosorus-type ferns in the bottom left, suggesting that future correlational studies should treat symmetry as a gradient rather than a discrete variable.

Fig. 9.

Fig. 9

Functional principal component analysis of fern TI curves. The first two principal components show a clear progression of symmetries, ranging from Barnsley-type ferns in the top right to Cyclosorus in the bottom left

We note that the fPCA plot in Fig. 9 shows a linear, ordered curve. It is not obvious that this should be the case, i.e., that the linear family of IFS’s outlined in Sect. A.6 will trace out a linear curve in the space of TI curves, since the map from any function μ to the associated TI curve is nonlinear. We also may not expect a one-parameter family of IFS’s to trace a one-dimensional curve in the space of TI curves, since the standard continuity argument does not necessarily apply here. In particular, despite the attractor Ap of the IFS varying continuously in p with respect to the Hausdorff metric, the function p↦χAp (where χAp is the indicator function of Ap) is not necessarily a continuous map into L1, meaning we cannot directly compose the operations and apply Proposition 6. It is therefore an open question whether the map from the parameter p to the associated TI curve is continuous in this case. We thus interpret the smooth linear progression in Fig. 9 as an empirical observation about this family of shapes rather than a consequence of the fern construction.

We also note that the set of fractals chosen here is relatively simple compared to real ferns, allowing us to analyze a two-parameter family of transformations to capture the fern symmetry. In more general settings, the analysis would require the exploration of symmetries in the full six-parameter family of affine transformations, which is possible with our approach, albeit computationally expensive.

Discussion

We used TI to represent symmetry as a broad, continuous spectrum of values and developed a user-friendly computational tool to measure and visualize the symmetries of image data. Applying this tool to angiosperm flower images recovered a spectrum of symmetries spanning evolutionarily-distinct clades. This revealed structure that traditional discrete classifications, such as radial versus bilateral symmetry, would have obscured and thus enabled biologically-meaningful conclusions about convergent evolution.

Traditional methods for measuring symmetry rely on user-selected landmarks. Our method still requires the user to select a family of symmetry transformations of interest and to ensure that the object is isolated against a uniform background. Despite this, the method replaces the difficult, subjective steps of landmark identification with more tractable and unbiased ones. No landmarks or homologous points are required, and the symmetry center, which would otherwise be a user-selected quantity, is detected automatically using computation (Definition 4). We demonstrate the fidelity of the method by investigating TI’s mathematical properties such as invariance, equivariance, and continuity. Equivariance and invariance ensure that the symmetry measure is agnostic to image orientation, while continuity ensures resilience to noise and measurement error. Together, these properties provide evidence that our method does not require image alignment or landmarking, and that the preprocessing steps required can be automated with standard tools (Sect. A.4).

Building on these theoretical guarantees, the computational pipeline measures and visualizes continuous symmetry across an image dataset: for each image, it locates the symmetry center, computes the TI curve, and represents the symmetry as a two-dimensional data point via functional principal component analysis (fPCA). Representing symmetry as a function rather than a scalar or a categorical descriptor preserves more geometric information about each specimen, and the resulting “symmetry space” supports quantitative comparison across an entire dataset.

For example, in the fPCA plot of the floral images (Fig. 6), we observe diverse symmetry types, yet there is substantial overlap of symmetry types between clades. This overlap suggests that similar symmetries arose independently in different evolutionary lineages. While the overlap alone does not fully establish selective mechanisms, it provides strong evidence that similar symmetries may be favored in certain environmental conditions and motivates further investigation into the role of natural selection of symmetry. It would not be possible to see this evidence without a continuous measure of symmetry.

The TI representation of symmetry also provides a foundation for testing correlations between symmetry and other quantitative traits. We anticipate that the continuous symmetry metric given by TI will offer greater predictive power than traditional categorical classifications. The integration of TI into predictive models has already shown promise in other contexts. For instance, Rostami et al. (2023) demonstrated that machine learning classifiers perform significantly better when incorporating information from TI. They demonstrated that “coarse-graining” types of actin networks based on shared symmetry led to much higher classification accuracy than classification based on the actin networks alone. In future work, we plan to use the framework proposed here to perform similar symmetry-informed classification in broader contexts. One promising application is to regular patterns of vegetation growth in dryland ecosystems  (see, e.g., Gandhi et al. (2019)), where TI may help inform the classification of spatial patterns and quantify the deviation from spatial periodicity (Kästner et al. 2024).

Several limitations of this work also provide directions for future research. Our current computational framework is optimized for two-dimensional images with uniform backgrounds. Automated background removal techniques could improve the applications to general images. Furthermore, extending the framework to three-dimensional data, such as point clouds or Z-stacks (in confocal microscopy), will be necessary to capture the full complexity of many biological structures. More generally, the TI framework can be applied beyond spatial symmetries, including higher-dimensional or nonphysical datasets where symmetry is not visually apparent yet still meaningful. Additionally, while we have established the descriptive strength of TI, the development of statistical models linking these curves to functional or mechanistic properties in biology remains an open challenge.

Such models would benefit from understanding how properties of a family of shapes are represented in the space of TI curves. The fern family is instructive since the family of IFS’s has a linear parameterization in p, yet our framework does not predict that the fPCA plot of TI curves would also be linear (as observed). Identifying conditions under which such properties of the symmetry can be inferred from the underlying model will provide a foundation for understanding how a model of a shape influences functional or mechanistic properties through symmetry.

Overall, our findings suggest that symmetry, which is traditionally treated as a qualitative, categorical trait, can be successfully transformed into a quantitative, continuous variable. By developing a high-throughput method that treats symmetry as a function rather than a scalar or categorical value, we enable better integration of symmetry into statistical and dynamical systems modeling and provide a more nuanced approach to investigating the prominent role of symmetry in biology.

Supplementary Information

Below is the link to the electronic supplementary material.

Appendix

Alternative Definitions of TI

In addition to the hypotheses in Definition 1 for transformation information, Ciocanel et al. (2025) require μ:D→R>0 to be normalized. That is, it must satisfy ∫Dμ(x)dx=1. From the definition of TI, we can easily see that normalizing μ amounts to scaling the TI curve. Indeed, if a distribution μ¯ is normalized by a scaling factor s∈R so that μ:=sμ¯, then for any transformation A∈Aff(n),

TI[μ,A]=TI[sμ¯,A]=∫D~sμ¯logsμ¯A(sμ¯)=s∫D~μ¯logsμ¯sAμ¯=s∫D~μ¯logμ¯Aμ¯=sTI[μ¯,A].

The decision to use normalization thus depends on the analytical goal. We recommend applying normalization if the objective is to compare an object’s shape independent of its size. Conversely, normalization should be omitted when size disparity between objects is a meaningful component of the data analysis, particularly when comparing TI curves using data visualization methods that compare TI curves componentwise. It is important to note, however, that the approximate symmetries and maximal asymmetries are identical regardless of whether normalization is applied.

A potential issue with the TI definition is that integrating over the domain D~ can “cut off” parts of the transformed function Aμ for some A∈Aff(n), creating artificial symmetry (see Fig. 3). We avoid this issue by embedding the objects of interest within a sufficiently large, uniform background (Proposition 1). An alternative approach is to extend μ¯:D⊂Rn→R>0 to a function μ defined on all of Rn. Assume that μ¯(x)>δ for some δ>0 for all x∈D. Then let:

μ(x)=μ¯(x)x∈Dδx∈Rn\D. 21

With this definition, D~=Rn for any transformation A∈Aff(n), and thus TI[μ,A] is calculated by integrating over Rn.

Additional Mathematical Properties of TI

Proof of equation (15)
Frot(Rφμ)=∫(μ∘Rφ-1)logμ∘Rφ-1μ∘Rφ-1∘Rθ-1=∫μlogμμ∘Rφ-1∘Rθ-1∘Rφ(x↦Rφx)=∫μlogμμ∘Rθ-1(rotations commute)=TIrot(θ)=Frot(μ).

□

Proof of equation (16)
Frot(κφμ)=∫(μ∘κφ-1)logμ∘κφ-1μ∘κφ-1∘Rθ-1=∫μlogμμ∘κφ-1∘Rθ-1∘κφ.(x↦κφx)

Now, we will show that κφ-1∘Rθ-1∘κφ=R-θ-1. Taking z=(x,y)∈C, rotations Rθ and reflections κθ on R2 are equivalent to the following transformations on C

Rθz=eiθz 22
κθz=e2iθz¯. 23

Furthermore, it is easy to see that κθ-1=κθ and Rθ-1=R-θ. Therefore,

κφ-1∘Rθ-1∘κφz=κφ-1∘Rθ-1e2iφz¯=κφ-1∘e-iθe2iφz¯=e2iφeiθe-2iφz=eiθz=Rθz=R-θ-1z.

So,

Frot(κφμ)=∫μlogμμ∘κφ-1∘Rθ-1κθ=∫μlogμμ∘R-θ-1=TIrot(-θ)=κ¯0Frot(μ).

□

Proof of equation (17)
Fref(Rφμ)=∫(μ∘Rφ-1)logμ∘Rφ-1μ∘Rφ-1∘κθ-1=∫μlogμμ∘Rφ-1∘κθ-1∘Rφ.(x↦Rφx)

Using complex coordinates,

Rφ-1∘κθ-1∘Rφz=Rφ-1∘κθ-1eiφz=Rφ-1e2iθe-iφz¯=e-iφe2iθe-iφz¯=e2i(θ-φ)z¯=κθ-φ-1z.

Thus,

Fref(Rφμ)=∫μlogμμ∘Rφ-1∘κθ-1∘Rφ=∫μlogμμ∘κθ-φ-1=TIref(θ-φ)=TIref(R¯φ-1(θ))=R¯φFref(μ).

□

Proof of equation (18)
Fref(κφμ)=∫(μ∘κφ-1)logμ∘κφ-1μ∘κφ-1∘κθ-1=∫μlogμμ∘κφ-1∘κθ-1∘κφ(x↦κφx).

Using complex coordinates,

κφ-1∘κθ-1∘κφz=κφ-1κθ-1(e2iφz¯)=κφ-1(e2i(θ-φ)z)=e2i(2φ-θ)z¯=κ2φ-θz,

so

Fref(κφμ)=TIref(2φ-θ)=TIref(κ¯φ-1(θ))=κφFref(μ).

□

Proposition 6

(TI is Lipshitz continuous) Let let {Ta}a∈A⊂Aff(n) be such that

supa∈A{|det(Ta)|}<∞,

fix D⊂Rn such that |D|<∞ (Lebesgue measure of D), and define

Pδ,M={f∈L1(D):0<δ<f(x)<Ma.e.}Y={f:A→R}

where Pδ,M has the metric induced by the L1 norm, and Y has the sup norm. Lastly, define F:Pδ,M→Y as F:μ↦TI(a) where TI(a) is the TI curve of TI[μ,Ta] as a function of A. Then F is Lipshitz continuous, that is:

|F(μ)-F(η)|sup(a)≤L‖μ-η‖L1(D)

for some constant L.

Proof

Take some arbitrary Ta, and let μ,η∈Pδ,M. We can write

TI[μ,Ta]=∫D~Φ(μ,Taμ)

where

Φ(u,v)=uloguv.

We will first show that the function Φ(u,v):R2→R is Lipshitz continuous on S:=(δ,M)×(δ,M). Indeed, the partial derivatives

Φu=loguv+1 24
Φv=-uv 25

are bounded on the convex set S. By the mean value theorem. For any (u,v),(u′,v′)∈S, there exists a point c∈S such that

Φ(u,v)-Φ(u′,v′)=[(u,v)-(u′,v′)]·∇Φ(c) 26
=Φu(c)(u-u′)+Φv(c)(v-v′) 27

where · denotes the standard Euclidean inner product (or dot product), and ∇Φ(c) denotes the gradient of Φ evaluated at c. Let

K1=supc∈S|Φu(c)|K2=supc∈S|Φv(c)|,

and take K=max{K1,K2}. Now, taking the absolute value on both sides of (26), (27), we have

|Φ(u,v)-Φ(u′,v′)|≤K(|u-u′|+|v-v′|) 28

Therefore, Φ is Lipshitz when considering the domain R2 with the Manhattan norm.

We can then write

|TI[μ,Ta]-TI[η,Ta]|=|∫D~Φ(μ,Taμ)-∫Φ(η,Taη)|=|∫D~Φ(μ,Taμ)-Φ(η,Taη)|≤∫D~|Φ(μ,Taμ)-Φ(η,Taη)|≤K∫D~(|μ-η|+|Taμ-Taη|)equation (28)=K∫D~|μ-η|+∫D~|μ∘Ta-1-η∘Ta-1|≤K(1+|det(Ta)|)∫D~|μ-η|≤K(1+|det(Ta)|)‖μ-η‖L1(D)

Let L:=K(1+supa∈A{|det(Ta)|}), where the supremum is finite by hypothesis. Then for every a,

|TI[μ,Ta]-TI[η,Ta]|≤L‖μ-η‖L1(D),

or equivalently

|F(μ)-F(η)|sup(a)≤L‖μ-η‖L1(D).

□

Proposition 7

(Conditions for equivalent reflections and rotations) Let μ:R2→R. If there exists some φ∈[0,2π) such that κφμ=μ, then for all θ∈[0,2π),

κθμ=R2(θ-φ)μ.
Proof

As in (22), (23), we will use the fact that R≅C (i.e. they are isomorphic as vector spaces). Assume that there exists some φ∈[0,2π) such that κφμ≡μ. Then for any z∈C

κθμ(z)=μ(e2iθz¯)=κφμ(e2iθz¯)(by assumption)=μ(e2iφe-2iθz)=μ(e2i(φ-θ)z)=μ(R2(φ-θ)z)=R2(θ-φ)μ(z).

□

Comparing Approaches for Center Detection

Definition 4 locates the symmetry center by maximizing the observed symmetry over candidate points, which is considerably more computationally expensive than computing the intensity-weighted centroid (4). Here we compare the rotational and reflectional symmetry centers to the intensity-weighted centroid, and to each other, across images in the floral dataset. All distances are reported as a percentage of the image’s diagonal length. When computing the symmetry centers, we use the definition of TI given by (21) to avoid artificial symmetries and observe improvements as shown in Fig. 11. Rather than integrating over D~, the intersection of the domains of the original and transformed image, we instead integrate over the union of the images’ domains, trivially extending each image into the domain where it is not defined by setting the pixel intensity to a preselected small value δ. For more details on symmetry center detection, see Sect. 4.4 (Fig. 10).

Fig. 10.

Fig. 10

In four sample images, the symmetry center by rotation x¯R, reflection x¯κ, and the intensity-weighted centroid agree closely

Figure 12 shows the distribution of distances across the floral dataset for all three centers. Table 1 provides summary statistics for each distribution. The rotational symmetry center x¯R agrees most closely with the centroid, with a median displacement of 1.43% and 93.6% of images below 5% displacement. The reflectional center x¯κ is displaced somewhat further from the centroid (median 2.75%) but with a tighter distribution as the distance is less than 10% in all images. The two symmetry centers differ from one another more than either differs from the centroid (median 3.57%).

Fig. 12.

Fig. 12

Across all flowers in the dataset from Byng et al. (2018), we compute the pairwise distances between the symmetry center by rotation, reflection, and the intensity-weighted centroid. The histograms shows the distance between each center as a percentage of the image’s diagonal length

Table 1.

Summary statistics of the pairwise distances between the rotational symmetry center x¯R, the reflectional symmetry center x¯κ, and the intensity-weighted centroid, across 171 floral images. Distances are expressed as a percentage of image diagonal length

Pair Mean Median p90 <5% <10%
x¯R to centroid 2.24 1.43 3.98 93.6% 96.5%
x¯κ to centroid 3.18 2.75 6.09 81.9% 100%
x¯R to x¯κ 3.91 3.57 7.41 69.6% 95.3%

Despite close agreement of the centers across most of the dataset, in 3.5% of images (6 of 171) the distance between x¯R and the centroid is over 10%, and in 4.7% of images (8 of 171) the distance between symmetry centers is more that 10% apart. These cases show that there are cases where the choice of center selection method, and hence the choice among the four TI curves of Sect. 4, may be significant. Further investigation is required to understand why the centers differ in some images but not in others.

Details of Preprocessing

If a grayscale image is represented by the matrix M=(mij), its negative is simply given by N=(255-mij). As before, we define the representative function of the image as

μ¯(i,j)=(255-mij)+δ,

where δ>0 is a small value added to avoid zero pixel values, thus ensuring TI is defined (see Fig. S4).

In cases where the background of an image has significant variations in light intensity and color, the image requires additional preprocessing so that the TI measure does not detect properties of the background. If every point in the background has lower light intensity than the points in the object, then we can use thresholding to remove the background noise. Mathematically, consider a grayscale image represented by the intensity matrix M=(mij), and suppose the object of interest is represented with a set of pixels F⊂D. If for every (i,j)∈F and (ℓ,k)∈D\F, we have

mℓk<mij, 29

then we can choose a threshold T:=min(i,j)∈F{mij} and set

μ¯(i,j)=1mij<Tmijmij≥T. 30

Then μ¯ retains the grayscale image’s pixel intensity on the object F and achieves the minimal pixel intensity on the complement D\F. Alternatively, if we wish to investigate symmetry in the object’s global boundary geometry rather than in textures or internal surface features, we can consider the binarized image

μ¯(i,j)=1mij<T255mij≥T. 31

The difference between thresholding (30) and binarization (31) can be observed in Fig. S2.

In general, the threshold T can be difficult to find and varies between images within a dataset. Fortunately, there are well-established methods for automated preprocessing. In our computational pipeline (GitHub 2025), we use Otsu’s method (available via the MATLAB function otsuthresh), which finds a threshold T that maximizes the variance in pixel intensity between the groups created by the threshold.

Sometimes, thresholding is insufficient to distinguish between the background and the object since (29) is not satisfied. To resolve this issue, we propose taking the largest connected component of the binarized image or filtering an image before thresholding. To take the largest connected component, one can use the MATLAB function |bwareafilt|. Alternatively, filters smooth an image by averaging pixel values over a neighborhood. For example, we can apply a Gaussian filter with the MATLAB function imgaussfilt, which makes subsequent thresholding more effective. In fig. S4, when the standard deviation of the Gaussian filter is σ=0 (i.e. no change to the image), there are light pixels near the bottom of the leaf, which could bias the TI curve. Increasing the standard deviation “smooths out” the image and removes background noise.

Reflectional TI for Floral Dataset

The analysis in Sect. 5.1 considers TI by rotation about the rotational symmetry center. Here we present the corresponding analysis for the TI curve by reflection about the reflectional symmetry center (TI[μ¯x¯κ,κθ], Sect. 4.4), with fPCA plots for the TI curves shown in Fig. 13. Note that the reflectional symmetry centers were computed taking the original definition of TI rather than integrating over the union the original and transformed images’ domains as described by (21) and in Sect. A.3.

Fig. 13.

Fig. 13

fPCA of TI curves by reflection about the reflectional symmetry center (TI[μx¯κ,κθ]) reveals a continuous landscape of symmetries, similar to the rotational TI about the rotational symmetry center (Fig. 6). Top: rosid TI curves projected onto the first two principal component symmetries, capturing 85.517% of the variance. Bottom: all projected TI curves, color-coded by clade, capturing 85.538% of the variance. The flower images presented on the graphs are stock images that closely match the image data used for our analysis (Descouens 2022; Game 2017; Starr and Starr 2026; North Queensland Plants 2026; Reese 2024; falcon_311 2025; Carr 2005; Edison and Ford Winter Estates 2010; Smith 2024). Clades remain intermixed as in Fig. 6; however, visual separation into 4-fold and 5-fold symmetry is not apparent in the rosids, and separation into bilateral and rotational symmetry is not apparent in the full dataset

The two analyses are not independent. By Proposition 7, an object with exact reflection symmetry has rotational and reflectional TI curves that determine each other, so in a dataset of exactly mirror-symmetric flowers, the TI curves for rotation and reflection would contain the same information. Real flowers deviate from exact mirror symmetry, and the difference can be seen when comparing Fig. 6 and Fig. 13. We hypothesize that part of the difference is also because rotational TI is orientation-agnostic while reflectional TI is not (Proposition 5).

When analyzing the fPCA plots for the reflectional TI, the qualitative conclusions of Sect. 5 are unchanged. First, symmetry appears as a continuum rather than being grouped into distinct categories. Second, the TI curves in the fPCA plot of all flowers (Fig. 13, bottom) overlap across distinct clades, suggesting convergent evolution of floral symmetry. However, the structure that was visually interpretable in the rotational analysis is less apparent here. In particular, the rosid fPCA plot does not separate into branches corresponding to the 4-fold and 5-fold rotational symmetry, and the full fPCA plot does not show separation into bilateral and radial symmetry. Thus, TI by reflection is capturing information that may not be accessible via conventional approaches, like visual inspection of the first two components in PCA.

Details of Fern Simulations

To obtain simulated images of ferns, we numerically compute the attractor of the following iterated function system (IFS) (Barnsley 1993), where p∈R is a parameter.

f1(x,y)=0000.16xy+0-0.4pf2(x,y)=0.85(1-p)+0.95p0-0.04(1-p)-0.005p0.85(1-p)+0.93pxy+-0.002p1.6(1-p)+0.5pf3(x,y)=0.2(1-p)+0.035p-0.26(1-p)-0.2p0.23(1-p)+0.16p0.22(1-p)+0.04pxy+-0.09p1.6(1-p)+0.02pf4(x,y)=-0.15(1-p)-0.04p0.28(1-p)+0.2p0.26(1-p)+0.16p0.24(1-p)+0.04pxy+0.083p0.44(1-p)+0.12p

When p=0, the attractor is a Barnsley-type fern as shown in Fig. 9 (top right) and when p=1, the attractor is a Cyclosorus-type fern as in Fig. 9 (bottom left).

In our analysis, we include 51 images, which are given by numerically computing the attractor of the IFS with p=0,0.02,0.04,...,1.00.

To simulate an attractor, we fix p and consider a random walk given by the IFS. Specifically, we start at (x,y)=(0,0). We select one of the transformations f1,f2,f3,f4 based on the probability distribution π given by

P(f1is selected)=0.01(1-p)+0.02pP(f2is selected)=0.85(1-p)+0.84pP(f3is selected)=0.07P(f4is selected)=0.07.

Once fi is selected, we update (x, y) by applying fi and repeat the process. This is made explicit with the following pseudocode.

Algorithm 1.

Algorithm 1

Iterated Function System (IFS) Attractor

We consider a scatter plots of the points {(xi,yi)}i=1N and use the MATLAB function exportgraphics to convert the scatter plot to an image file.

Data availability

The code referenced in this paper is available at GitHub (2025). It contains the computational pipeline used to create all TI curves and fPCA plots presented. All figures were created using MATLAB and Inkscape.

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Liam D. O’Brien, Email: obrien.1093@osu.edu

Adriana T. Dawes, Email: dawes.33@math.ohio-state.edu

References

  1. Barnsley MF (1993) Fractals Everywhere, 2nd edn., pp. 86–87. Academic Press, Boston, MA. IFS code and random iteration algorithm for the Barnsley fern
  2. Bermingham N, Robins V, Turner K (2023) Planar symmetry detection and quantification using the extended persistent homology transform. 2023 Topological Data Anal Visualization (TopoInVis). IEEE, pp 1–9
  3. Byng JW, Smets EF, Vugt R, Bidault E, Davidson C, Kenicer G, Chase MW, Christenhusz MJ (2018) The phylogeny of angiosperms poster: a visual summary of apg iv family relationships and floral diversity. The Global Flora 4(7):1–4 [Google Scholar]
  4. Carr GD (2005) Photograph of Saxifragaceae plant. University of Hawaii Botany Department Vascular Plant Families. http://www.botany.hawaii.edu/faculty/carr/saxifrag.htm
  5. Ciocanel M-V, Gandhi P, Niklas K, Dawes AT (2025) Characterizing symmetry transitions in systems with dynamic morphology. Math Biosci 384:109431 [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Descouens D (2022) Photograph of Plant Specimen. Wikimedia Commons. Accessed: 2026-05-03. https://commons.wikimedia.org/w/index.php?curid=116433055
  7. Edison and Ford Winter Estates (2010) Shell Ginger closed blooms. https://www.edisonfordwinterestates.org/name-that-plant-vi-answer-shell-ginger/
  8. Endress PK (1999) Symmetry in flowers: diversity and evolution. Int J Plant Sci 160(S6):3–23 [DOI] [PubMed] [Google Scholar]
  9. falcon_311 (2025) Droseraceae flowers. Reddit (r/SavageGarden). Accessed: 2026-05-03. https://www.reddit.com/r/SavageGarden/comments/1l5vor3/droseraceae_flowers/
  10. Fenster CB, Armbruster WS, Wilson P, Dudash MR, Thomson JD (2004) Pollination syndromes and floral specialization. Annu Rev Ecol Evol Syst 35(1):375–403 [Google Scholar]
  11. Game J (2017) Plant Photograph. Wikimedia Commons. Accessed: 2026-05-03. https://commons.wikimedia.org/w/index.php?curid=57693388
  12. Gandhi P, Ciocanel MV, Niklas K, Dawes AT (2021) Identification of approximate symmetries in biological development. Philosophical Transactions Royal Soc A Math Phys Eng Sci 379: 10.1098/rsta.2020.0273 [DOI] [PMC free article] [PubMed]
  13. Gandhi P, Iams S, Bonetti S, Silber M (2019) In: D’Odorico P, Porporato A, Wilkinson Runyan C (eds.) Vegetation Pattern Formation in Drylands, pp. 469–509. Springer, Cham. 10.1007/978-3-030-23269-6_18 [DOI]
  14. GitHub (2025) Accompanying MATLAB software for measuring and comparing the symmetries of image data. GitHub. Available at: https://github.com/ldobrien1234/TransInfo
  15. Golubitsky M, Stewart I, Schaeffer DG (2012) Singularities and Groups in Bifurcation Theory: Volume II, vol 2. Springer, New York, NY
  16. Klingenberg CP (2002) Morphometrics and the role of the phenotype in studies of the evolution of developmental mechanisms. Gene 287(1–2):3–10 [DOI] [PubMed] [Google Scholar]
  17. Kravtsova N, McGee RL II, Dawes AT (2023) Scalable gromov-wasserstein based comparison of biological time series. Bull Math Biol 85(8):77 [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Kästner K, van de Vijsel RC, Caviedes-Voullième D, Frechen NT, Hinz C (2024) Unravelling the spatial structure of regular dryland vegetation patterns. CATENA 247:108442. 10.1016/j.catena.2024.108442 [DOI] [Google Scholar]
  19. Luo D, Carpenter R, Vincent C, Copsey L, Coen E (1996) Origin of floral asymmetry in antirrhinum. Nature 383(6603):794–799 [DOI] [PubMed] [Google Scholar]
  20. Neal PR, Dafni A, Giurfa M (1998) Floral symmetry and its role in plant-pollinator systems: terminology, distribution, and hypotheses. Annu Rev Ecol Syst 29(1):345–373 [Google Scholar]
  21. Nikkeshi A, Kurimoto D, Ushimaru A (2015) Low flower-size variation in bilaterally symmetrical flowers: support for the pollination precision hypothesis. Am J Bot 102(12):2032–2040 [DOI] [PubMed] [Google Scholar]
  22. North Queensland Plants (2026) Australian Carnivorous Plants - Droseraceae: Drosera nana. Accessed: 2026-01-09 http://www.northqueenslandplants.com/Australian%20Plant%20Families%20A-F/Droseraceae/Drosera/Drosera%20nana.html
  23. Rostami MW, Bannish BE, Gasior K, Pinals RL, Copos C, Dawes AT (2023) Inferring local molecular dynamics from the global actin network structure: a case study of 2d synthetic branching actin networks. J Theor Biol 575:111613 [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Reese RN (2024) Convolvulaceae: Convolvulus arvensis (Native Plant Research). South Dakota State University Open PRAIRIE. Accessed: 2026-05-03. https://openprairie.sdstate.edu/nativeplant/230/
  25. Sargent RD (2004) Floral symmetry affects speciation rates in angiosperms. In: Proceedings of the Royal Society of London. Series B: Biological Sciences 271(1539), 603–608 [DOI] [PMC free article] [PubMed]
  26. Savriama Y, Klingenberg CP (2011) Beyond bilateral symmetry: geometric morphometric methods for any type of symmetry. BMC Evol Biol 11(1):280 [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Smith DG (2024) Lamium purpureum (purple deadnettle). Delaware Wildflowers; [accessed 2026 Sep 16]. https://delawarewildflowers.org/plant.php?id=1113
  28. Starr F, Starr K (2026) Close-up of a flower (Clusia rosea). Useful Tropical Plants. Accessed: 2026-05-03 https://tropical.theferns.info/image.php?id=Clusia+rosea
  29. Shi H, Yang Y, Wang L, Ma D, Beg MF, Pei J, Cao J (2022) Two-dimensional functional principal component analysis for image feature extraction. J Comput Graph Stat 31(4):1127–1140 [Google Scholar]
  30. Vstovsky G (1997) Transform information: a symmetry breaking measure. Found Phys 27(10):1413–1444 [Google Scholar]
  31. Wang Y, Luo A, Lyu T, Dimitrov D, Liu Y, Li Y, Xu X, Freckleton RP, Hao Z, Wang Z (2023) Global distribution and evolutionary transitions of floral symmetry in angiosperms. Sci Adv 9(43):2555 [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Yao F, Müller H-G, Clifford AJ, Dueker SR, Follett J, Lin Y, Buchholz B, Vogel JS (2003) Shrinkage estimation for functional principal component scores, with application to the population kinetics of plasma folate. Biometrics 59(3):676–685 [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

The code referenced in this paper is available at GitHub (2025). It contains the computational pipeline used to create all TI curves and fPCA plots presented. All figures were created using MATLAB and Inkscape.


Articles from Bulletin of Mathematical Biology are provided here courtesy of Springer

RESOURCES