Processing math: 100%
ImageDev

Delineate3d

Enhances contrast of a three-dimensional image.

Access to parameter description

For an introduction to image filters: see section Images Filtering.

This algorithm provides contrast enhancement of an image using basic morphological transformations.
The delineate filter is based on the fact that a function f is always between the erosion and the dilation of f. E(I(n,m,o))I(n,m,o)D(I(n,m,o)) For each voxel, the output gray level value is assigned to the closest value between the erosion and the dilation of I(n,m,o): O(n,m,o)={D(I(n,m,o))if [D(I(n,m,o));I(n,m,o)]<[E(I(n,m,o))I(n,m,o)]E(I(n,m,o))otherwise See also

Function Syntax

This function returns the outputImage output parameter.
// Function prototype.
std::shared_ptr< iolink::ImageView >
delineate3d( std::shared_ptr< iolink::ImageView > inputImage,
             int32_t kernelRadius,
             Delineate3d::Neighborhood neighborhood,
             std::shared_ptr< iolink::ImageView > outputImage = NULL );

Class Syntax

Parameters

Class Name Delineate3d

Parameter Name Description Type Supported Values Default Value
input
inputImage
The input image. Image Binary, Label, Grayscale or Multispectral nullptr
input
kernelRadius
The half size of the cube structuring element. A structuring element always has an odd side length (3x3x3, 5x5x5, etc.) which is defined by twice the kernel radius + 1. Int32 >=1 3
input
neighborhood
The 3D neighborhood configuration. This parameter is ignored with a 2D input image.
CONNECTIVITY_6 The structuring element is composed of voxels with a common face with the voxel of interest.
CONNECTIVITY_18 The structuring element is composed of voxels with at least one common edge.
CONNECTIVITY_26 The structuring element is a full cube.
Enumeration CONNECTIVITY_26
output
outputImage
The output image. Its dimensions and type are forced to the same values as the input. Image nullptr

Object Examples

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

Delineate3d delineate3dAlgo;
delineate3dAlgo.setInputImage( foam );
delineate3dAlgo.setKernelRadius( 3 );
delineate3dAlgo.setNeighborhood( Delineate3d::Neighborhood::CONNECTIVITY_26 );
delineate3dAlgo.execute();

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

Function Examples

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

auto result = delineate3d( foam, 3, Delineate3d::Neighborhood::CONNECTIVITY_26 );

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