Next Article in Journal
Spatio-Temporal Positron Emission Tomography Reconstruction with Attenuation and Motion Correction
Previous Article in Journal
A Simplified Convex Optimization Model for Image Restoration with Multiplicative Noise
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Geometric Feature-Based Algorithm for the Virtual Reading of Closed Historical Manuscripts

by
Rosa Brancaccio
1,†,
Fauzia Albertin
2,*,†,‡,
Marco Seracini
1,*,†,
Matteo Bettuzzi
1,† and
Maria Pia Morigi
1,†
1
Department of Physics and Astronomy “Augusto Righi”, University of Bologna, 6/2, Viale Carlo Berti Pichat, 40127 Bologna, Italy
2
National Institute of Nuclear Physics & Istituto Nazionale di Fisica Nucleare, CHNet, Division of Bologna, Via Berti Pichat 6/2, 40127 Bologna, Italy
*
Authors to whom correspondence should be addressed.
These authors equally contributed to this work.
Current address: Istituto di Scienze e Tecnologie Chimiche “Giulio Natta” SCITEC, Centro Nazionale delle Ricerche, Via Elce di Sotto, 8, 06123 Perugia, Italy.
J. Imaging 2023, 9(10), 230; https://doi.org/10.3390/jimaging9100230
Submission received: 5 September 2023 / Revised: 10 October 2023 / Accepted: 11 October 2023 / Published: 20 October 2023
(This article belongs to the Section Document Analysis and Processing)

Abstract

:
X-ray Computed Tomography (CT), a commonly used technique in a wide variety of research fields, nowadays represents a unique and powerful procedure to discover, reveal and preserve a fundamental part of our patrimony: ancient handwritten documents. For modern and well-preserved ones, traditional document scanning systems are suitable for their correct digitization, and, consequently, for their preservation; however, the digitization of ancient, fragile and damaged manuscripts is still a formidable challenge for conservators. The X-ray tomographic approach has already proven its effectiveness in data acquisition, but the algorithmic steps from tomographic images to real page-by-page extraction and reading are still a difficult undertaking. In this work, we propose a new procedure for the segmentation of single pages from the 3D tomographic data of closed historical manuscripts, based on geometric features and flood fill methods. The achieved results prove the capability of the methodology in segmenting the different pages recorded starting from the whole CT acquired volume.

1. Introduction

Digitization of ancient documents is a crucial key step for their preservation and dissemination: the digital copy can be easily studied and shared, minimizing the consultations of the original papers and parchment that will lead to inevitable degradation. Unfortunately, the most ancient and fragile documents cannot be digitized using traditional techniques: the mere opening of these objects is too risky and, sometimes, simply impossible. For these reasons, X-ray Computed Tomography (CT) is emerging as a new approach for digitization. X-ray CT is a well-established methodology for medicine [1,2], industrial applications [3], and, in recent decades, Cultural Heritage studies [4,5,6,7,8,9]. Thanks to the penetration power and the non-invasive nature of X-rays, CT enables the complete imaging of precious objects. Archaeometric analysis can also be carried out with neutrons for imaging or for material characterization [10,11], successfully applied to cultural heritage for various kind of finds, e.g., Egyptian metallic inks on textiles [12], metallic objects, or other archeological items [13].
Reading of ancient manuscripts by X-ray tomography is feasible thanks to the penetration power of X-rays that enables the acquisition of the entire volume of the document, while the chemistry of the most commonly used ancient inks (iron-based [14,15,16]) determines the X-ray contrast for the reading, in a totally non-invasive way. The pioneering research of Mills et al. [17], the impressive ones of Mocella et al. [18] and Burkreeva et al. [19], and the analysis performed in [20,21] demonstrate the feasibility of the technique on ancient and extremely fragile scrolls using synchrotron radiation sources.
However, the limited availability and accessibility of synchrotron facilities compared to normal X-ray tubes motivated a series of feasibility studies using laboratory sources. Examples are the tomographic imaging of Herculaneum papyri [22], of the En Gedi scroll, the oldest scroll in Hebrew outside of the Dead Sea Scrolls [23], as well as of several administrative documents [24], of a book mockup [25], of a soiled bamboo scroll [26], of damaged historical scrolls [27], and of sealed testaments and a handwritten ancient book [28].
The successful outcome of these investigations proved the effectiveness of the technique, also with more traditional and more accessible instruments than a synchrotron facility. In addition, all these studies have shed light on the most challenging step of the technique: the virtual reading of the text, its segmentation, and the extraction of the individual pages from the 3D tomographic volume.
In this direction, several techniques have been proposed, from a fully manual approach [29], to a combination of algorithmic and user-driven operations [30], to a more automatic technique exploiting segmentation, surface modeling and ink projection [31], or the use of a triangular mesh for surfaces characterization [23,32]. More automatic algorithms, such as the topological identification and propagation, were applied by [27,33] on scrolls and, more recently, by [25,26] on book and bamboo scrolls. An extensive study of text segmentation for virtual reading of closed envelopes has been described in [34].
In this work, we propose a new, simple and fast procedure for the segmentation of single pages from the tomographic data of closed historical documents, based on geometric features and flood fill methods.
The aim of the work is to introduce a simple, computationally fast and effective method for the extraction of the pages from a closed book, without any assumptions on their number. Given this premise, we intend to exploit the geometry of a closed book, in which the pages have a specific orientation: they are ideally planar and parallel each other. For this reason, the curved parts of the folded document are excluded from the analysis. This last problem has been investigated by, e.g., [34]. First, to test the effectiveness of our method, we simulated a mock up folding a single page Italian handwritten document dating to 1679. In addition, we applied our segmentation algorithm to a sealed Venetian testament [29].
Thanks to its short computation time (in the order of some minutes, depending on the size of the data), our proposed method allows the user to verify and set the best combination of parameters for each specific case. They have an immediate interpretation, such that the operator can easily vary them, figuring out which the best choice can be. This aspect is particular important, because it is not possible to state a priori which is the optimal combination, as evident from other state-of-the-art works on the same topic (see, e.g., [33,34]). Furthermore, the execution time can be additionally reduced, being the written software adaptable to multiple processors (parallel calculus).
In addition, the new semi-automatic algorithm is interactive because it allows us to preview the final classification.

2. Document Sample and Tomography

2.1. Document Folding for Book Simulation

To realistically simulate the case of a closed book, a private Italian handwritten document, shown in Figure 1, dating to 1679 and 21 × 15 cm2 in size has been used. The manuscript support is made of paper and the ink is iron-based. Thanks to the heavy elements present in this common European ancient ink type (i.e., iron), the writings have a high X-ray contrast, allowing good imaging of the text. To simulate a multi-page document, the manuscript was folded three times, along the straight lines marked in black in Figure 1, achieving a simulated “eight pages book”, that was put inside a plastic envelope and tied with a string to protect it and keep the fold stable.
The choice to perform the analysis on this kind of folded handwritten documents is justified by the fact that, in historical archives, many manuscripts present similar folding and morphology, such as ancient last wills.
The CT analysis was carried out at Ecole Polytechnique Fédérale de Lausanne—EPFL (Switzerland) using a lab-based micro-CT system with the tomographic settings shown in Table 1.

2.2. The Tomographic Reconstruction

