/statismo-ui

Experimental statismo interface to scalismo-ui (using Thrift)

Primary LanguageC++Apache License 2.0Apache-2.0

Overview

statismo-ui is an (experimental) C++ interface for scalismo-ui.

It works in pair with ui-service.

Requirements

Statismo

You will need a fresh install of statismo.

Thrift (RPC framework)

You can find documentation about cpp install on apache website or github and documenation about debian install on apache website.

Here is the procedure to install it through vcpkg on Ubuntu:

> sudo apt-get install flex bison
# If you don't use vcpkg for other stuff
# the build dir can be statismo-ui build directory
> mkdir build && cd build
> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
> ./bootstrap-vcpkg.sh
> ./vcpkg integrate install
> ./vcpkg install thrift

Build

⚠️ This project is experimental and has been tested on Linux Ubuntu only

ℹ️ The procedure relies on thrift being installed with vcpkg

  • Configure project
> cd build 
> cmake .. -DTHRIFT_HOME=${path_to_build_dir}/vcpkg/installed/x64-linux -Dstatismo_DIR=${path_to_install_dir}/lib/cmake/statismo
  • Build
> cmake --build .

Run examples

ℹ️ Project must be configure with BUILD_EXAMPLES=ON

> cd build
> ./examples/viz-client

Develop your own client

You can develop your own client for test or demo purpose. A common use case would be to visualize the different steps of a model fitting transform.

Notes

⚠️ Any breaking modification to the file ui.thrift must be applied to ui-service too.