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

OrientedLinesImage3d

Creates a three-dimensional binary image containing a series of parallel oriented lines.

Access to parameter description

OrientedLinesImage3d creates a binary image with a set of parallel lines with a given orientation and separated by a given offset.
This module creates a binary image with oriented 3D lines. The orientation of these lines is defined by two angles: the polar angle ϕ (inclination from Z axis) and the azimuthal angle θ (orientation from X axis on the XY orthogonal projection).

<b>Figure 1.</b> Mathematics convention for spherical coordinates
Figure 1. Mathematics convention for spherical coordinates

Considering a plane that is orthogonal to this orientation, each line crosses this plane into a single point defining a rectangular grid regularly spaced and oriented by a third angle α, as shown in Figure 2.

<b>Figure 2.</b> Orientation of the lines grid
Figure 2. Orientation of the lines grid

See also

Function Syntax

This function returns outputBinaryImage.
// Function prototype
std::shared_ptr< iolink::ImageView > orientedLinesImage3d( int32_t imageSizeX, int32_t imageSizeY, int32_t imageSizeZ, double thetaAngle, double phiAngle, double alphaAngle, double offset, std::shared_ptr< iolink::ImageView > outputBinaryImage = NULL );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
imageSizeX
The X size in voxels of the output image. Int32 >=1 100
input
imageSizeY
The Y size in voxels of the output image. Int32 >=1 100
input
imageSizeZ
The Z size in voxels of the output image. Int32 >=1 100
input
thetaAngle
The polar angle in degrees of lines orientation. Float64 Any value 0
input
phiAngle
The azimuthal angle in degrees of lines orientation. Float64 Any value 0
input
alphaAngle
The alpha angle in degrees defining the grid orientation in a plane orthogonal to the lines direction. Float64 Any value 0
input
offset
The distance in voxels between two lines. Float64 >=1 30
output
outputBinaryImage
The output binary image. Image nullptr

Object Examples


OrientedLinesImage3d orientedLinesImage3dAlgo;
orientedLinesImage3dAlgo.setImageSizeX( 100 );
orientedLinesImage3dAlgo.setImageSizeY( 100 );
orientedLinesImage3dAlgo.setImageSizeZ( 100 );
orientedLinesImage3dAlgo.setThetaAngle( 0.0 );
orientedLinesImage3dAlgo.setPhiAngle( 0.0 );
orientedLinesImage3dAlgo.setAlphaAngle( 0.0 );
orientedLinesImage3dAlgo.setOffset( 30.0 );
orientedLinesImage3dAlgo.execute();

std::cout << "outputBinaryImage:" << orientedLinesImage3dAlgo.outputBinaryImage()->toString();

Function Examples


auto result = orientedLinesImage3d( 100, 100, 100, 0.0, 0.0, 0.0, 30.0 );

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