The tomographic scan resulted in a volume of 3586 × 2740 × 178 voxels (respectively x , z , y of Figure 2), with voxel size of 15 μm. The reconstruction was performed with the Feldkamp algorithm (FDK). A 3D rendering of the manuscript is shown in Figure 2 (the tomographic reconstruction and analysis for the segmentation were performed using PARREC [35], a software internally developed at the University of Bologna).
The computer used for the reconstructions and the elaborations of the data is an assembled computer with Windows 10 Pro x64, CPU Intel(R) Core(TM) i7-8700k @3.70 GHz, RAM 16 GB. The following execution times will refer to the system working without any parallelization.

2.3. The Page Segmentation Problem

Although the writings are clearly visible in the volume rendering, the non-planarity of the pages makes the reading impossible by simply navigating inside the tomographic volume. An example of this effect is shown in Figure 3. Here, each slice/plane contains only a small portion of the text—and most often of a single letter. This effect becomes worse in case of a poor conservation state or more ancient documents, where the pages are often bent, slightly curved, and include roughness and creases. In addition, the higher the tomographic resolution, the more difficulties caused by every little roughness of the page paper.
The preliminary step is to identify the different pages, a target almost impossible to achieve from the point of view shown in Figure 3. The easiest way is to section the tomographic volume along another direction, choosing a plane that is perpendicular to the pages, as shown in Figure 4.

3. Algorithm

By analyzing the tomographic images on the x-y plane shown in Figure 4, it is possible to identify two main geometric characteristics: the pages are horizontally disposed (along x-axis) and have a small thickness if compared with their horizontal length. Then, the basic idea driving our approach is to extract the pages through their main direction (x-axis) and thickness (y-axis). As illustrated by the flowchart in Figure 5, the proposed method can be divided into six steps:
(1)
Pre-processing;
(2)
Classification;
(3)
Geometric characteristics definition;
(4)
Parametric segmentation and iteration;
(5)
Propagation;
(6)
Page extraction.
The pre-processing step aims to separate the regions belonging to the pages from the background (details are provided in Section 3.1).
Once all the pixels of the image have been filtered, the classification step follows (see Section 3.2). The image is analyzed in order to assign to contiguous zones a progressive number that defines the specific page each pixel belongs to. If the pages are not connected along the y-direction, this step is easy to perform. Unfortunately, at this point, even connections of a few pixels can bring to page misclassification. For a correct procedure, it is therefore necessary to consider the geometric characteristics of each region. In this sense, the direction, numerosity, thickness, and other geometric features are defined and calculated. The contact points are represented by pixels placed in thicker zones than the average. The segmentation is then performed based on a set of parameters exploiting the geometric characteristics previously calculated. This step is iterated up to the complete segmentation of the image pages—eight in this case (plus two envelopes). All the described operations are initially performed on a single x–y slice chosen around the center of the object, as in the example provided in Figure 4b, around the center of the object. The result achieved for a single image is then propagated along the z direction, covering the entire CT volume.

3.1. Pre-Processing

Before identifying and extracting the pages of the manuscript, it is necessary to reduce the background noise and prepare the data for the subsequent elaboration. To simplify the problem, the first step of the pre-processing stage is the cropping of the images. Differently from [34], the folding of the sheets is excluded from the analysis and it remains located at the extremes of the image, as shown in Figure 6.
Our goal is to provide a methodology that gives better results in terms of contrast of the final reconstructions than [34] while reducing the computational cost.
In fact, considering that a closed book is ideally characterized by a planar geometry of the pages, one of the aims of the cropping procedure is to reduce the amount of data to be elaborated in favor of a lower execution time. We will denote the cropped images by C z ( x , y ) .
After the image cropping, a noise filter is applied to reduce spurious components: the result is shown in Figure 7a. To identify noisy pixels, we used a segmentation approach already successfully applied in [36], but modified by different filters. The method consists of five steps:
(a)
Filtering C z ( x , y ) to achieve a filtered image F z ( x , y ) ;
(b)
Calculating the histogram of F z ( x , y ) ;
(c)
Choosing a “pruning” threshold T 0 on the histogram to separate the useful signal (i.e., the pages) from the background;
(d)
Using T 0 to decide which pixels to keep and which to discard from the original image.
Filtering is a well-known image processing method [37,38], whose results depend on the filter characteristics. The filters chosen in our filtering stage, with the aim to improve the quality of the segmentation of the pages, are the standard Maximum and Median ones, opportunely modified for our particular scopes. We define the S ( x , y ) = [ x Δ x , x + Δ x ] × [ y Δ y , y + Δ y ] with Δ x , Δ y = 1 as the subset that individuates the square neighborhood of a given point of coordinates ( x , y ) , characterizing the used filters. At the first step, the maximum filter results in:
G z ( x , y ) = m a x ( i , j ) S ( x , y ) C z ( i , j ) ,
where C z are the cropped images (see Figure 6). Initializing a matrix F z ( x , y ) of the same size of C z ( x , y ) with all zero values, each initial value is increased by one for each pixel of the neighborhood that assumes a value equal to G z ( x , y ) . This process is iterated for each pixel of C z ( x , y ) . Doing so, at the end of the procedure, the pixels that have repeatedly assumed the maximum value in the neighborhood S will have the highest values. At the end of the whole scanning process, to preserve the signal belonging to the pages and, at the same time, to reduce the noise, all pixels where F z ( x , y ) > 0 have been marked as 1 in a binary matrix and a pointwise logic AND has been used, achieving C 1 ( x , y ) .
In this way, C 1 ( x , y ) becomes a binary mask in which the “white” points discriminate the pages from the background, while C z ( x , y ) contains the number of points in the neighborhood having their value equal to G z ( x , y ) .
Then, the same procedure described in the previous points (a) to (d) is applied using a Median filter, calculating the median in the neighborhood S. At the end, a segmentation threshold T 0 is chosen to suppress the lower values pixels in the background. The described filtering procedure has been applied to our specific problem choosing for both filters Δ x , Δ y = 1 and a T 0 of around 6 % of the maximum gray value. An example proving the effectiveness of the proposed pre-filtering procedure is shown in Figure 7 (values are normalized to improve the visual readability). This algorithm decreases the noise without damaging the page signal at higher values.

3.2. Classification

The classification algorithm exploits the definition of four- and eight-connections; a pixel is four-connected to an adjacent pixel if it shares at least one side with it; a pixel is eight-connected to an adjacent one if it shares one side or a corner with it (see [37]).
After the pre-processing step, all the pixels have been marked as signal or background. Operatively, the algorithm starts to scan the image pixelwise and test if the current pixel belongs to a page: if not, the scan continues until a page pixel is found. This first pixel is marked as belonging to zone 1. Then, the procedure groups together the pixels belonging to the same zone, according to the 8-connectivity definition. The process is iterated until the complete classification of each pixel is achieved, to individuate multiple distinct connected zones (i.e., the different pages). This procedure is commonly known as flood fill algorithm [39].
At the end of the scanning, a number N 0 of zones will have been found (in our application, it results that N 0 > > 10 , being eight the effective known number of pages and two the number of the envelopes). This is due to many small areas wrongly classified as page zones, caused by artifacts or small impurities.
After the suppression of the spurious areas, characterized by a reduced extension, the number of connected zones results lower than the number of pages. An example of page classification is shown in Figure 8b, and achieved processing in Figure 8a. If the pages were completely separated, there would be no need to continue processing, and the software could go directly to the data extraction step, but, as shown in Figure 8, they are in contact in some points and the algorithm tends to underestimate the number of actual pages (only two instead of eight). This is due to the compression of the manuscript and the lack of space between the pages themselves. Further steps of the algorithm are needed for the identification and removal of contact points and impurities.

