thus enhancing the user experience. The GPU could
evidently be used to speed up this computation by im-
plementing an appropriate Oracle command. Besides
DRR, the shear-warp algorithm could also be applied
for MIP rendering by putting the virtual camera at in-
finity, and by replacing the summation by a “max”
operation.
4 CONCLUSIONS
This paper introduces Stone of Orthanc as a library
to render medical images, in a way that is compati-
ble with desktop, mobile and Web applications. Stone
of Orthanc is fully written in C++, and leverages the
emerging WebAssembly standard if targeting Web ap-
plications. Sample applications of Stone of Orthanc
are described as well. In particular, the Stone Web
viewer is introduced as the first free and open-source
teleradiology solution that uses WebAssembly. The
source code of the Stone of Orthanc library is publicly
released under the LGPL license, whereas the Stone
Web viewer is licensed under the AGPL
6
.
As shown in this paper, WebAssembly can be used
to maximize code reuse in applications for medical
imaging. The same approach could be used in many
other scientific fields, where C++ code is traditionally
used for numerical computations.
Future work will focus on the exploitation of
Stone of Orthanc for artificial intelligence applica-
tions in radiology. In particular, we plan to work on
the rendering of DICOM SR (structured reports), DI-
COM SEG (image segmentation) and DICOM GSPS
(grayscale softcopy presentation state), as the outputs
of AI algorithms. The integration of MPR render-
ing and whole-slide imaging (Jodogne et al., 2017)
directly within the Stone Web viewer will also be in-
vestigated. Finally, performance of volume rendering
will be improved, for instance by taking advantage of
the GPU and Web workers in the Oracle.
ACKNOWLEDGMENTS
The author wishes to thank Benjamin Golinvaux,
Alain Mazy and Osimis for their contributions to the
development of the Stone of Orthanc project.
6
The source code of the Stone of Orthanc project is
available at: https://hg.orthanc-server.com/orthanc-stone/
REFERENCES
Cheng, P. M., Montagnon, E., Yamashita, R., Pan, I.,
Cadrin-Chênevert, A., Perdigón Romero, F., Char-
trand, G., Kadoury, S., and Tang, A. (2021). Deep
learning: An update for radiologists. RadioGraphics,
41(5):1427–1445. PMID: 34469211.
Costa, C., Ferreira, C., Bastião, L., Ribeiro, L., Silva,
A., and Oliveira, J. L. (2011). Dicoogle – an open
source peer-to-peer PACS. Journal of Digital Imag-
ing, 24(5):848–856.
Gamma, E., Helm, R., Johnson, R., and Vlissides, J. M.
(1994). Design Patterns: Elements of Reusable
Object-Oriented Software. Addison-Wesley Profes-
sional, 1st edition.
Haas, A., Rossberg, A., Schuff, D. L., Titzer, B. L., Holman,
M., Gohman, D., Wagner, L., Zakai, A., and Bastien,
J. F. (2017). Bringing the Web up to speed with We-
bAssembly. In Cohen, A. and Vechev, M. T., editors,
Proceedings of the 38th ACM SIGPLAN Conference
on Programming Language Design and Implementa-
tion, PLDI 2017, Barcelona, Spain, June 18-23, 2017,
pages 185–200. ACM.
Jodogne, S. (2018). The Orthanc ecosystem for medical
imaging. Journal of Digital Imaging, 31(3):341–352.
Jodogne, S., Lenaerts, E., Marquet, L., Erpicum, C., Grei-
mers, R., Gillet, P., Hustinx, R., and Delvenne, P.
(2017). Open implementation of DICOM for whole-
slide microscopic imaging. In VISIGRAPP (6: VIS-
APP), pages 81–87.
Kikinis, R., Pieper, S. D., and Vosburgh, K. G. (2014). 3D
Slicer: A Platform for Subject-Specific Image Anal-
ysis, Visualization, and Clinical Support, pages 277–
289. Springer New York, New York, NY.
Lacroute, P. and Levoy, M. (1994). Fast volume rendering
using a shear-warp factorization of the viewing trans-
formation. In Proceedings of the 21st Annual Con-
ference on Computer Graphics and Interactive Tech-
niques, SIGGRAPH ’94, pages 451–458, New York,
NY, USA. ACM.
National Electrical Manufacturers Association (2021). ISO
12052 / NEMA PS3, Digital Imaging and Communi-
cations in Medicine (DICOM) standard.
http://www.dicomstandard.org.
Rivero, M. and Feito, F. (2000). Boolean operations on
general planar polygons. Computers & Graphics,
24(6):881–896. Calligraphic Interfaces: Towards a
new generation of interactive systems.
Rosset, A., Spadola, L., and Ratib, O. (2004). OsiriX: An
open-source software for navigating in multidimen-
sional DICOM images. Journal of Digital Imaging,
17(3):205–216.
Schroeder, W., Martin, K., and Lorensen, B. (2006). The
Visualization Toolkit: An object-oriented approach to
3D graphics. Kitware, Inc., 4 edition.
Urban, T., Ziegler, E., Lewis, R., Hafey, C., Sadow, C.,
Van den Abbeele, A. D., and Harris, G. J. (2017).
LesionTracker: Extensible open-source zero-footprint
web viewer for cancer imaging research and clinical
trials. Cancer Research, 77(21):e119–e122.
Warnock, M. J., Toland, C., Evans, D., Wallace, B., and
Nagy, P. (2007). Benefits of using the DCM4CHE DI-
COM archive. Journal of Digital Imaging, 20(Supp.
1):125–129.
Rendering Medical Images using WebAssembly
51