Inviwo — A Visualization System with Usage Abstraction Levels

Daniel Jönsson, Peter Steneteg, Erik Sundén, Rickard Englund, Sathish Kottravel, Martin Falk, Anders Ynnerman, Ingrid Hotz, Timo Ropinski

Abstract

The complexity of today's visualization applications demands specific visualization systems tailored for the development of these applications. Frequently, such systems utilize levels of abstraction to improve the application development process, for instance by providing a data flow network editor. Unfortunately, these abstractions result in several issues, which need to be circumvented through an abstraction-centered system design. Often, a high level of abstraction hides low level details, which makes it difficult to directly access the underlying computing platform, which would be important to achieve an optimal performance. Therefore, we propose a layer structure developed for modern and sustainable visualization systems allowing developers to interact with all contained abstraction levels. We refer to this interaction capabilities as usage abstraction levels, since we target application developers with various levels of experience. We formulate the requirements for such a system, derive the desired architecture, and present how the concepts have been exemplary realized within the Inviwo visualization system. Furthermore, we address several specific challenges that arise during the realization of such a layered architecture, such as communication between different computing platforms, performance centered encapsulation, as well as layer-independent development by supporting cross layer documentation and debugging capabilities.

Introduction

In the field of scientific visualization, developers frequently encounter the "layer trap." High-level frameworks like ParaView or MeVisLab provide intuitive data flow editors that accelerate prototyping but often obscure the low-level details necessary for performance optimization or the implementation of custom algorithms. Conversely, low-level libraries like VTK offer granular control but require extensive boilerplate and lack the rapid iteration speed of visual tools.

Inviwo is designed to bridge this gap. It is a modern visualization framework that introduces "usage abstraction levels," allowing developers to transition seamlessly between high-level visual programming and low-level code optimization. By providing an environment where developers can edit data flow networks, write C++ processors, and fine-tune GPU shaders simultaneously, Inviwo addresses the complexities of modern heterogeneous hardware management.

System Architecture and Usage Abstraction

The core of Inviwo’s design is a layered architecture that supports interactive cross-layer development. Unlike systems that strictly separate the user interface from the underlying compute logic, Inviwo allows for "hot reloading." This means a developer can modify a C++ processor or a GLSL shader and observe the results update instantly within the visual editor without restarting the application.

The layered architecture of Inviwo, highlighting the cross-layer development approach.

This architecture is built upon three primary pillars:

  1. The Processor Abstraction: Algorithms are encapsulated into "Processors" with defined Inports and Outports. This modularity is supported by Port Inspectors, which allow developers to visually debug data—such as viewing a 3D volume as a stack of slices—at any point in the network.
  2. Computing Platform Interoperability: Inviwo utilizes a sophisticated Representation system to handle heterogeneous hardware. When a processor requires data for a specific platform (e.g., an OpenCL buffer), the system automatically identifies and executes the most efficient "converter path" to transform the data from its current state (e.g., an OpenGL texture). These conversions are handled lazily and cached to maintain interactive frame rates.
  3. Integrated Documentation: To ensure sustainability, API documentation is integrated directly into the visual editor, ensuring that documentation remains relevant to both the developer writing the code and the researcher using the visual node.

Interactive Development and Interoperability

The practical realization of these concepts is found in the Inviwo Network Editor. This environment allows users to construct complex visualization pipelines by connecting processors. The system manages the underlying complexity of memory transfers between different computing platforms, such as OpenGL and OpenCL, removing the cognitive load of manual GPU memory management from the developer.

The Inviwo interactive environment, featuring the processor network editor and real-time visualization.

Key Insights and Evaluation

A central tenet of the Inviwo philosophy is that a visualization system should not merely provide abstractions but should provide access to all levels of abstraction simultaneously. This "drill-down" capability ensures that performance is never sacrificed for ease of use. By treating data conversion as a graph-based pathfinding problem, Inviwo allows developers to write an OpenGL renderer and an OpenCL filter without either component requiring explicit knowledge of the other.

The system's efficacy has been demonstrated through demanding real-world scenarios, including digital pathology datasets exceeding 110 GiB and complex neuroimaging fusions. Qualitatively, Inviwo has proven successful in educational settings, allowing students to explore complex algorithms with a shallower learning curve than traditional C++ frameworks. In comparison to established systems like VTK and ParaView, Inviwo stands out for its integrated platform interoperability and comprehensive visual debugging capabilities.

Limitations and Future Work

While Inviwo successfully abstracts many complexities, it remains bound by hardware-level limitations; for instance, OpenCL algorithms will not run on devices lacking the necessary driver support. Currently, the framework is optimized for single-node usage. Future research will focus on extending these abstraction and out-of-core concepts to distributed computing environments and further automating the creation of custom data converters.

Summary updated

BibTeX
@article{jonsson2020inviwo,
  author = {Daniel Jönsson and Peter Steneteg and Erik Sundén and Rickard Englund and Sathish Kottravel and Martin Falk and Anders Ynnerman and Ingrid Hotz and Timo Ropinski},
  title = {{Inviwo — A Visualization System with Usage Abstraction Levels}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2020},
  url = {https://openreview.net/forum?id=OGD3WB__rCg5},
}
Figure