3.3. Geometric Characterization

The area of each zone is the first geometric feature to be studied. In fact, we expect that the poorly extended zones belong to noise or impurities, while the ones relative to the pages must have a very large area, especially considering that multiple pages can be in contact and are, then, grouped together. In this preliminary step, the classified zones with area less than 0.01 % of the total number of pixels in the image are suppressed, assigning them to the background. An example of this stage is shown in Figure 9. At the end of the poorly populated zones suppression, the new number of remaining ones reduces to N 1 < N 0 (in our particular case, N 1 = 4 ).
In this procedural phase, in order to identify contact pixels, geometric features will be defined and calculated. For each signal pixel ( x , y ) G z ( x , y ) , its distance from the closest background pixels can be calculated in eight directions: up, down, right, left and the four diagonals. These distances are defined using the minimum of the well-known Euclidean metric, in the following way:
d θ ( ( x , y ) , ( x b θ , y b θ ) ) = m i n θ ( ( x x b θ ) 2 + ( y y b θ ) 2 ) 1 2 > 0
with
θ { 0 , π 4 , π 2 , 3 4 π , π , 5 4 π , 3 2 π , 7 4 π } .
Referring to Figure 10, where pedexes are introduced to simplify the notation, it is possible to define:
d e p t h h o r ( x , y ) : = d l ( x , y ) + d r ( x , y )
d e p t h v e r ( x , y ) : = d u ( x , y ) + d q ( x , y )
d e p t h p o s d i a g ( x , y ) : = d u r ( x , y ) + d q l ( x , y )
d e p t h n e g d i a g ( x , y ) : = d u l ( x , y ) + d q r ( x , y )
where hor, ver, posdiag, negdiag, respectively, stay for horizontal, vertical, positive diagonal ( θ { π 4 , 5 4 π } ) , negative diagonal ( θ 3 4 π , 7 4 π ) . In particular:
d r ( x , y ) = d ( θ = 0 ) ( x , y )
d u r ( x , y ) = d ( θ = π 4 ) ( x , y )
d u ( x , y ) = d ( θ = π 2 ) ( x , y )
d u l ( x , y ) = d ( θ = 3 4 π ) ( x , y )
d l ( x , y ) = d ( θ = π ) ( x , y )
d q l ( x , y ) = d ( θ = 5 4 π ) ( x , y )
d q ( x , y ) = d ( θ = 3 2 π ) ( x , y )
d q r ( x , y ) = d ( θ = 7 4 π ) ( x , y )
In that way, each pixel belonging to a zone is characterized by four geometric features, i.e., its distances (depth) from the background pixels in the four main directions (horizontal, vertical, positive and negative diagonal).
It is possible now to recognize to which page each extracted point belongs, introducing the P r i n c i p a l D i r e c t i o n and the P r i n c i p a l D e p t h as:
P r i n c i p a l D i r e c t i o n ( x , y ) = a r g max k d e p t h k
P r i n c i p a l D e p t h ( x , y ) = a r g min k d e p t h k
with k { h o r , v e r , p o s d i a g , n e g d a g } .
To visualize the concept behind the geometric features definitions, see Figure 10.
Geometric features are particularly useful at the first step of the separation process. Applying the calculation of the directions and depths to all the pixels in the image, it is possible to analyze their geometric characteristics. The pixels belonging to the pages have a predominant horizontal directionality. Contact points can be identified in the first instance as those pixels with different Principal Direction as compared to their neighbors (see the fuchsia pixels in the zoomed area in Figure 11a). Switching the association of all the contact points from signal to background and applying again the flood fill algorithm, it is possible to segment more appropriately the zones belonging to different pages. At the end of the procedure, the number of separated pages is N 2 > N 1 .
Despite the operated filtering, points of contact between the pages still persist, such that refining the procedure is necessary to identify and eliminate them. This further operation is illustrated in the next section.

3.4. Parametric Segmentation and Iteration

Generally, at the end of the previous step, we do not yet have a correct separation of all the manuscript pages. In fact, several contact points are present at the end of the previous step (see Figure 12). These contact points represent a challenging problem for the correct identification of the single pages. For this reason, parametric segmentation is needed using the pages’ depth. Exploiting Equation (1), we can calculate the mean depth values relative to each classified zone. The results are listed in Table 2.
At this point, the pages can be separated introducing another threshold T 1 : contact points are pixels with depth greater than the average depth plus the standard deviation. We can choose a threshold T 1 that is a function of the average of M d j :
T 1 = k j = 1 N 2 M d j N 2
where M d j is the mean depth for each zone individuated by the N 2 number of zones, and k is a constant. Experimentally, a suitable value for k is equal to 1.3 . In this way, the pixels of a thickness greater than 1.3 T 1 are identified in the first instance as pixels that could be of contact. The calculated mean is ( 3.6 ± 0.5 ) pixels. An example of the candidate contact points can be observed in yellow in Figure 12.
Looking at Figure 12, we can see how all the contact pixels are correctly identified, even if the algorithm classifies also as dubious all the pixels belonging to a thicker area, so that we need to separate effective contact points areas from naturally thicker zones of the pages. The method ideated to distinguish the two cases is based on the identification of the dubious rectangular areas and on the number of the boundary points: if there are points in both left and right sides that border the background (except the four vertices), the identified area is a contact area, otherwise it is classified as a naturally thicker area in the page. The method can be summarized as follows:
(1)
Scanning the image for the first dubious point (belonging to yellow areas in Figure 12);
(2)
Searching for dubious points close to it to define a surrounding dubious area (yellow areas in Figure 12 and Figure 13);
(3)
Identifying the four vertices (minimum and maximum couples of coordinates) of the dubious area: these values define a rectangle;
(4)
If there is at least one pixel contiguous to the background both on the left and the right side of the ambiguous zone, the area is classified as contact area (brown bordered rectangles in Figure 13 and Figure 14), otherwise it is not modified. It should be noted that if there are two neighboring pixels in the two sides, but one or both are in the vertices of the rectangles, the area is correctly ignored (see, for example, yellow areas without brown borders in the pink page of Figure 13).
The method just illustrated starts by analyzing the first dubious point found in the image and continues (looking for a rectangle with the characteristics of step 4) for each point in the image. We remark that, regardless of whether dubious areas are found or not, the method continues to search for contact zones without discarding the points already analyzed. This approach is very important, because it allows us to analyze overlapping rectangles that could otherwise be lost during the analysis. An example of overlapping rectangles can be seen in Figure 13, in the contact area on the left of the last two pages (blue and green ones). Here, there are two dubious areas: one is located only on the green page (in yellow), the other is crossing the two pages (in brown). The first one is discharged, the second one is processed. This good result could not be reached if the dubious points already analyzed were skipped during the processing. Once the contact areas have been identified, they have to be corrected. It is relatively simple to separate the areas that have only one pixel bordering the background on both the left and the right sides (there are only two pages touching each other). An example of this case is in Figure 13, in the orange and green pages (first and second from top, respectively). On the other hand, the situation in which three or more pages touch each other is more complicated. An example of this case is illustrated in Figure 14, in which there are three pages touching each other, with three contact areas. To obtain a correct separation, it is necessary to couple the border points for each corresponding layer. Then, the found pixels are to be connected in order from top to bottom and they are classified as background. At the end of this step, performing the classification again, all the pages are correctly separated. The result is shown in Figure 15. A summary of all the geometric features is reported in Table 3: all the internal pages have a similar thickness, while the first and the last ones are thinner, being pages of the external envelope. A segmentation mask, relative to a single cross-section of the CT data, is the result of the classification procedure.

