Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2017 Aug 10.
Published in final edited form as: Proc IEEE Int Symp Biomed Imaging. 2017 Jun 19;2017:424–428. doi: 10.1109/ISBI.2017.7950552

DYNAMIC REGISTRATION FOR GIGAPIXEL SERIAL WHOLE SLIDE IMAGES

Blair J Rossetti *, Fusheng Wang , Pengyue Zhang , George Teodoro , Daniel J Brat , Jun Kong *
PMCID: PMC5550903  NIHMSID: NIHMS885908  PMID: 28804569

Abstract

High-throughput serial histology imaging provides a new avenue for the routine study of micro-anatomical structures in a 3D space. However, the emergence of serial whole slide imaging poses a new registration challenge, as the gigapixel image size precludes the direct application of conventional registration techniques. In this paper, we develop a three-stage registration with multi-resolution mapping and propagation method to dynamically produce registered subvolumes from serial whole slide images. We validate our algorithm with gigapixel images of serial brain tumor sections and synthetic image volumes. The qualitative and quantitative assessment results demonstrate the efficacy of our approach and suggest its promise for 3D histology reconstruction analysis.

Index Terms: Histopathology image registration

1. INTRODUCTION

The introduction of high-throughput scanning technology has allowed for routine digital 3D reconstruction of serial whole slide histology images [1]. However, registration of serial whole slide images is a challenge due to artifacts induced by sectioning, mounting, and imaging [2, 3, 4, 5]. Additionally, a single image may contain several gigabytes of data. The resulting 3D volumes can easily exceed modern computer memory limits, thus precluding the direct use of existing reconstruction methods [6, 7, 8, 9, 10, 11]. Although some registration methods have been developed for 2D gigapixel images [12, 13, 14, 15], there is no method that dynamically extends registration to serial gigapixel images aiming for 3D micro-anatomical structure reconstruction. To address this, we develop a new multi-resolution mapping and propagation method for serial image registration.

In practice, it is noticed that whole slide imaging stores more data than what is typically required for research or diagnosis. Furthermore, researchers and clinicians are often only interested in small subvolumes of data such as disease sites or histology hallmarks. Based on current methods, accessing such subvolumes requires the prior registration of the entire full-resolution whole slide image volume, leading to a high computational cost. To solve this problem, we develop a hierarchical image registration method that computes image deformation on-the-fly. In this way, we can minimize the computational burden and focus analysis on the tissue subvolumes of interest to domain experts. As most whole slide image files produced by digital scanners (e.g. Hamamatsu Nanozoomer 2.0-HT) contain a multi-resolution pyramid image representation, we also reduce computation by performing time consuming tasks, such as registration optimization, at a low resolution and mapping the resulting deformations to a high resolution for subvolume reconstruction.

2. METHODS

Our workflow for subvolume registration includes 1) low resolution pre-alignment, global and local registration, 2) multi-resolution transformation mapping, and 3) high resolution registration propagation (Figure 1).

Fig. 1.

Fig. 1

An overview of the proposed method for three-stage registration at low resolution (left panel) and high resolution mapping and propagation across serial images (right panel).

2.1. Low Resolution Whole Slide Registration

Serial tissue sections are typically mounted to glass slides at random locations and orientations. To facilitate full tissue registration, we first pre-align each tissue section to a reference section based on their contour principal axes [16]. Registration is computed between each sequential pair of images within the volume. Low resolution serial images are first converted to grayscale and recognized for tissue components with adaptive global thresholding. We denote the tissue contours as C = {xi = (xi1, xi2)T, ∀i}. With detected C, we next compute the centroid, μ ∈ ℝ2, and construct the scatter matrix Σ = (Yμ) (Yμ)T, where Y is a matrix with columns being {xi, ∀i} and (Yμ) is column-wise subtraction. After matrix diagonalization of Σ, we have two eigen values λ1 and λ2 (λ1λ2) and two corresponding eigen vectors v1 and v2. This process is applied to both reference image and target image, with the resulting matrices composed with eigen vectors Vr = (vr1 | vr2) and Vt = (vt1 | vt2), respectively. We compute the rotation matrix candidates R+=VrVtT and R = −R+. We take the rotation direction associated with the smaller difference between reference and pre-aligned images:

R=argminR{R+,R}||IrIt(Rxi(μrRμt))||2, (1)

where Ir and It are the reference and target image in grayscale, respectively. The resulting pre-aligned image can be obtained by I^=It(R(xiΔμ)), where Δμ = μrR*μt.

