Processing math: 100%
ImageDev

EigenvaluesToStructureness2d

Computes a structure score image from the eigenvalues of a two-dimensional tensor image.

Access to parameter description

This algorithm allows extracting tubular or blob-like structures from dark or bright background.

The computation is based on eigenvalues λ1 and λ2 where λ1∣≥∣λ2.

The structure score for bright tubular structures corresponds to:
score={0if λ1>0exp((λ2λ1)22β2)(1exp(S22c2))

The score for bright blob-like structures is computed as follows:
score={0if λ1>0 or λ2>0(1exp((λ2λ1)22β2))(1exp(S22c2))

Where: For dark objects the conditions on λ1 and λ2 are reversed.

This algorithm outputs a float grayscale image where each pixel intensity represents a structure score between 0 and 1.

The method for tubular structures is referenced by Alejandro Frangi publication:
A.F.Frangi, W.J.Niessen, K.L.Vincken, M.A.Viergever. "Multiscale vessel enhancement filtering". Lecture Notes in Computer Science(MICCAI), vol. 1496, pp. 130-137, 1998.

See also

Function Syntax

This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > eigenvaluesToStructureness2d( std::shared_ptr< iolink::ImageView > inputEigenvaluesImage, EigenvaluesToStructureness2d::Lightness lightness, EigenvaluesToStructureness2d::StructureType structureType, double beta, double noiseCutoff, std::shared_ptr< iolink::ImageView > outputImage = NULL );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputEigenvaluesImage
The input image containing the eigenvalues field. Type must be float. Spectral series size is 2 (channel 0 = largest eigenvalue, channel 1 = smallest eigenvalue). Image Multispectral nullptr
input
lightness
The type of structure lightness to extract.
BRIGHT Extracts bright structures from dark background.
DARK Extracts dark structures from bright background.
Enumeration BRIGHT
input
structureType
The type of structure shapes to extract.
ROD Extracts rod-like (tubular) structures.
BALL Extracts blob-like (spherical) structures.
Enumeration ROD
input
beta
The blobness sensitivity threshold. It corresponds to the beta term of the score equation. Float64 >0 0.75
input
noiseCutoff
The noise scale factor. It is used for computing the c term of the score equation. Float64 >0 0.5
output
outputImage
The score output image. X and Y dimensions, calibration and interpretation of the output image are forced to the same values as the input. The spectral dimension is forced to 1. Type is forced to float and all values are between 0 and 1. Image nullptr

Object Examples

auto retina_eigenvalues = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "retina_eigenvalues.vip" );

EigenvaluesToStructureness2d eigenvaluesToStructureness2dAlgo;
eigenvaluesToStructureness2dAlgo.setInputEigenvaluesImage( retina_eigenvalues );
eigenvaluesToStructureness2dAlgo.setLightness( EigenvaluesToStructureness2d::Lightness::BRIGHT );
eigenvaluesToStructureness2dAlgo.setStructureType( EigenvaluesToStructureness2d::StructureType::ROD );
eigenvaluesToStructureness2dAlgo.setBeta( 0.75 );
eigenvaluesToStructureness2dAlgo.setNoiseCutoff( 0.5 );
eigenvaluesToStructureness2dAlgo.execute();

std::cout << "outputImage:" << eigenvaluesToStructureness2dAlgo.outputImage()->toString();

Function Examples

auto retina_eigenvalues = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "retina_eigenvalues.vip" );

auto result = eigenvaluesToStructureness2d( retina_eigenvalues, EigenvaluesToStructureness2d::Lightness::BRIGHT, EigenvaluesToStructureness2d::StructureType::ROD, 0.75, 0.5 );

std::cout << "outputImage:" << result->toString();