3.5. Propagation

At the end of the previous step, all the ten pages have been separated, but only in one slice (x-y plane). To complete the procedure, the segmentation must be propagated to all the tomographic slices of the document. The total number of slices in our case is n S = 3586 , while the selected slice to start the segmentation procedure described above is the 2504th. Exploiting the classification described in the previous step, we compute a mask M k ( x , y ) defined as follows:
M ( k + 1 ) ( x , y ) = 0 i f I ( x , y ) b a c k g r o u n d p i f I ( x , y ) p a g e p
with p = { 1 , 2 , 10 } , 0 x < W , 0 y < H , 0 k n S and I ( x , y ) denoting the pixel value of coordinates ( x , y ) . With the word background we denote every point not classified as pages in the previous step.
Since the tomographic analysis was performed at high spatial resolution (voxel size of 15 μm), making the same assumption of [33], we expect that page pixels, individuated in one slice, will have small displacements when passing to the bordering ones, such that their position will not have a considerable variation during the propagation step. Propagating the segmentation to the other slices is convenient because, assuming it has an initial page correctly segmented, this would reduce the probability of misclassification. In fact, the propagation algorithm bases the extraction on the previously segmented pages. For this reason, instead of processing each page per se, a propagating approach is preferable, because it is more stable and less sensitive to spurious variations among subsequent slices.
Assuming that, the segmentation mask defined for a certain slice can then be propagated to the whole document with small adjustment slice by slice. We compute all geometric features in the bordering slice with (19), such that only the page pixels close to the background, at coordinates ( x , y ) , having d θ ( x , y ) 2 , will be analyzed in the next slice. First, the k + 1 (or k 1 , depending on the direction chosen for the propagation) slice is loaded into memory; then, the mask obtained for the previous slice ( M k ) is assigned to each pixel, and all pixels that are away from the background are analyzed. If the pixel in this new slice has a value below the classification threshold T 0 (the same threshold used in the pre-processing step A), it is classified as a background pixel in M k + 1 ; if the pixel is classified as background in M k , but has a value greater than T 0 in the k + 1 slice, it is considered as belonging to the current page. This operation is carried out for all the pages, and it concludes by saving the new mask M k + 1 . Then, the procedure is iterated for the other slices along the entire reconstructed sequence. The computation of the mask for the k + 1 slice can be formalized as follows:
M ( k + 1 ) ( x , y ) = M k ( x , y ) i f I k ( x , y ) T 0 I ( k + 1 ) ( x , y ) T 0 , M k ( x , y ) i f I k ( x , y ) < T 0 I ( k + 1 ) ( x , y ) < T 0 , p i f I k ( x , y ) < T 0 I ( k + 1 ) ( x , y ) T 0 , 0 i f I k ( x , y ) T 0 I ( k + 1 ) ( x , y ) < T 0 ,
with p { 1 , 2 , 10 } , 0 x < W , 0 y < H , 0 k n S .
Note that this step of the algorithm can also segment pages that are close to each other and not separated by the background.
In Figure 16, the 3D result of the generation of the segmentation mask after the propagation is presented.

3.6. Page Extraction

Once the segmentation mask has been propagated to the whole dataset, the last step consists of the page extraction. For each slice in the sequence, the classification of each pixel is calculated in the previous step in M k ( x , y ) . Each page P p ( x , k ) is then computed, reading the whole sequence as follows:
P p ( x , k ) = y 1 ( p , k ) y 2 ( p , k ) I k ( x , y ) y 2 ( p , k ) y 1 ( p , k ) + 1 i f M k ( x , y ) = p , 0 o t h e r w i s e
where y 1 ( p , k ) is the first pixel in the image I k along the y-axis (starting from 0 to height-1 ( H ) ) at fixed x, for which M k ( x , y ) = p and y 2 ( p , k ) is the latest one, and 0 x < 3586 , 0 p 10 , 0 k < 2334 .
In other words, when M k ( x , y ) = p , the value of P p ( x , k ) is the mean through the thickness of the pages.
It is possible for some values of k that no pixel has M k = p , and then it is very important to set the relative values to zero to preserve spatial disposition along the sequence in the page extraction.
We highlight that the binary mask M k , computed in the previous step, is only used here to retrieve the pixels from the CT original data, being applied as a sort of pointwise AND operator.
A qualitative comparison of our reconstructions with a sample image taken from [34] is provided in Figure 17.

4. Results

Two extracted pages are shown in Figure 18 and Figure 19. The black areas in Figure 19 and Figure 20 are due to the failure of the propagation step (e.g., in those pixels with low value), while the horizontal black area in Figure 18 is due to the crop in proximity of the folds, where the geometry considerably changes. Moreover, attenuation in the recorded signal can cause a wrong classification of some pixels: if this behavior propagates, then some misclassified areas can appear, like, e.g., the vertical black ones in Figure 19. In our analysis, we are interested in extracting the planar zones of the text. In case of CT of whole books, this problem is avoided thanks to the constructive morphology of the book itself, where the pages are planar to certain extent and where no text appears on the binding of the pages. On the contrary, in books analysis, we expect less air space between pages; therefore, it will be necessary to test and adapt the method to books in future.
In Figure 21, the comparison between the result achieved by the segmentation algorithm proposed in [25] and our method is provided. Both the algorithms segment 11 different final areas, and it is possible to observe a good regularity of the pages profile extracted by our method (b) to compare it with what achieved in [25] (d).
Moreover, our method is computationally fast and employs only 1.5 s for the segmentation of a single slice, with a total time for the extraction of 5 min and 27 s.
A detail of an extracted letter is shown in Figure 18. The texture of the paper is well-recovered, and the small light spots are due to metallic components of the ink and the paper impurities. In Figure 22, the result of the elaboration applied to the whole document is presented.
A quantitative evaluation of the wrongly extracted pixels has been performed, and has resulted in a correctness of reconstruction of around 93 % of the whole document. The missing 7 % is mostly localized close to the foldings. Compared with the state of the art (e.g., [25]), our algorithm provides better results, in terms of resolution and image definition: the grain of other texture is visible without any degradation thanks to the high signal-to-noise ratio; the ink distribution is not altered. Moreover, we underline that the techniques also works well when the distribution of the ink is not uniform on the page.
Moreover, the approach proposed in [34] is based on [40], in which convolution products are widely used for the calculation of the finite differences, a fact that increases the complexity of the algorithm and the execution time. Our method needs less than a couple of seconds to perform the extraction of a single layer, maintaining the time bounded execution.
Finally, we provide the reconstruction and extraction of a sealed 1351 Venetian testament (original in Figure 23). The CT consists of 1534 slices, each one of 1500 × 200 pixels.
In Figure 24, a single scan of the envelope is shown. It is evident how the general quality of the data are low due to the presence of ring artifacts and of spurious bright spots, probably due to the non-homogeneity of the used writing support. Due to the artifacts, to the noise and to the nature of the page the extraction appears challenging, if compared with other state-of-the-art cases (e.g., [34]).
In Figure 25, a sagittal section of the reconstruction of the envelope is shown. Again, the non-homogeneity of the writing support poses a serious problem to the extraction of the pages. Subsequently, in Figure 26, the final segmentation of the pages is presented, each page with a different color.
In Figure 27 and Figure 28, the reconstruction, between two consecutive folds of the envelope, is shown.
The execution time for the extraction and the reconstruction of the Venetian testament is 3 min and 16 s for the whole document. This time can be further reduced parallelizing the software.