For global similarity transformation, we detect critical landmarks by Speeded Up Robust Feature (SURF) detector [17]. The detected tissue landmarks are then matched with local descriptors [18]. Since many cellular features are at least 5 μm in diameter, corresponding landmarks, such as nuclei, exist in adjacent 5 μm thick sections. These landmarks help mitigate the “banana” reconstruction problem [19].

The matched point pairs are used to estimate an optimal similarity transformation, T. Given two corresponding point sets X={xi:i=1,,N} and Y={yi:i=1,,N}, we aim to minimize i=1N||T(xi;s,θ,t)yi||2 by optimizing the parameters {s, θ, t}, where s, θ, and t are the scale, rotation angle, and spatial translation vector, respectively. The optimal parameters for similarity transformation can be analytically solved [20].

Global registration is followed by a nonrigid registration to compensate for local tissue deformations by B-spline transformation. The optimal local deformations are found by simultaneously maximizing the normalized mutual information and minimizing transformation energy [21, 22].

2.2. Multi-Resolution Registration Mapping

The resulting global and local transformations estimated with whole slide images at low resolution can be mapped to high resolution image levels (Figure 2). We denote the pre-alignment, similarity, and nonrigid transformation at low image resolution as P, T, and D, respectively.

Fig. 2.

Fig. 2

Diagram of mapping relationships between reference and target image at low and high resolution, respectively.

The pre-alignment and global registration can be simply denoted in a homogeneous coordinate system as follows:

graphic file with name nihms885908e1.jpg

where x = (x1, x2, 1)T ; x and x′ are coordinates for reference and target image at low resolution; s is the similarity transformation scaling factor; R and R^ are rotation matrices for the global and pre-alignment transformation, respectively; Δx = (Δx1, Δx2)T is a spatial translation vector. We can combine transformation T with P and denote it as T¯.

Let us denote the global and local transformation at a high image resolution as T¯ and D, respectively. When mapping from low to high resolution, we can find T¯ by:

(X1/αX2/α1)=x=T¯x=T¯(X1/αX2/α1),X=T¯X,

where X and X′ are coordinate for reference and target image at high resolution, α = 2|ΔL| and ΔL is the resolution level difference between low and high resolution, given a standard 2× downsampling rate followed by most scanners. It is straightforward to have T¯ and T¯1 as:

T¯=((sRR^)αΔx01×21),T¯1=((sRR^)Tα(sRR^)TΔx01×21). (2)

For local deformation, the transformation at high resolution level is:

D(X1,X2)=αD(X1/α,X2/α)αΦ(D,(X1/α,X2/α)), (3)

where Φ(·) is a 2D interpolation function necessary for non-integer coordinates (X1, X2).

2.3. High Resolution Image Registration Propagation

We use the center image in the volume as the reference and map remaining images to the reference image with cascaded pair-wise transformations. In this way, all images are transformed to a common coordinate system for 3D histological structure reconstruction and spatial analysis.

To facilitate discussion, let us denote the ith original image, globally registered image and locally registered image as Ii, I¯i, and Ii, respectively. Assuming there are N serial images in the imaging volume, we set image i* as the reference image for the whole volume, where i=N2 Correspondingly, the T¯i and T¯i1 are global transformations from Ii to Ii+1, and from Ii+1 to Ii, respectively. Di is the nonrigid deformation from I¯i to I¯j, where j = i + 1 if i < i* and j = i − 1 if i > i*, respectively. Similarly, Di1=Di is the nonrigid deformation from I¯j to I¯i. Note that Di=0.

As the nonrigid registration at the low resolution is applied to the globally registered image sequence and only local alignment transformations for all adjacent image pairs are available, the way to find the aggregated transformation for a target image slide Ij, where |ji*| > 1, to the reference image Ii at the high image resolution is not straightforward. We describe our method for mapping each pixel in the reference coordinate system to the corresponding location in a target image with the mapped local and global transformations from low to high image resolution as follows.

Step 1: As globally registered images I¯i have the same dimensions as the reference image Ii where i < i*, we first map an arbitrary pixel (X1i,X2i)Ω(Ii) to globally registered image I¯i1 space by nonrigid mapping Di11=Di1. The resulting point location after local deformation is (X1i1,X2i1)=(X1i,X2i)Di1(X1i,X2i) (blue arrows in Figure 1).

Step 2: Next, (X1i1,X2i1)Ω(I¯i1) can be mapped to Ω(Ii1) as: (X1,X2)=T¯i1(X1i1,X2i1) (orange arrows in Figure 1).

Step 3: Repeat Step 1 and 2 to propagate D and T¯ for aggregated transformation from Ii to any arbitrary image in the volume. A similar procedure is applied to Ij, where j > i*. The algorithmic description of this registration propagation is presented in Algorithm 1.

To support 3D reconstruction of micro-anatomical objects such as cells, we use OpenSlide [23] to dynamically extract a small region from each serial image to be registered with the multi-resolution registration mapping and propagation algorithm. By this approach, we effectively address the computer memory overflow problem due to the gigapixel image scale.

3. EXPERIMENTS AND RESULTS

We test our method for dynamic subvolume registration on a set of 40 serial hematoxylin and eosin stained tissue sections from a glioblastoma (GBM) biopsy. Each GBM serial section is cut to 5 μm thick and digitized at 0.2265 μm/pixel resolution, resulting in an overall image volume of 12.930 × 15.279 × 0.200mm3 ( 150 gigavoxels). From the entire image volume, we extract a registered 928 × 928 × 200μm3 ( 670 megavoxels) subvolume by performing whole slide pre-alignment, global and local registration at low resolution (L = 8) and mapping to a high resolution (L = 0).

Algorithm 1.

Registration Mapping and Propagation

Input: {Ii, i = 1, 2, …, N}: original serial images
Output: {Ii,i=1,2,,N}: registered serial images
Operator:
i:jj((i+sign(ji)×2(i+sign(ji)×1(i()))))
1: Compute reference image index iN2
2: Compute T¯,T¯1, and D by Eqn (2) and (3), respectively
3: for all i ∈ (i* − 1, i* − 2, …, 1) do
4: for all (x1,x2)Ω(Ii) do
5:   Set (X1, X2) (x1, x2)
6:   Set j ← i* − 1
7:   while ji do
8:    Local deformation: (X1,X2)(X1,X2)Dj(X1,X2)
9:    j ← j − 1
10:    Ii(x1,x2)interpolateIi(T¯(i1):i1(X1,X2))
11: for all i ∈ (i* + 1, …, N) do
12: for all (x1, x2) ∈ Ω (Ii*) do
13:   Set (X1, X2) (x1, x2)
14:   Set j ← i* + 1
15:   while ji do
16:    Local deformation: (X1,X2)(X1,X2)Dj(X1,X2)
17:   j ← j + 1
18:    Ii(x1,x2)interpolateIi(T¯i:(i1)1(X1,X2))

First, registration accuracy is examined visually for tissue edge discontinuity in distinct cross sections through the low resolution image volume in Figure 3. Each cross section plane is uniquely colored in the 3D view of the registered volume. Cross section locations are randomly selected and colored to match the y-z cross section views. Scaling in the z direction is increased to aid visual inspection of contour discontinuities. We observe the progressive improvement in registration for pre-alignment, similarity transformation, and nonrigid deformation. The subvolume montage view of a small tissue region of interest in Figure 4 shows a high correspondence across serial sections, suggesting the efficacy of our proposed method.

Fig. 3.

Fig. 3

Qualitative evaluation of registration accuracy using random cross sections. Each row in the bottom panel displays the y-z cross sections at each registration stage for the corresponding cutting plane in the 3D rendered volume at the top.

Fig. 4.

Fig. 4

Results of high resolution mapping and propagation for a 4096 × 4096 pixel region of serial GBM sections. A montage of the registered region is presented on the left, and a 3D rendered volume corresponding to the green box is shown on the right.

Next, we quantitatively evaluate the proposed registration propagation and multi-resolution mapping method by computing the registration accuracy for ten synthetic image volumes. For each such synthetic ground truth volume, we replicate a single section from the GBM data set 50 times at levels 8, 7 and 6. We intentionally produce random global transformations and local deformations to the level 8 synthetic volumes to simulate distortions introduced by tissue processing. Global transformations are constructed using sheer, translation and rotation values drawn from N(0,0.001), N(0,p/3), where p is the smallest image dimension, and U(0,360), respectively. We extrapolate a 4 × 4 matrix, subject to N(0,4), to appropriate image dimensions for generating local deformations. The global and local deformations are scaled using Equation 2 and 3 to produce identical distortions for the level 7 and level 6 ground truth volumes.

Registration is performed for each distorted synthetic volume at level 8, and the average registration accuracy is computed for pre-alignment, global and local registration. The registration accuracy for each synthetic volume is measured by the background overlap between the synthetic ground truth and deformed volume [24]. The average registration accuracies at level 8 describe the distortion correction power at each sequential registration step. To explore the error in multi-resolution mapping, we scale the deformations at level 8 and apply them to level 7 and 6. The registration accuracy for each step at each level is presented in Table 1. We notice that sequential pre-alignment, global and local registration can correct most simulated distortions, and there is no substantial increase in error introduced by multi-resolution mapping from level 8 to level 6. The observed degradation from pre-aligned to global registration could result from the extra degree of freedom for scaling in the similarity transform estimation, given our synthetic data is not substantially scaled by simulated distortions. In the future, we plan to extend this work with iterative registration corrections across pyramidal resolution levels to further improve concordance across serial sections. Moreover, we intend to use human-annotated landmarks to extend our quantitative assessment.

Table 1.

Registration accuracy for each processing step at three different levels: Mean±Std (n = 50).

Level Pre-aligned Global Local
L = 8 0.938 ± 0.005 0.903 ± 0.020 0.989 ± 0.001
L = 7 0.934 ± 0.005 0.900 ± 0.019 0.974 ± 0.001
L = 6 0.931 ± 0.005 0.897 ± 0.018 0.965 ± 0.001

4. CONCLUSION

We present a new method to dynamically register 3D subvolumes from serial gigapixel whole slide images. The optimal deformation at low resolution is first estimated with a multistage registration process through serial images. With the optimal transformations, we next create a mapping and propagation method that connects the reference coordinate at the low resolution level to a registered subvolume at the high resolution level. Both qualitative and quantitative evaluation results demonstrate the promise of our multi-stage and multi-resolution registration method for future 3D micro-anatomical structure reconstruction from serial whole slide histology images at gigapixel scale.

Acknowledgments

This research is supported in part by the NSF GRFP DGE-1444932, ACI 1443054 and IIS 1350885; NIH K25CA181503 and R01CA176659; The Emory University Research Committee; and CNPq.

References

  • 1.Farahani N, Parwani AV, Pantanowitz L. Whole slide imaging in pathology: advantages, limitations, and emerging perspectives. Pathology and Laboratory Medicine International. 2015;7:23–33. [Google Scholar]
  • 2.Zitová B, Flusser J. Image registration methods: a survey. Image and Vision Computing, vol. 2003;21(11):977–1000. [Google Scholar]
  • 3.Modersitzki J. FAIR: flexible algorithms for image registration, vol. 2009;6 SIAM. [Google Scholar]
  • 4.Rastogi V, Puri N, Arora S, Kaur G, Yadav L, Sharma R. Artefacts: a diagnostic dilemma–a review. Journal of Clinical and Diagnostic Research. 2013;7(10):2408. doi: 10.7860/JCDR/2013/6170.3541. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Oliveira FPM, Tavares JRS. Medical image registration: a review. Computer Methods in Biomechan-ics and Biomedical Engineering. 2014;17(2):73–93. doi: 10.1080/10255842.2012.670855. [DOI] [PubMed] [Google Scholar]
  • 6.Sébastien Ourselin, Alexis Roche, Gérard Subsol, Xavier Pennec, Nicholas Ayache. Reconstructing a 3d structure from serial histological sections. Image and vision computing. 2001;19(1):25–31. [Google Scholar]
  • 7.Oliver Schmitt, Jan Modersitzki, Stefan Heldmann, Stefan Wirtz, Bernd Fischer. Image registration of sectioned brains. International Journal of Computer Vision. 2007;73(1):5–39. [Google Scholar]
  • 8.Arganda-Carreras Ignacio, Fernández-González Rodrigo, Muñoz-Barrutia Arrate, Ortiz-De-Solorzano Carlos. 3d reconstruction of histological sections: Application to mammary gland tissue. Microscopy research and technique. 2010;73(11):1019–1029. doi: 10.1002/jemt.20829. [DOI] [PubMed] [Google Scholar]
  • 9.Cifor Amalia, Bai Li, Pitiot Alain. Smoothness-guided 3-d reconstruction of 2-d histological images. Neuroimage. 2011;56(1):197–211. doi: 10.1016/j.neuroimage.2011.01.060. [DOI] [PubMed] [Google Scholar]
  • 10.Pichat Jonas, Modat Marc, Yousry Tarek, Ourselin Sebastien. A multi-path approach to histology volume reconstruction. 2015 IEEE 12th International Symposium on Biomedical Imaging (ISBI) IEEE. 2015:1280–1283. [Google Scholar]
  • 11.Xu Yiwen, Pickering J Geoffrey, Nong Zengxuan, Gibson Eli, Arpino John-Michael, Yin Hao, Ward Aaron D. A method for 3d histopathology reconstruction supporting mouse microvasculature analysis. PloS one. 2015;10(5):e0126817. doi: 10.1371/journal.pone.0126817. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Lotz J, Olesch J, Müller B, Polzin T, Galuschka P, Lotz JM, Heldmann S, Laue H, González-Vallinas M, Warth A, Lahrmann B, Grabe N, Sedlaczek O, Breuhahn K, Modersitzki J. Patch-based nonlinear image registration for gigapixel whole slide images. IEEE Transactions on Biomedical Engineering. 2016;63(9):1812–1819. doi: 10.1109/TBME.2015.2503122. [DOI] [PubMed] [Google Scholar]
  • 13.Roberts N, Magee D, Song Y, Brabazon K, Shires M, Crellin D, Orsi NM, Quirke R, Quirke P, Treanor D. Toward routine use of 3d histopathology as a research tool. The American Journal of Pathology. 2012;180(5):1835–1842. doi: 10.1016/j.ajpath.2012.01.033. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Song Y, Treanor D, Bulpitt AJ, Wijayathunga N, Roberts N, Wilcox R, Magee DR. Unsupervised content classification based nonrigid registration of differently stained histology images. IEEE Transactions on Biomedical Engineering. 2014;61(1):96–108. doi: 10.1109/TBME.2013.2277777. [DOI] [PubMed] [Google Scholar]
  • 15.Schwier M, Böhler T, Hahn HK, Dahmen U, Dirsch O, et al. Registration of histological whole slide images guided by vessel structures. Journal of Pathology Informatics. 2013;4(2):10. doi: 10.4103/2153-3539.109868. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Alpert NM, Bradshaw JF, Kennedy D, Correia JA. The principal axes transformation–a method for image registration. Journal of Nuclear Medicine. 1990;31(10):1717–1723. [PubMed] [Google Scholar]
  • 17.Panchal PM, Panchal SR, Shah SK. A comparison of sift and surf. International Journal of Innovative Research in Computer and Communication Engineering. 2013;1(2):323–327. [Google Scholar]
  • 18.Lowe DG. Distinctive image features from scale-invariant keypoints. International Journal of Computer Vision. 2004;60(2):91–110. [Google Scholar]
  • 19.Malandain Grégoire, Bardinet Eric, Nelissen Koen, Vanduffel Wim. Fusion of autoradiographs with an mr volume using 2-d and 3-d linear transformations. NeuroImage. 2004;23(1):111–127. doi: 10.1016/j.neuroimage.2004.04.038. [DOI] [PubMed] [Google Scholar]
  • 20.Skrinjar O. Point-based registration with known correspondence: Closed form optimal solutions and properties. International Workshop on Biomedical Image Registration Springer. 2006:315–321. [Google Scholar]
  • 21.Rueckert D, Sonoda LI, Hayes C, Hill DLG, Leach MO, Hawkes DJ. Nonrigid registration using free-form deformations: application to breast mr images. IEEE Transactions on Medical Imaging. 1999;18(8):712–721. doi: 10.1109/42.796284. [DOI] [PubMed] [Google Scholar]
  • 22.Bardinet E, Cohen LD, Ayache N. Tracking and motion analysis of the left ventricle with deformable superquadrics. Medical Image Analysis. 1996;1(2):129–149. doi: 10.1016/S1361-8415(96)80009-0. [DOI] [PubMed] [Google Scholar]
  • 23.Goode A, Gilbert B, Harkes J, Jukic D, Satyanarayanan M, et al. Openslide: A vendor-neutral software foundation for digital pathology. Journal of Pathology Informatics. 2013;4(1):27. doi: 10.4103/2153-3539.119005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Wang CW, Gosno EB, Li YS. Fully automatic and robust 3d registration of serial-section microscopic images. Scientific Reports. 2015;5 doi: 10.1038/srep15051. [DOI] [PMC free article] [PubMed] [Google Scholar]

RESOURCES