NagaoFilter3d
Performs an edge-preserving smoothing of a three-dimensional image by selecting a mean value from different neighborhood configurations.
Access to parameter description
For an introduction to image filters: see Images Filtering.
This algorithm uses an adaptive 5x5 neighborhood geometry to compute a mean neighbors value around a central pixel.
The mean values of different neighborhood configurations around the considered pixel are computed. The pixel is replaced by the mean value of the configuration presenting:
The predefined sub neighborhoods are composed of 27 pixels and are a 3D extension of the Nagmod configurations of the NagaoFilter2d algorithm.
Reference:
M.Nagao, T.Matsuyama. "Edge preserving smoothing". Computer Graphics and Image Processing, vol. 9, pp. 394-407, 1979.
See also
Access to parameter description
For an introduction to image filters: see Images Filtering.
This algorithm uses an adaptive 5x5 neighborhood geometry to compute a mean neighbors value around a central pixel.
The mean values of different neighborhood configurations around the considered pixel are computed. The pixel is replaced by the mean value of the configuration presenting:
- either the minimum variance,
- or the minimum range (difference between maximum and minimum values)
The predefined sub neighborhoods are composed of 27 pixels and are a 3D extension of the Nagmod configurations of the NagaoFilter2d algorithm.
Reference:
M.Nagao, T.Matsuyama. "Edge preserving smoothing". Computer Graphics and Image Processing, vol. 9, pp. 394-407, 1979.
See also
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > nagaoFilter3d( std::shared_ptr< iolink::ImageView > inputImage, NagaoFilter3d::FilterMethod filterMethod, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
![]() |
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr | ||||
![]() |
filterMethod |
The neighborhood selection criterion.
|
Enumeration | VARIANCE | |||||
![]() |
outputImage |
The output image. Its dimensions, type, and calibration are forced to the same values as the input. | Image | nullptr |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); NagaoFilter3d nagaoFilter3dAlgo; nagaoFilter3dAlgo.setInputImage( foam ); nagaoFilter3dAlgo.setFilterMethod( NagaoFilter3d::FilterMethod::VARIANCE ); nagaoFilter3dAlgo.execute(); std::cout << "outputImage:" << nagaoFilter3dAlgo.outputImage()->toString();
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = nagaoFilter3d( foam, NagaoFilter3d::FilterMethod::VARIANCE ); std::cout << "outputImage:" << result->toString();