5. Conclusions

The methodology presented in this paper has been developed to recover text by means of CT acquisitions of ancient manuscripts. The quality of the recorded data, as well as the used image processing procedures, are equally important to perform a correct page extraction from the CT volumes. Improving some segmentation techniques, well known in the literature, we formulated a specific task-oriented algorithm that exhibits good performances in recognizing and separating the pages in the test document. To achieve the proposed goal, geometric definitions have been made on the morphology of the manuscript. Moreover, having used a single, specifically folded sheet, a further non-negligible problem is represented by the segmentation of the text in the folds of the pages. This issue is naturally absent in books, as their constructive morphology excludes the presence of meaningful text on the binding and the spine.
On the other hand, the lack of air between pages might introduce further difficulties connected with the less distinguishability among the pages themselves.
The achieved results show a good quality in the reconstruction, in terms of the main text and the texture.
The proposed method is semi-automatic because it leaves the possibility to choose the parameters to the user, which can not be a priori stated to be optimal, as in other state-of-the-art methods. Thanks to the fast execution time, different simulations can be operated, such that the user can choose the best combination of them case by case.
The execution time, compared with other state-of-the-art methods, is considerably lower, thanks to the simple computation of the introduced geometric features.
This study could be a starting point for scans of entire books; future implementations could consider the introduction of algorithms for inpainting of missing zones.

Author Contributions

