RadialGradientCentered3d
Performs a three-dimensional gradient projection with a directional vector defined by a center point.
Access to parameter description
For an introduction:
Notice:
Access to parameter description
For an introduction:
- section Edge Detection
- section Introduction to Gradient
- section Gradient Projections
Notice:
- A common way to get input images Gx, Gy and Gz is to apply the Canny-Deriche operator in the X, Y, and Z directions, using GradientOperator3d with a spread of 60.
Function Syntax
This function returns outputNormalImage.
// Function prototype
std::shared_ptr< iolink::ImageView > radialGradientCentered3d( std::shared_ptr< iolink::ImageView > inputImageX, std::shared_ptr< iolink::ImageView > inputImageY, std::shared_ptr< iolink::ImageView > inputImageZ, iolink::Vector3i32 projectionCenter, std::shared_ptr< iolink::ImageView > outputNormalImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputImageX |
The X-gradient input image. | Image | Grayscale or Multispectral | nullptr |
![]() |
inputImageY |
The Y-gradient input image. | Image | Grayscale or Multispectral | nullptr |
![]() |
inputImageZ |
The Z-gradient input image. | Image | Grayscale or Multispectral | nullptr |
![]() |
projectionCenter |
The center of projection coordinates. | Vector3i32 | >=0 | {3, 3, 3} |
![]() |
outputNormalImage |
The normal gradient output image. | Image | nullptr |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); RadialGradientCentered3d radialGradientCentered3dAlgo; radialGradientCentered3dAlgo.setInputImageX( foam ); radialGradientCentered3dAlgo.setInputImageY( foam ); radialGradientCentered3dAlgo.setInputImageZ( foam ); radialGradientCentered3dAlgo.setProjectionCenter( {3, 3, 3} ); radialGradientCentered3dAlgo.execute(); std::cout << "outputNormalImage:" << radialGradientCentered3dAlgo.outputNormalImage()->toString();
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = radialGradientCentered3d( foam, foam, foam, {3, 3, 3} ); std::cout << "outputNormalImage:" << result->toString();