Delineate2d
Enhances contrast of a two-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))≤I(n,m)≤D(I(n,m)) For each pixel, the output gray level value is assigned to the closest value between the erosion and the dilation of I(n,m): O(n,m)={D(I(n,m))if [D(I(n,m))−I(n,m)]<[E(I(n,m))−I(n,m)]E(I(n,m))otherwise See also
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))≤I(n,m)≤D(I(n,m)) For each pixel, the output gray level value is assigned to the closest value between the erosion and the dilation of I(n,m): O(n,m)={D(I(n,m))if [D(I(n,m))−I(n,m)]<[E(I(n,m))−I(n,m)]E(I(n,m))otherwise See also
Function Syntax
This function returns the outputImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > delineate2d( std::shared_ptr< iolink::ImageView > inputImage, int32_t kernelRadius, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Class Name | Delineate2d |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr |
![]() |
kernelRadius |
The half size of the square structuring element. A structuring element always has an odd side length (3x3, 5x5, etc.) which is defined by twice the kernel radius + 1. | Int32 | >=1 | 3 |
![]() |
outputImage |
The output image. Its dimensions and type are forced to the same values as the input. | Image | nullptr |
Object Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); Delineate2d delineate2dAlgo; delineate2dAlgo.setInputImage( polystyrene ); delineate2dAlgo.setKernelRadius( 3 ); delineate2dAlgo.execute(); std::cout << "outputImage:" << delineate2dAlgo.outputImage()->toString();
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = delineate2d( polystyrene, 3 ); std::cout << "outputImage:" << result->toString();