Conceptualization, F.A. and R.B.; methodology, F.A. and R.B.; software, R.B.; validation, F.A.; formal analysis, M.S.; investigation, M.B.; data curation, M.B.; writing—original draft preparation, F.A.; writing—review and editing, M.S.; supervision, M.P.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Brancaccio, R.; Bettuzzi, M.; Morigi, M.P.; Casali, F.; Ragazzini, L. Image Quality and Dose Assessment in Inner Ear Computed Tomography Imaging With a Flat Panel-Based System. J. Comput. Assist. Tomogr. 2015, 39, 232–239. [Google Scholar] [CrossRef]
  2. Shepp, L.A.; Kruskal, J.B. Computerized tomography: The new medical X-ray technology. Am. Math. Mon. 1978, 85, 420–439. [Google Scholar] [CrossRef]
  3. Grazzi, F.; Cialdai, C.; Manetti, M.; Massi, M.; Morigi, M.P.; Bettuzzi, M.; Giuntini, L. A multi-technique tomography-based approach for non-invasive characterization of additive manufacturing components in view of vacuum/UHV applications: Preliminary results. Sci. Fis. Nat. 2021, 32, 463–477. [Google Scholar] [CrossRef]
  4. Anderson, T.; Fell, C. Analysis of Roman Cremation Vessels by Computerized Tomography. J. Archaeol. Sci. 1995, 22, 609–617. [Google Scholar] [CrossRef]
  5. Freeth, T.; Bitsakis, Y.; Moussas, X.; Seiradakis, J.H.; Tselikas, A.; Magkou, E.; Edmunds, M.G. Decoding the ancient Greek astronomical calculator known as the Antikythera Mechanism. Nature 2006, 444, 587–591. [Google Scholar] [CrossRef]
  6. Hughes, S. CT Scanning in Archaeology. In Computed Tomography—Special Applications; Saba, L., Ed.; InTech: London, UK, 2011; pp. 57–70. [Google Scholar]
  7. Morigi, M.P.; Casali, F. Radiography and Computed Tomography for Works of Art. In Handbook of X-ray Imaging: Physics and Technology; Russo, P., Ed.; Taylor and Francis Group: Abingdon, UK, 2018; pp. 1181–1206. [Google Scholar]
  8. Tuniz, C.; Bernardini, F.; Cicuttin, A.; Crespo, M.L.; Dreossi, D.; Gianoncelli, A.; Zanolli, C. The ICTP-Elettra X-ray laboratory for cultural heritage and archaeology. Nucl. Instrum. Methods Phys. Res. A 2013, 711, 106–110. [Google Scholar] [CrossRef]
  9. Van den Bulcke, J.; Van Loo, D.; Dierick, M.; Masschaele, B.; Van Hoorebeke, L.; Van Acker, J. Nondestructive research on wooden musical instruments: From macro-to microscale imaging with labbased X-ray CT systems. J. Cult. Herit. 2017, 27, 78–87. [Google Scholar] [CrossRef]
  10. Anderson, I.S.; McGreevy, R.L.; Bilheux, H.Z. Neutron Imaging and Applications; Springer Science+Business Media: Berlin/Heidelberg, Germany, 2009; Volume 200, pp. 987–2209. [Google Scholar]
  11. Mannes, D.; Lehmann, E.; Masalles, A.; Schmidt-Ott, K.; Przychowski, A.; Schaeppi, K.; Schmid, F.; Peetermans, S.; Hunger, K. The study of cultural heritage relevant objects by means of neutron imaging techniques. Insight-Non-Destr. Test. Cond. Monit. 2014, 56, 137–141. [Google Scholar] [CrossRef]
  12. Festa, G.; Christiansen, T.; Turina, V.; Borla, M.; Kelleher, J.; Arcidiacono, L.; Cartechini, L.; Ponterio, R.C.; Scatigno, C.; Senezi, R.; et al. Egyptian metallic inks on textiles from the 15th century BCE unravelled by non-invasive techniques and chemometric analysis. Sci. Rep. 2019, 9, 963–972. [Google Scholar] [CrossRef]
  13. Abraham, E.; Bessou, M.; Ziéglxex, A.; Hervxex, M.C.; Szentmiklósi, L.; Kasztovszky, Z.S.; Kis, Z.; Menu, M. Terahertz, X-ray and neutron computed tomography of an Eighteenth Dynasty Egyptian sealed pottery. Appl. Phys. A 2014, 117, 963–972. [Google Scholar] [CrossRef]
  14. Hahn, O.; Malzer, W.; Kanngiesser, B.; Beckhoff, B. Characterization of Iron-Gall Inks in Historical Manuscripts and Music Compositions Using x-Ray Fluorescence Spectrometry. X-ray Spectrom. 2004, 33, 234–239. [Google Scholar] [CrossRef]
  15. Proost, K.; Janssens, K.; Wagner, B.; Bulska, E.; Schreiner, M. Determination of localized Fe2+/Fe3+ ratios in inks of historic documents by means of μ-XANES. Nucl. Instrum. Methods Phys. Res. Sect. Beam Interact. Mater. Atoms 2004, 213, 723–728. [Google Scholar] [CrossRef]
  16. Yale University Library Special Collections Conservator Unit, Preservation Department. Medieval Manuscripts, Some Ink and Pigment Recipes; Yale University: New Haven, CT, USA, 2012. [Google Scholar]
  17. Mills, D.; Samko, O.; Rosin, P.; Thomas, K.; Wess, T.; Davis, G.R. Apocalypto: Revealing the unreadable. In Developments in X-ray Tomography VIII; SPIE: Cergy, France, 2012; p. 85060A. [Google Scholar] [CrossRef]
  18. Mocella, V.; Brun, E.; Ferrero, C.; Delattre, D. Revealing letters in rolled Herculaneum papyri by X-ray phase-contrast imaging. Nat. Commun. 2015, 6, 5895. [Google Scholar] [CrossRef] [PubMed]
  19. Bukreeva, I.; Mittone, A.; Bravin, A.; Festa, G.; Alessandrelli, M.; Coan, P.; Formoso, V.; Agostino, R.G.; Giocondo, M.; Ciuchi, F.; et al. Virtual unrolling and deciphering of Herculaneum papyri by X-ray phase-contrast tomography. Sci. Rep. 2016, 6, 27227. [Google Scholar] [CrossRef] [PubMed]
  20. Albertin, F.; Astolfo, A.; Stampanoni, M.; Peccenini, E.; Hwu, Y.; Kaplan, F.; Margaritondo, G. Ancient administrative handwritten documents: X-ray analysis and imaging. J. Synchrotron Rad. 2015, 22, 446–451. [Google Scholar] [CrossRef] [PubMed]
  21. Albertin, F.; Astolfo, A.; Stampanoni, M.; Peccenini, E.; Hwu, Y.; Kaplan, F.; Margaritondo, G. X-ray spectrometry and imaging for ancient administrative handwritten documents. X-ray Spectrom. 2015, 44, 93–98. [Google Scholar] [CrossRef]
  22. Seales, A.W.B.; Griffioen, C.J.; Baumann, R.; Field, M. Analysis of herculaneum papyri with X-ray computed tomography. In Proceedings of the 10th Interior Conference NDT Art, Florence, Italy, 13–15 May 2011; pp. 1–9. [Google Scholar]
  23. Seales, W.B.; Parker, C.S.; Segal, M.; Tov, E.; Shor, P.; Porath, Y. From damage to discovery via virtual unwrapping: Reading the scroll from En-Gedi. Sci. Adv. 2016, 2, e1601247. [Google Scholar] [CrossRef]
  24. Albertin, F.; Peccenini, E.; Hwu, Y.; Lee, T.-T.; Ong, E.B.L.; Je, J.H.; Kaplan, F.; Margaritondo, G. The Venice “Archivio Di Stato”: Innovating Digitization with X-Ray Tomography. In Proceedings of the 2015 Digital Heritage Congress, Granada, Spain, 28 September–2 October 2015; pp. 6–11. [Google Scholar]
  25. Stromer, D.; Christlein, V.; Martindale, C.; Zippert, P.; Haltenberger, E.; Hausotte, T.; Maier, A. Browsing through sealed historical manuscripts by using 3-D computed tomography with low-brilliance X-ray sources. Sci. Rep. 2018, 8, 15335. [Google Scholar] [CrossRef]
  26. Stromer, D.; Christlein, V.; Huang, X.; Zippert, P.; Hausotte, T.; Maier, A. Virtual cleaning and unwrapping of non-invasively digitized soiled bamboo scrolls. Sci. Rep. 2019, 9, 490. [Google Scholar] [CrossRef]
  27. Rosin, P.L.; Lai, Y.K.; Liu, C.; Davis, G.R.; Mills, D.; Tuson, G.; Russell, Y. Virtual Recovery of Content from X-Ray Micro-Tomography Scans of Damaged Historic Scrolls. Sci. Rep. 2018, 8, 11901. [Google Scholar] [CrossRef]
  28. Albertin, F.; Patera, A.; Jerjen, I.; Hartmann, S.; Peccenini, E.; Kaplan, F.; Stampanoni, M.; Kaufmann, R.; Margaritondo, G. Virtual reading of a large ancient handwritten science book. Microchem. J. 2016, 125, 185–189. [Google Scholar] [CrossRef]
  29. Albertin, F.; Romito, M.; Peccenini, E.; Bettuzzi, M.; Brancaccio, R.; Morigi, M.P.; Rio, M.; Raines, D. From closed testaments to books: Virtual X-ray Reading as an alternate digitization technology for fragile documents. Arch. Conf. 2017, 1, 14–18. [Google Scholar] [CrossRef]
  30. Baum, D.; Lindow, N.; Hege, H.C.; Lepper, V.; Siopi, T.; Kutz, F.; Mahlow, K.; Mahnke, H.E. Revealing hidden text in rolled and folded papyri. Appl. Phys. A Mater. Sci. Process. 2017, 123, 171. [Google Scholar] [CrossRef]
  31. Samko, O.; Lai, Y.K.; Marshall, D.; Rosin, P.L. Virtual unrolling and information recovery from scanned scrolled historical documents. Pattern Recognit. 2014, 47, 248–259. [Google Scholar] [CrossRef]
  32. Stabile, S.; Palermo, F.; Bukreeva, I.; Mele, D.; Formoso, V.; Bartolino, R.; Cedola, A. A Computational Platform for the Virtual Unfolding of Herculaneum Papyri. Sci. Rep. 2021, 11, 1695. [Google Scholar] [CrossRef]
  33. Liu, C.; Rosin, P.L.; Lai, Y.K.; Hu, W. Robust Virtual Unrolling of Historical Parchment XMT Images. IEEE Trans. Image Process. 2018, 27, 1914–1926. [Google Scholar] [CrossRef]
  34. Dambrogio, J.; Ghassaei, A.; Smith, D.S.; Jackson, H.; Demaine, M.L.; Davis, G.; Demaine, E.D. Unlocking history through automated virtual unfolding of sealed documents imaged by X-ray microtomography. Nat. Commun. 2021, 12, 1184. [Google Scholar] [CrossRef]
  35. Brancaccio, R.; Bettuzzi, M.; Casali, F.; Morigi, M.P.; Levi, G.; Gallo, A.; Schneberk, D. Real-Time Reconstruction for 3-D CT Applied to Large Objects of Cultural Heritage. IEEE Trans. Nucl. Sci. 2011, 58, 1864–1871. [Google Scholar] [CrossRef]
  36. Brancaccio, R.; Bettuzzi, M.; Morigi, M.P.; Casali, F.; Levi, G.; Baldazzi, G.; Inferrera, P. Preliminary results of a new approach for three-dimensional reconstruction of Dynamic AngioThermography (DATG) images based on the inversion of heat equation. Phys. Medica 2016, 32, 1052–1064. [Google Scholar] [CrossRef]
  37. Gonzales, R.C.; Fittes, B.A. Gray-level transformations for interactive image enhancement. Mech. Mach. Theory 1977, 12, 111–122. [Google Scholar] [CrossRef]
  38. Hirschman, I.I.; Widder, D.V. The Convolution Transform; Courier Corporation: Chelmsford, MA, USA, 2012. [Google Scholar]
  39. Glassner, A.S. Graphics Gems I; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1990. [Google Scholar]
  40. Steger, C. An unbiased detector of curvilinear structures. IEEE Trans. Pattern Anal. Mach. Intell. 1998, 20, 113–125. [Google Scholar] [CrossRef]
