/libfrangi

C++/OpenCV implementation of the 2D Frangi multiscale vesselness filter.

Primary LanguageC++BSD 2-Clause "Simplified" LicenseBSD-2-Clause

libfrangi

C++/OpenCV implementation of the Frangi multiscale vesselness filter in 2D (reference: A. F. Frangi, W. J. Niessen, K. L. Vincken, and M. A. Viergever, “Multiscale vessel enhancement filtering,” in Proc. Med. Image. Comput. Assist. Interv. 1496, pp. 130–137 (1998)).

This code is based on a MATLAB implementation found at MATLAB Central.

Basic usage

Include frangi.h. Create a variable frangi2d_opts_t opts. Set each field to desired values or use frangi2d_createopts(&opts) for default values.

Load the image into a cv::Mat instance. Create cv::Mat instances for Frangi filter outputs: J, scale and directions. The 2D Frangi filter can then be applied as frangi2d(img, J, scale, directions, opts).

Building and installing

  1. mkdir build
  2. cd build
  3. cmake ..
  4. make
  5. make install

Requirements

  • OpenCV >= 2.3