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.
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)
.
mkdir build
cd build
cmake ..
make
make install
- OpenCV >= 2.3