Understand Internal Structure of Wood Samples with X-Ray Tomography and ParaView
This is a guest blog post from Franco Otaola, from CentraleSupélec. Following his presentation at the ParaView User Day Europe 2026, he shares his use of ParaView to characterize wood structure from X-Ray tomography scan.
Introduction
Wood and bio-based materials can offer excellent performance for applications such as construction and insulation. Nevertheless, these materials come from plants where they play several roles, including the vascular system and mechanical support. They are therefore strongly anisotropic. Consequently, a good description of their morphology is a key element to be able to predict their performance in different applications. The main objective of this work is to create the different building blocks to better predict and understand these materials and incrementally approach the creation of their digital twin. In particular, in this blog post, we focus on the digital twin of wood samples. ParaView is well known for the post-processing of simulation data, but it can also be used directly for image processing.
Characterizing the Materials by X-Ray Tomography
µX-ray tomography was used in this work to collect the morphology of different materials at high resolution. This technique allows us to obtain a digital copy of the internal structure with a micro- to nanoscale with the benefit of being non-destructive. The tomography measurements were performed at the ANATOMIX beamline at SOLEIL synchrotron. The output of the X-ray tomography is a raw 3D image of the sample divided into elements (ie., voxels) where each of the voxels has an associated scalar field indicating the attenuation of the x-ray beam through the sample at that specific location. Specifically, the presented work was for a sample of spruce wood with a scanning resolution of 130 µm with a total size of 260x152x543 voxels.

From 3D Image to Digital Twin
For the digital twin of the wood sample, three distinctive types of information are necessary to be extracted from the 3D image:
- Image segmentation in order to distinguish voids from cell walls.
- Surface mesh of the wood structure, the RAW image comprises the whole volume of the scan, the empty volume and the wood itself.
- Identification of the sap channels. These present different mechanical properties between their axial and radial direction.
There are three main procedures, segmentation, extraction of the surface mesh of the structure and the labeling of the channels.
Extraction of Wood Structure
The grey-values of the X-ray attenuation can be used for the segmentation of the sample, ie., identification of two phases here (voids and cell walls), by changing the representation from a 3D image to a histogram, where different populations can be distinguished.
![A gray histogram plot on a white grid background labeled "Raw histogram" in the top-right legend, charting normalized "Number of elements [-]" (from 0.000000 to 0.000175) against "X-ray attenuation [-]" (from 20,000 to 50,000). The distribution shows a prominent, sharp central peak just above 30,000 flanked by two broader, lower shoulders around 26,500 and 37,500.](https://www.kitware.com/main/wp-content/uploads/2026/11/paraview-x-ray-02.webp)
It is possible to observe three different main populations, in principle, as said before, there should be only two populations: voids and cell walls. Once the same data is displayed into the 3D image, it becomes evident that the third population is on the interface of the two materials which indicates an artifact of the tomography reconstruction itself and not a physical third material.

Once the different materials have been separated into voids (red+blue zones) and cell walls (green zone), the extraction of the surface mesh of the structure can be done. The surface extraction is just some combination of basic ParaView filters, Connectivity, Extract surface (and smoothing to reduce the staircase effect of the voxels on the surface of the structure).
Keeping the Structured Data Type a Must
An issue arose during the analysis of the data: the transformation of the original structured data to unstructured ones caused by several of the ParaView filters. In principle, this was not an issue until it was realized that even for small samples, the memory consumption increased too quickly. For this reason, different custom filters were implemented to keep the data type as structured data without transforming it into unstructured data. For example, some filters were reimplemented to keep the structured data type, such as Threshold, and other filters were implemented from scratch for newer functionalities such as erosion and dilation. This allows us to keep the structured data type which drastically reduces the memory consumption. Furthermore, to better identify the different elements, a cell field was added to the data, called Tag. This field allows us to easily differentiate the different elements. The voxels representing the solid have a value of 0, and the voxels representing the different channels have a value equal to their index, for channel 1, it has a Tag value of 1, channel 2 has a value of 2, etc.
Labeling of Cell Lumens (Cell Voids) and Determining their Main Direction
The air region (red+blue sections in Fig 3.) of the scan represents all the cell lumens inside the structure. Due to the function of wood in trees, these lumens are interconnected to form the vascular system. In softwood, the tracheid lumens are connected by bordered pits, which are well described at this resolution level. This brings the major challenge to this work: how to separate objects (cell voids) that are indeed connected, in order to obtain one object per cell lumen.

When using the default tools from ParaView to separate different regions, ie., Connectivity filter, on the air section, one can observe that most of the cell lumens remain interconnected (Fig. 5).

Due to the inter-connectivity, the labeling of the different channels is a complex task, for this reason, three different Python functions were implemented:
- channelChecking: by using different filters, it checks if an element (group of voxels) is a channel or consists of multiple interconnected channels by returning a boolean output. The logic is to slice the element at different positions in its main direction. Subsequently, each slice is checked if there is a single or multiple regions. However, if more than a fraction of the slices are multiple regions, then the element is not a channel. To illustrate the two different cases, when an element is detected as a channel or multiple channels, two different regions are shown in Fig 6.
- controlledErosion: we remove/erode the external layer of voxels around the surface of an element (group of voxels). This function returns two elements: the removed voxel layer, and the remaining internal voxels.
- controlledDilation: to an element (group of voxels), we add the voxels contained in another element touching the external surface of the first element. This function returns two elements: the first containing the original voxels plus the voxels of the second element that were on the surface of it, and a second element which is the second element minus the voxels transferred to the first element.
For the complete labeling of the channels on the air region, we first separate each unconnected element and check if an element is a channel or not. If the element is a channel, the Tag field is updated as a channel, otherwise we remove one layer of its surface, and we check again on the newly produced elements. As the pit diameters are smaller than the channel diameters, at one point the erosion will remove enough voxels to separate channels that are connected by pits. On the other hand, the removed layers are also stored, so once an element is classified as a channel, the previously removed layers can be added again to ‘reconstruct’ the channel to its initial volume again. As we are interested in the main direction of the lumens, even though during the regrowth the pit voxels will be added back to the channels, these voxels (due to their small size) will not impact the global main direction, which is our main interest. The complete workflow will be driven by the three previously cited functions, in an iterative loop over each element until all the voxels of the air region have been classified into a channel.

The results after each step of erosion/dilation can be observed in the following images where the colored parts are already classified channels and transparent matters are the air region still to classify.
Fig. 7. Unlabeled section of the air region in transparent white and colorized detected channels for each removed layer step
Conclusions
ParaView proved to be a capable tool for image processing. It helped extract the surface of our wood sample and classify the sap channels. Nevertheless, some development of new specialized filters is necessary, as current workflows tend to automatically transform the data from structured to unstructured, which can be quite penalizing and limiting. It is worth noting that there is a current effort from Kitware to bring these capabilities to ParaView, for example, in the recent release of the Crop filter. Despite this lack of specific filters, the open nature of ParaView in combination with the programmable filters that give us access to low level VTK programming allowed us to fill these gaps.
The next steps for this work will consist of building a volumetric mesh from the extracted surface mesh and using ParaView to create a vector field to propagate the local cell wall orientation (orientation of cellulose micro-fibrils) from the lumen direction and the microfibril angle (MFA). Once this has been accomplished, the next step will be to use the volumetric mesh and the created field for mechanical simulations using the FEniCS library.
Acknowledgments
This work was carried out through the Projet Digit-M-Bio, financed by the Fondation Paris-Reims. The X-ray tomography scans were performed at the ANATOMIX beamline at SOLEIL.