Figure 1. Picture of the unfolded 1679 manuscript. The black lines show the trace lines used to fold it in order to create the “eight pages”.
Figure 1. Picture of the unfolded 1679 manuscript. The black lines show the trace lines used to fold it in order to create the “eight pages”.
Jimaging 09 00230 g001
Figure 2. X-ray 3D tomographic reconstruction of the full folded document. The writings are clearly visible, but the page superimposition makes the document unreadable without ad hoc processing.
Figure 2. X-ray 3D tomographic reconstruction of the full folded document. The writings are clearly visible, but the page superimposition makes the document unreadable without ad hoc processing.
Jimaging 09 00230 g002
Figure 3. Sequence of six consecutive slices. Two text lines are highlighted by green and red circles, showing their partial reading along different slices.
Figure 3. Sequence of six consecutive slices. Two text lines are highlighted by green and red circles, showing their partial reading along different slices.
Jimaging 09 00230 g003
Figure 4. CT reconstruction of the document on the x / y plane. (a) The whole slice. (b) Zoom of the central area of the slices where the brightest pixels correspond to the ink (writings), the light gray-levels to the pages and the darker ones to the background. (c) Detail of the folded area.
Figure 4. CT reconstruction of the document on the x / y plane. (a) The whole slice. (b) Zoom of the central area of the slices where the brightest pixels correspond to the ink (writings), the light gray-levels to the pages and the darker ones to the background. (c) Detail of the folded area.
Jimaging 09 00230 g004
Figure 5. Flowchart of the whole procedure.
Figure 5. Flowchart of the whole procedure.
Jimaging 09 00230 g005
Figure 6. A cropped slice: at the ends of the image, the two blue lines indicate the limits of cropped areas. For each section, only the parts contained between x 0 and x 1 will be used in the subsequent elaborations.
Figure 6. A cropped slice: at the ends of the image, the two blue lines indicate the limits of cropped areas. For each section, only the parts contained between x 0 and x 1 will be used in the subsequent elaborations.
Jimaging 09 00230 g006
Figure 7. Example of pre-processing (details in the square images on the right column). (a) The original slice with normalized gray levels to highlight the background noise. (b) The classification after the two filters application: in purple the pixels that assume values over the threshold while in blue the background pixels. (c) The same slice after the pre-preprocessing operated in (b), with normalized gray levels (eight pages and two envelopes).
Figure 7. Example of pre-processing (details in the square images on the right column). (a) The original slice with normalized gray levels to highlight the background noise. (b) The classification after the two filters application: in purple the pixels that assume values over the threshold while in blue the background pixels. (c) The same slice after the pre-preprocessing operated in (b), with normalized gray levels (eight pages and two envelopes).
Jimaging 09 00230 g007
Figure 8. Result of the classification step for a zoomed area of one slice I z ( x , y ) . (a) The background is in black, while the gray pixels belong to the pages. (b) This image is in false colors: different colors indicate different classified zones. The pages are classified into two zones only (in orange and green). The contact points between the pages wrongly causes the grouping of multiple zones in a single one. Other colors highlight impurities and noise that need to be eliminated: these small areas causes N 0 to be much higher than the effective number of pages (8 in our case, plus 2 envelopes).
Figure 8. Result of the classification step for a zoomed area of one slice I z ( x , y ) . (a) The background is in black, while the gray pixels belong to the pages. (b) This image is in false colors: different colors indicate different classified zones. The pages are classified into two zones only (in orange and green). The contact points between the pages wrongly causes the grouping of multiple zones in a single one. Other colors highlight impurities and noise that need to be eliminated: these small areas causes N 0 to be much higher than the effective number of pages (8 in our case, plus 2 envelopes).
Jimaging 09 00230 g008
Figure 9. Result of the classification after poorly populated zones removal: there are now four classified zones ( N 1 = 4 ) , i.e., two pages areas (in green and orange) and two spurious areas (in blue and white).
Figure 9. Result of the classification after poorly populated zones removal: there are now four classified zones ( N 1 = 4 ) , i.e., two pages areas (in green and orange) and two spurious areas (in blue and white).
Jimaging 09 00230 g009
Figure 10. Example of calculation of depths in all eight directions (orange shows the horizontal direction, cyan the vertical, black the positive diagonal and light green the negative diagonal). In this case, the highest depth value is in the horizontal direction, while the lowest one is in the vertical (cyan) direction: the point at coordinates P ( x , y ) is then assigned to a horizontal zone and with a depth equal to the vertical one. The set Φ of the background pixels closest to signal zone are indicated by a light gray point.
Figure 10. Example of calculation of depths in all eight directions (orange shows the horizontal direction, cyan the vertical, black the positive diagonal and light green the negative diagonal). In this case, the highest depth value is in the horizontal direction, while the lowest one is in the vertical (cyan) direction: the point at coordinates P ( x , y ) is then assigned to a horizontal zone and with a depth equal to the vertical one. The set Φ of the background pixels closest to signal zone are indicated by a light gray point.
Jimaging 09 00230 g010
Figure 11. (a) False-colored visualization of the geometric features computed for each pixel of Figure 8: the yellow color individuates the pixels for which the Principal Direction is horizontal, cyan the ones for which the Principal Direction is vertical, blue the ones for which the Principal Direction is positive diagonal and, finally, light green the ones for which the Principal Direction is negative diagonal. Fuchsia pixels are instead pixel with Principal Direction different from their neighbors and, consequently, they are most likely contact pixels. (b) The same as (a) for the whole area of Figure 8. (c) Result of the classification after the elimination of the individuated contact pixels: five different zones are clearly distinguishable in different false colors, individuating distinct pages (orange, green, purple, light gray and cyan).
Figure 11. (a) False-colored visualization of the geometric features computed for each pixel of Figure 8: the yellow color individuates the pixels for which the Principal Direction is horizontal, cyan the ones for which the Principal Direction is vertical, blue the ones for which the Principal Direction is positive diagonal and, finally, light green the ones for which the Principal Direction is negative diagonal. Fuchsia pixels are instead pixel with Principal Direction different from their neighbors and, consequently, they are most likely contact pixels. (b) The same as (a) for the whole area of Figure 8. (c) Result of the classification after the elimination of the individuated contact pixels: five different zones are clearly distinguishable in different false colors, individuating distinct pages (orange, green, purple, light gray and cyan).
Jimaging 09 00230 g011
Figure 12. Example of the identification of probably contact pixels, found based on mean depth analysis: they are highlighted in yellow, while pages are highlighted in false colors—the same as in Figure 11c.
Figure 12. Example of the identification of probably contact pixels, found based on mean depth analysis: they are highlighted in yellow, while pages are highlighted in false colors—the same as in Figure 11c.
Jimaging 09 00230 g012
Figure 13. Example of how the separation algorithm works: the yellow areas are the set of pixels identified as dubious contact, the brown bordered rectangles are the edges of the areas classified as effectively contact areas to be separated. The separation algorithm analyzes the number of edge pixels to the right and left of the squares and connects them with a straight line. Light gray pixels immersed in the brown rectangles (e.g., between the third an fourth pages) are contact points identified with the separation method.
Figure 13. Example of how the separation algorithm works: the yellow areas are the set of pixels identified as dubious contact, the brown bordered rectangles are the edges of the areas classified as effectively contact areas to be separated. The separation algorithm analyzes the number of edge pixels to the right and left of the squares and connects them with a straight line. Light gray pixels immersed in the brown rectangles (e.g., between the third an fourth pages) are contact points identified with the separation method.
Jimaging 09 00230 g013
Figure 14. Example of zoomed contact areas of three pages: the pages are white, blue and green (see the right side). The dubious points are highlighted in yellow, the brown rectangles are superimposed and the separation lines are in light gray.
Figure 14. Example of zoomed contact areas of three pages: the pages are white, blue and green (see the right side). The dubious points are highlighted in yellow, the brown rectangles are superimposed and the separation lines are in light gray.
Jimaging 09 00230 g014
Figure 15. The segmentation of all the pages, correctly separated. (a) The segmentation mask in which each page is highlighted with a different color. (b) The original data segmented by means of the segmentation mask shown in (a): all the pages have been correctly separated from the background.
Figure 15. The segmentation of all the pages, correctly separated. (a) The segmentation mask in which each page is highlighted with a different color. (b) The original data segmented by means of the segmentation mask shown in (a): all the pages have been correctly separated from the background.
Jimaging 09 00230 g015
Figure 16. Visual example of the expected results of classification mask applied to the whole volume.
Figure 16. Visual example of the expected results of classification mask applied to the whole volume.
Jimaging 09 00230 g016
Figure 17. Comparison between two details: (a) coming from Dambrogio et al., 2021 [34]; (b) coming from our reconstruction.
Figure 17. Comparison between two details: (a) coming from Dambrogio et al., 2021 [34]; (b) coming from our reconstruction.
Jimaging 09 00230 g017
Figure 18. Detail of a letter. The texture of the paper can be seen very well, as well as the contrast with the ink. The small bright spots are ink and paper inhomogeneities. Note how the texture of the document has also been correctly reconstructed.
Figure 18. Detail of a letter. The texture of the paper can be seen very well, as well as the contrast with the ink. The small bright spots are ink and paper inhomogeneities. Note how the texture of the document has also been correctly reconstructed.
Jimaging 09 00230 g018
Figure 19. Page 1 extracted after the elaboration of the tomographic reconstruction. The black zones represent areas that the algorithm has mistakenly recognized as background.
Figure 19. Page 1 extracted after the elaboration of the tomographic reconstruction. The black zones represent areas that the algorithm has mistakenly recognized as background.
Jimaging 09 00230 g019
Figure 20. Page 2 extracted after the elaboration of the tomographic reconstruction. The black areas are due to the failure of the page propagation step.
Figure 20. Page 2 extracted after the elaboration of the tomographic reconstruction. The black areas are due to the failure of the page propagation step.
Jimaging 09 00230 g020
Figure 21. Comparison of our method with the results achieved in [26]. (a) The initial 3D reconstruction of the closed manuscript; (b) the final segmentation achieved in [25]; (c) the segmentation achieved by our method: each color corresponds to a different page; (d) the profiles of the pages segmented by our method.
Figure 21. Comparison of our method with the results achieved in [26]. (a) The initial 3D reconstruction of the closed manuscript; (b) the final segmentation achieved in [25]; (c) the segmentation achieved by our method: each color corresponds to a different page; (d) the profiles of the pages segmented by our method.
Jimaging 09 00230 g021
Figure 22. The result of the extraction of all the pages composing the document (right) compared with the unfolded original manuscript (left). The two black horizontal areas of larger size are due to the cropping of the slices in the pre-processing step, while the other black zones on the right are related to a failure of the propagation procedure in the area closest to the paper folds.
Figure 22. The result of the extraction of all the pages composing the document (right) compared with the unfolded original manuscript (left). The two black horizontal areas of larger size are due to the cropping of the slices in the pre-processing step, while the other black zones on the right are related to a failure of the propagation procedure in the area closest to the paper folds.
Jimaging 09 00230 g022
Figure 23. Envelope of the Venetian testament from the Archivio di Stato in Venice [29].
Figure 23. Envelope of the Venetian testament from the Archivio di Stato in Venice [29].
Jimaging 09 00230 g023
Figure 24. A single scan of the envelope of the Venetian testament from the Archivio di Stato in Venice. The image histogram has been stretched to put the envelope better in evidence. The seal (the big spot in white) and the ring artifacts are clearly visible.
Figure 24. A single scan of the envelope of the Venetian testament from the Archivio di Stato in Venice. The image histogram has been stretched to put the envelope better in evidence. The seal (the big spot in white) and the ring artifacts are clearly visible.
Jimaging 09 00230 g024
Figure 25. Sagittal section of the Venetian testament.
Figure 25. Sagittal section of the Venetian testament.
Jimaging 09 00230 g025
Figure 26. Segmentation result for the Venetian testament.
Figure 26. Segmentation result for the Venetian testament.
Jimaging 09 00230 g026
Figure 27. Reconstruction of one page, between two consecutive folds, of the Venetian testament.
Figure 27. Reconstruction of one page, between two consecutive folds, of the Venetian testament.
Jimaging 09 00230 g027
Figure 28. Details of the final extraction from Venetian testament. Even if the original scan is corrupted by artifacts and noise, the final result shows readable text. (a) Detail around the seal; (b) closer detail showing the text just over the seal.
Figure 28. Details of the final extraction from Venetian testament. Even if the original scan is corrupted by artifacts and noise, the final result shows readable text. (a) Detail around the seal; (b) closer detail showing the text just over the seal.
Jimaging 09 00230 g028
Table 1. Tomographic settings of the document scan.
Table 1. Tomographic settings of the document scan.
Voltage
(kV)
Current
(μA)
Projection
(Number)
Range
(°)
Voxel Size
(μm)
Scan Time
(h)
451173000360159
Table 2. Geometric characteristics computed for each zone.
Table 2. Geometric characteristics computed for each zone.
ZoneArea
(Pixels)
Mean Depth
Md (Pixels)
Standard Deviation
180043.31.3
247463.80.9
314,8584.21.4
413,3893.81.7
538362.80.4
Mean89673.60.5
Table 3. Geometric features computed for each zone at the end of the separation step.
Table 3. Geometric features computed for each zone at the end of the separation step.
ZoneArea
(Pixels)
Depth
(Pixels)
Standard Deviation
134942.50.6
244283.40.8
347463.70.9
443743.40.8
548513.80.8
655274.50.8
742423.30.9
845533.50.8
944383.40.8
1038362.80.4
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Brancaccio, R.; Albertin, F.; Seracini, M.; Bettuzzi, M.; Morigi, M.P. A Geometric Feature-Based Algorithm for the Virtual Reading of Closed Historical Manuscripts. J. Imaging 2023, 9, 230. https://doi.org/10.3390/jimaging9100230

AMA Style

Brancaccio R, Albertin F, Seracini M, Bettuzzi M, Morigi MP. A Geometric Feature-Based Algorithm for the Virtual Reading of Closed Historical Manuscripts. Journal of Imaging. 2023; 9(10):230. https://doi.org/10.3390/jimaging9100230

Chicago/Turabian Style

Brancaccio, Rosa, Fauzia Albertin, Marco Seracini, Matteo Bettuzzi, and Maria Pia Morigi. 2023. "A Geometric Feature-Based Algorithm for the Virtual Reading of Closed Historical Manuscripts" Journal of Imaging 9, no. 10: 230. https://doi.org/10.3390/jimaging9100230

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop