- Research Note
- Open access
- Published:
Reslice3Dto2D: Introduction of a software tool to reformat 3D volumes into reference 2D slices in cardiovascular magnetic resonance imaging
BMC Research Notes volume 17, Article number: 270 (2024)
Abstract
Objective
Cardiovascular magnetic resonance enables the quantification of functional and morphological parameters with an impact on therapeutical decision making. While quantitative assessment is established in 2D, novel 3D techniques lack a standardized approach. Multi-planar-reformatting functionality in available software relies on visual matching location and often lacks necessary functionalities for further post-processing. Therefore, the easy-to-use Reslice3Dto2D software tool was developed as part of another research project to fill this gap and is now introduced with this work.
Results
The Reslice3Dto2D reformats 3D data at the exact location of a reference slice with a two-step-based interpolation in order to reflect in-plane discretization and through-plane slice thickness including a slice profile selection. The tool was successfully validated on an artificial dataset and tested on 119 subjects with different underlying pathologies. The exported reformatted data could be imported into three different post-processing software tools. The quantified image sharpness by the Frequency Domain Image Blur Measure was significantly decreased by around 40% on rectangular slice profiles with 7 mm slice thickness compared to 0 mm due to partial volume effects. Consequently, Reslice3Dto2D enables the quantification of 3D data with conventional post-processing tools as well as the comparison of 3D acquisitions with their established 2D version.
Introduction
In current guidelines cardiovascular magnetic resonance (CMR) is a recommended imaging modality for the characterization of cardiovascular diseases [1,2,3]. The quantification of functional and morphological parameters is highly relevant in clinical decision making [1, 2].
Due to technical restrictions, mainly two dimensional (2D) acquisition methods were available in the past [4] while novel technical developments enable three dimensional (3D) acquisitions for several sequence types like CINE [4], angiography [5], flow [6], Late Gadolinium Enhancement (LGE) [5, 7, 8], perfusion imaging [9], parametric mapping [10] and fat/water imaging [8]. The advantages of 3D acquisitions compared to 2D include the omission of a complex slice positioning during examination [4], the possibility to cover of the whole heart [4], an improved diagnosis of cardiovascular diseases with complex anatomic arrangement [3], a decreased impact of partial volume effects [7] and the potential of simultaneous sequence acquisition [8, 10].
Nonetheless, conventional and established 2D sequences provide the gold standard in most clinical settings [7] and represent the quantitative and qualitative validation for novel 3D sequences [4, 7]. As the post-processing of 3D data is neither standardized nor routinely available, a reformatting is currently necessary to enable usage of conventional 2D post-processing tools. Analysis software products offer multi-planar-reformatting (MPR) functionalities that rely on manual or basic oriented (axial, sagittal or coronal) 2D plane definitions [4, 11]. Some of these tools lack DICOM [12] export or processing functionalities and thus limits the post-processing capabilities. Furthermore, a difference in the actual scanner produced slice profile and an ideal rectangular shaped slice profile has been reported [13]. The inclusion of slice profile and respective slice thickness enables to reproduce more accurate scanner behavior. While open-source solutions, like 3D slicer [11], offer desired functionalities either intrinsic, by extension modules or by the possibility of self-developing extensions, the necessary expertise for the usage represents an obstacle.
Hence, this work aims to introduce our self-developed and easy-to-use Reslice3Dto2D software as an intermediate processing tool for the clinical research of novel 3D acquisition methods. The tool was developed with a focused use-case on CMR and enables the reformatting of 3D data to the exact location of reference 2D acquisitions including slice thickness adjustments, slice profile options and a DICOM [12] export functionality.
Methods
As this work introduces software, the implementation of the Reslice3Dto2D tool is described first, followed by a description of its validation and testing.
Implementation
The Reslice3Dto2D tool was fully implemented in Python (Version 3.8, Python Software Foundation) and includes a graphical user interface (GUI). The source-code is provided as supplemental material S1 and made publicly available [14]. Installation details are provided in the README.md of the source-code and user guidance is described in detail in the user manual of the supplemental material S2. The user manual lists also DICOM [12] tags that are a must for the functionality of the Reslice3Dto2D tool. Future maintenance of the source-code is not guaranteed, but re-usage and further development is explicitly allowed. For Windows and macOS, packed executable Reslice3Dto2D files were publicly provided for direct usage without the necessity to install anything [14].
The basic principle of the Reslice3Dto2D tool is a value interpolation of 2D reference plane pixel locations in a 3D regular grid. Technically two subsequent interpolations are necessary: the in-plane space discretization and the non-unitary and potentially neither rectangular shaped through-plane slice thickness [15]. The Reslice3Dto2D tool follows this two-step interpolation approach, which is visualized in Fig. 1 and explained in the following.
The acquired 3D volume (Fig. 1A) contains partly or fully the reference 2D slice (Fig. 1B). The in-plane discretization makes a pixel representing a rectangular area (Fig. 1C). The incorporation of a slice thickness requires the calculation of the orthogonal normal towards both directions (Fig. 1D). Along these normals parallel slices are determined and the volume element (voxel) that belong to the same locations among the parallel slices represents finally the reformatted pixel (Fig. 1E). The number of parallel slices num along each side are calculated as
Consequently, the distance dist between those slices is
The interpolated values at the same location across the parallel slices are finally totalized with a weight w that depends on the slice profile of either rectangular, triangular, cosine + 1, sinc, standard normal 2 or standard normal 5 shape (Fig. 1E):
This agglomeration collapses the parallel slices into one slice at the 2D reference plane with accordingly reformatted integer values (Fig. 1F). The slice thickness can be set in the Reslice3Dto2D application to any value between 0 mm and 99.99 mm, explicitly to the 2D slice thickness or the 3D_z_resolution. The reformatted data can be exported as DICOM [12] with new assigned series number and unique identifiers.
Validation
The interpolation was validated on an artificial dataset. This dataset consisted of a 3D cubic volume data with an isotropic resolution of 1 mm and 11 positions along all three dimensions with the iso-center at the midpoint of the volume. The value was constant along the x and y directions and linear decreased from 100 to 0 in steps of 20 from the middle towards the upper and lower z border. Additionally, three reference 2D slices were provided. One was parallel to the x-y-plane at z = 0 (parplane), one was perpendicular to that and parallel to the x-z-plane at y = 0 (perplane) and the third one trended with an angle of 45 degrees in the y-z-plane (diagplane). All planes had a slice thickness of 2 mm and 11 positions along each dimension. Parplane and perplane had an in-plane resolution of 1 mm while diagplane had a resolution of 1 mm∙√2 mm.
The reformatted values of the three reference slices were compared to expectations that has been calculated by hand for the slice thicknesses of 0 mm, 2 mm, 2.82 mm and 4.23 mm and a rectangular slice profile. The validation dataset is provided in the supplemental material S3 to enable reproduction of the validation results.
Testing
The Reslice3Dto2D tool was applied to research data consisting of two datasets of two distinct patient groups with in total 119 patients to proof functionality on real data in the specific use-case of CMR. Dataset 1 consisted of 53 patients and was retrieved from Fenski et al. [7], who showed high congruency between a 3D compressed sensing (CS) LGE research sequence (1.25mm3 isotropic resolution) and a standard 2D LGE on a 1.5T Siemens Avantofit with respect to global and segmental LGE using a prior version of Reslice3Dto2D. Dataset 2 consisted of 66 patients of an ongoing prospective study including a 3D CS LGE DIXON acquisition with fat/water separation [8]. 45 patients were examined on a 1.5T Siemens Avantofit with an isotropic resolution of 1.30mm3 and 21 patients were examined on a 3T Siemens Skyrafit with 1.25 × 1.25 × 1.30mm3 non-isotropic resolution. In all 119 included patients a midventricular short axis view of a 2D LGE sequence with a slice thickness of 7 mm was chosen as the reference 2D slice. A reformatting was performed for all slice profiles on slice thicknesses of 0 mm, 7 mm and 14 mm. The impact of partial volume effects is proportional to the slice thickness which in turn lowers the image sharpness [16, 17]. The sharpness of the reformatted test data was assessed with the Frequency Domain Image Blur Measure (FM) [18] and tested using the Wilcoxon and Friedman test with a significance level of p ≤ 0.05 among the three slice thicknesses. The FM is evaluated in the Fourier transform representation of the image in a six-step calculation approach and provides a robust metric for the quantification of image sharpness [18]. One reformatted case of each dataset was exemplary loaded into cvi42 (Version 5.13, Circle Cardiovascular Imaging Inc.), Caas MR solutions (Version 5.2, Pie Medical Imaging BV) and Medis Suite MR (Version 4.0 Medis Medical Imaging Systems BV) to check compatibility with a proprietary post-processing software.
Results
Following the Methods section, the results are provided for implementation, validation and testing.
Implementation
The Reslice3Dto2D tool was successfully installed and tested on Windows 10, Windows 11 and macOS 14. The provided executable files even worked without further installation. The GUI enables a usage without the necessity of programming skills. The export of reformatted data in the DICOM [12] format worked as expected.
Validation
The interpolation methods used in the Reslice3Dto2D tool were verified by the artificial validation dataset. Figure 2 illustrates the reformatting of the validation data with Reslice3Dto2D and includes an overview of the numerical results that matched the expected calculations by hand.
Testing
The test datasets were successfully reformatted and the FM significantly decreased (p < 0.05) for slice thicknesses of 7 mm and 14 mm compared to 0 mm. The slice profile had no impact for 0 mm slice thickness as num becomes zero. The slice profile standard normal 5 showed the highest and rectangular the lowest FM across the datasets for slice thicknesses greater 0 mm. This suits the expectation as partial volume effects are most present in the rectangular profile while in standard normal 5 profile the impact of parallel slices towards the borders decreases rapidly. A detailed numerical overview is shown in the table of the supplemental material S4.
One case from each dataset is exemplary shown in Fig. 3 for the named extreme slice profiles: rectangular and standard normal 5 to highlight the impact of slice thickness and slice profile. All other profiles have FM values in between the shown ones. The reformatted example datasets were successfully imported into the three post-processing softwares: cvi42, CAAS MR solutions and Medis suite MR.
Discussion
The Reslice3Dto2D tool successfully worked in all provided cases and will be discussed in the following according to the implementation, validation and testing.
Implementation
The main use-case of the Reslice3Dto2D tool is the reformatting of 3D data at the exact same location and same pixel spacing as an acquired reference 2D image within the same examination. While MPR in commercially available software is the tool of choice to inspect the acquired 3D data for anatomical abnormalities and to hover through the structures from any perspective, the Reslice3Dto2D tool focuses on the reformatting of 3D datasets for further post-processing and quantification. Due to the simple usage in the GUI, typical long and short axis views can be extracted quickly.
While 3D slicer offers a reformat and export function as well [19], the reformatting is manually planned, which in turn is time consuming and needs some experience. Furthermore, the interpolation is solely based on the 3D data, such that slice profiles and slice thicknesses are not directly accessible. In 3D slicer [19] or with the help of VTK [20] comparable functionalities are implementable, but this requires the user to possess programming skills, whereas Reslice3Dto2D can be used by researchers in the clinical field without any programming experience after successful installation or directly with the provided executable files. A comparison of Reslice3Dto2D with manual expert reformatting on visual matching location has not been addressed in this work. This, however, may be part of a future work due to a different study design and the definition of other quality metrics.
Validation
The functionality of the two-step interpolation in the Reslice3Dto2D tool was proven with an artificial dataset whose output suited the expected values that were calculated by hand. Although more complex artificial data is available as for example the 4D XCAT phantom [21], the manual calculation of the expected voxel values requires an inordinate high effort while the provided artificial dataset al.lowed for the requested validation in a simplified manner.
Testing
All test datasets could be loaded and reformatted in the Reslice3Dto2D tool. As two different 3D sequences were used in the test data, the results emphasizes that the Reslice3Dto2D tool is generally applicable on 3D datasets and 2D reference slices. While 3D sequences are constantly being revised [4], it can be assumed that future 3D sequences can also be processed by the Reslice3Dto2D as long as the necessary DICOM [12] tags are provided. Although not focussed in this work and yet not been systematically studied, Reslice3Dto2D is implemented to handle also the reformatting of time-resolved 3D data like 3D CINE or 4D Flow, other 3D sequence types like 3D T1 mapping and 3D data from other imaging modalities that follow the DICOM [12] standard and include the necessary DICOM [12] tags. The software works on isotropic as well as non-isotropic 3D data. However. the acquisition of 3D data already changed the resolution from a continuous to a discretized space. Non-isotropic data is consequently more prone to sampling rate errors. Therefore, the reformatted outcome of non-isotropic 3D data needs to be treated with caution if compared to other sequences. Due to the DICOM [12] export functionality, further post-processing in conventional tools is enabled. However, the exported reformatted DICOM [12] data is based on the loaded 3D and reference 2D data. Consequently, if the original data is not importable into third party post-processing software, the reformatted data will most likely not either.
The decreasing FM in the test data with increasing slice thickness reflects the expected partial volume effect that results in a blurring of the image [16, 17]. This further validates the functionality of the tool. If the investigation of the partial volume effect is of interest, the Reslice3Dto2D software may be a useful tool to analyse this effect on available 3D data and reference 2D slices.
Other than commercial available software, Reslice3Dto2D reformats 3D data according to reference 2D data instead of a manual positioning [4, 5, 8]. This guarantees for the exact same location assuming no significant patient movement. Depending on the protocol, the scan time in CMR requires around 30 min [22]. If the 3D dataset is acquired with a high delay to the reference 2D slice, the patient may move in-between resulting in a location mismatch between the two acquisitions. In this case, classical MPR functionality is inevitable.
Although first attempts exist for 3D scar measurements in in-vitro mouse heart examinations [23], a full 3D quantitative analysis software tool is currently, to the best of our knowledge, not available for CMR. Therefore, a comparison of two distinct 3D acquisitions is enabled by reformatting both to the same 2D slice and using conventional 2D analysis solutions.
Limitation
The used datasets contained only LGE data that were acquired on Siemens scanners with isotropic or nearly isotropic resolution, other sequence types and manufacturers were not included and, thus, limits the generalizability of the results. The Reslice3Dto2D tool is an extension of currently available software solutions for the inspection of 3D data and does not substitute MPR functionalities. A direct comparison to other tools including the definition of appropriate quality metrics is currently missing. A manual correction of the 2D plane is not possible and the in-plane pixel spacing is fixed. A reference 2D plane is a must while patient movement during the examination or different phase acquisition are not repairable.
Conclusions
In conclusion, the Reslice3Dto2D is introduced as an easy-to-use research software tool, which is located between the examination and post-processing of 3D data if quantification is needed. It enables multiple research opportunities: perform quantification in 3D acquired sequences, comparing novel 3D data with conventional 2D acquisitions, comparing two different 3D acquisitions on the basis of equal located 2D slices and analysing the impact of the slice thickness on the quantitative outcome. The usage of the software is platform independent and can be used by researchers with different levels of experience due to the integrated GUI.
Data availability
Data cannot be shared publicly because of the institutional law. The data can be retrieved in an anonymized manner on reasonable request from the first (DV: darian-steven.viezzer@charite.de) or last (JSM: jeanette.schulz-menger@charite.de) author after agreement of the authorities. The source code can be accessed via the project homepage https://github.com/DSV-CUB/Reslice3Dto2D, the supplemental material S1 or zenodo(14). The packed, direct executable files for Windows and macOS are only available on zenodo(14) due to file size restrictions.
Abbreviations
- 2D:
-
Two dimensional
- 3D:
-
Three dimensional
- CMR:
-
Cardiovascular magnetic resonance
- CS:
-
Compressed sensing
- diagplane:
-
Diagonal plane that bears in x- and y-z -direction
- FM:
-
Frequency Domain Image Blur Measure
- GUI:
-
Graphical user interface
- Parplane:
-
Plane that bears in x- and y--direction
- LGE:
-
Late Gadolinium Enhancement
- MPR:
-
Multi-planar reformatting
- Perplane:
-
Plane perpendicular to parplane that bears in x- and z-direction
- ST:
-
Slice thickness
References
Ommen SR, Ho CY, Asif IM, Balaji S, Burke MA, Day SM, et al. 2024 AHA/ACC/AMSSM/HRS/PACES/SCMR Guideline for the management of hypertrophic cardiomyopathy: a report of the American Heart Association/American College of Cardiology Joint Committee on Clinical Practice guidelines. Circulation. 2024;149(23):e1239–311.
Arbelo E, Protonotarios A, Gimeno JR, Arbustini E, Barriales-Villa R, Basso C, et al. 2023 ESC guidelines for the management of cardiomyopathies: developed by the task force on the management of cardiomyopathies of the European Society of Cardiology (ESC). Eur Heart J. 2023;44(37):3503–626.
Leiner T, Bogaert J, Friedrich MG, Mohiaddin R, Muthurangu V, Myerson S, et al. SCMR position paper (2020) on clinical indications for cardiovascular magnetic resonance. J Cardiovasc Magn Reson. 2020;22(1):76.
Gómez-Talavera S, Fernandez-Jimenez R, Fuster V, Nothnagel ND, Kouwenhoven M, Clemence M, et al. Clinical validation of a 3-Dimensional Ultrafast Cardiac magnetic resonance protocol including single breath-hold 3-Dimensional sequences. JACC Cardiovasc Imaging. 2021;14(9):1742–54.
Ginami G, Neji R, Rashid I, Chiribiri A, Ismail TF, Botnar RM, et al. 3D whole-heart phase sensitive inversion recovery CMR for simultaneous black-blood late gadolinium enhancement and bright-blood coronary CMR angiography. J Cardiovasc Magn Reson. 2017;19(1):94.
Moghari MH, van der Geest RJ, Brighenti M, Powell AJ. Cardiac magnetic resonance using fused 3D cine and 4D flow sequences:validation of ventricular and blood flow measurements. Magn Reson Imaging. 2020;74:203–12.
Fenski M, Grandy TH, Viezzer D, Kertusha S, Schmidt M, Forman C et al. Isotropic 3D compressed sensing (CS) based sequence is comparable to 2D-LGE in left ventricular scar quantification in different disease entities. Int J Cardiovasc Imaging [Internet]. 2022 Mar 3 [cited 2022 Jun 20]; https://doi.org/10.1007/s10554-022-02571-6
Munoz C, Bustin A, Neji R, Kunze KP, Forman C, Schmidt M, et al. Motion-corrected 3D whole-heart water-fat high-resolution late gadolinium enhancement cardiovascular magnetic resonance imaging. J Cardiovasc Magn Reson. 2020;22(1):53.
Nazir MS, Shome J, Villa ADM, Ryan M, Kassam Z, Razavi R, et al. 2D high resolution vs. 3D whole heart myocardial perfusion cardiovascular magnetic resonance. Eur Heart J - Cardiovasc Imaging. 2022;23(6):811–9.
Qi H, Bustin A, Cruz G, Jaubert O, Chen H, Botnar RM, et al. Free-running simultaneous myocardial T1/T2 mapping and cine imaging with 3D whole-heart coverage and isotropic spatial resolution. Magn Reson Imaging. 2019;63:159–69.
Slicer Community. 3D Slicer Documentation [Internet]. 2023 [cited 2023 Mar 29]. https://slicer.readthedocs.io/_/downloads/en/latest/pdf/
The Medical Imaging Technology Association (MITA). a division of NEMA. NEMA PS3 / ISO 12052, Digital Imaging and Communications in Medicine (DICOM) Standard [Internet]. http://www.dicomstandard.org/
Schmiedeskamp H, Straka M, Bammer R. Compensation of slice profile mismatch in combined spin- and gradient-echo echo-planar imaging pulse sequences. Magn Reson Med. 2012;67(2):378–88.
Viezzer DS, Fenski M, Grandy TH, Kuhnt J, Hadler T, Lange S et al. Reslice3Dto2D [Internet]. Zenodo; 2024. https://zenodo.org/records/13273643
Liu H, Michel E, Casey SO, Truwit C. Actual imaging slice profile of 2D MRI: medical imaging 2002: physics of Medical Imaging. Proc SPIE - Int Soc Opt Eng. 2002;4682:767–73.
González Ballester MÁ, Zisserman AP, Brady M. Estimation of the partial volume effect in MRI. Med Image Anal. 2002;6(4):389–405.
Ito D, Numano T, Mizuhara K, Washio T, Misawa M, Nitta N. Partial volume effect on MR Elastography. Open J Med Imaging. 2017;07(04):131–43.
De K, Masilamani V. Image sharpness measure for blurred images in frequency domain. Procedia Eng. 2013;64:149–58.
Fedorov A, Beichel R, Kalpathy-Cramer J, Finet J, Fillion-Robin JC, Pujol S, et al. 3D slicer as an image Computing platform for the Quantitative Imaging Network. Magn Reson Imaging. 2012;30(9):1323–41.
Schroeder WJ, Martin K, Lorensen WE, Avila LS, Martin KW, Lorensen B. The visualization toolkit: an object-oriented approach to 3D graphics; [visualize data in 3D - medicngineering or scientific; build your own applications with C++, Tcl, Java or Python; includes source code for VTK (supports UNIX, Windows and Mac)]. 4. ed. [Clifton Park, NY]: Kitware, Inc.; 2006. XVI, 512 S.
Segars WP, Sturgeon G, Mendonca S, Grimes J, Tsui BMW. 4D XCAT phantom for multimodality imaging research. Med Phys. 2010;37(9):4902–15.
Torlasco C, Castelletti S, Soranna D, Volpato V, Figliozzi S, Menacho K, et al. Effective study: development and application of a Question-Driven, Time‐Effective Cardiac magnetic resonance scanning protocol. J Am Heart Assoc. 2022;11(1):e022605.
Janbandhu V, Martin EMMA, Chapman G, Dunwoodie SL, Harvey RP. Quantitative 3D analysis and visualization of cardiac fibrosis by microcomputed tomography. STAR Protoc. 2022;3(1):101055.
Acknowledgements
The Reslice3Dto2D tool was tested on 3D CS LGE and 3D CS LGE DIXON with fat/water separation research sequences that were acquired during the original clinical studies. We thank Siemens Healthineers AG as well as the King’s College London for providing these research sequences.
Funding
Open Access funding enabled and organized by Projekt DEAL. This project was supported by the BMBF (Bundesministerium für Bildung und Forschung) / DZHK (German Centre for Cardiovascular Research) via project FKZ81Z0100208 (https://dzhk.de/). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Open Access funding enabled and organized by Projekt DEAL.
Author information
Authors and Affiliations
Contributions
DV and THG designed and implemented the methods. MF and JK defined requirements of the software functionalities, tested them and provided the example datasets. TH worked significantly on the manuscript. JSM and SL supervised the whole work. DV drafted the manuscript and all authors contributed in a critical revision of the manuscript. The final version is approved by all authors.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
The used datasets were retrieved from approved studies by the local ethics committee of the Charité – Universitätsmedizin Berlin (study IDs: EA1/111/18, EA1/088/21) and complied with the declaration of Helsinki.
Consent for publication
Not applicable.
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Electronic supplementary material
Below is the link to the electronic supplementary material.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Viezzer, D., Fenski, M., Grandy, T.H. et al. Reslice3Dto2D: Introduction of a software tool to reformat 3D volumes into reference 2D slices in cardiovascular magnetic resonance imaging. BMC Res Notes 17, 270 (2024). https://doi.org/10.1186/s13104-024-06931-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s13104-024-06931-4