Loading [MathJax]/jax/output/CommonHTML/jax.js
ImageDev

RadialGradientCentered3d

Performs a three-dimensional gradient projection with a directional vector defined by a center point.

Access to parameter description

For an introduction: The RadialGradientCentered3d algorithm performs a gradient projection by computing the directional vector from a single given center. For all voxels P in the image, the projection is applied from the same user-defined center C.

Notice: See also

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
input
inputImageX
The X-gradient input image. Image Grayscale or Multispectral nullptr
input
inputImageY
The Y-gradient input image. Image Grayscale or Multispectral nullptr
input
inputImageZ
The Z-gradient input image. Image Grayscale or Multispectral nullptr
input
projectionCenter
The center of projection coordinates. Vector3i32 >=0 {3, 3, 3}
output
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();