How To Install vspline-dev on Ubuntu 18.04

In this tutorial we learn how to install vspline-dev on Ubuntu 18.04. vspline-dev is header-only C++ template library for uniform b-spline processing

Introduction

In this tutorial we learn how to install vspline-dev on Ubuntu 18.04.

What is vspline-dev

vspline-dev is:

vspline aims to be as fast as possible, it’s main focus is processing of bulk data, especially images. vspline can create b-splines of:

  • real data types and their aggregates
  • coming in strided n-dimensional memory
  • spline order up to 24
  • arbitrary dimensions of the spline
  • with a reasonable selection of boundary conditions
  • with implicit or explicit scheme of extrapolation

on the evaluation side it provides:

  • evaluation of the spline at point locations
  • evaluation of the spline’s derivatives
  • fast specializations for nearest neighbour and linear interpolation
  • mapping of arbitrary coordinates into the defined range
  • evaluation of n-dimensional arrays of coordinates (‘remap’ function)
  • functor-based transform and apply functions
  • set of functional constructs to facilitate evaluation

data handling is done with vigra data types. vspline optionally uses horizontal vectorization with Vc. coefficient generation and remap routines are multithreaded.

There are three methods to install vspline-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install vspline-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install vspline-dev using apt-get by running the following command:

sudo apt-get -y install vspline-dev

Install vspline-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install vspline-dev using apt by running the following command:

sudo apt -y install vspline-dev

Install vspline-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install vspline-dev using aptitude by running the following command:

sudo aptitude -y install vspline-dev

How To Uninstall vspline-dev on Ubuntu 18.04

To uninstall only the vspline-dev package we can use the following command:

sudo apt-get remove vspline-dev

Uninstall vspline-dev And Its Dependencies

To uninstall vspline-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove vspline-dev

Remove vspline-dev Configurations and Data

To remove vspline-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge vspline-dev

Remove vspline-dev configuration, data, and all of its dependencies

We can use the following command to remove vspline-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge vspline-dev

References

Summary

In this tutorial we learn how to install vspline-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.