The structure linear density represents the number of traversals across a structure made per unit length on
a linear path.
Plate, rod, and sphere model definitions of object linear density Dn rely on the corresponding
average object thickness Th values:
Dn=VTh×TV
where TV is total volume (volume of the mask if provided, else volume of the image bounding box)
and V is the object volume.
// Function prototype.
object_linear_density_3d( input_image,
input_mask_image,
model =ObjectLinearDensity3d.Model.PARALLEL_PLATE_MODEL,
output_measurement =None)
// Function prototype.publicstaticObjectLinearDensityMsrObjectLinearDensity3d(IOLink.ImageView inputImage,IOLink.ImageView inputMaskImage,ObjectLinearDensity3d.Model model =ImageDev.ObjectLinearDensity3d.Model.PARALLEL_PLATE_MODEL,ObjectLinearDensityMsr outputMeasurement =null);
Class Syntax
// Command constructor.ObjectLinearDensity3d();/// Gets the inputImage parameter./// The 3D binary input image.
std::shared_ptr< iolink::ImageView> inputImage()const;/// Sets the inputImage parameter./// The 3D binary input image.void setInputImage( std::shared_ptr< iolink::ImageView> inputImage );/// Gets the inputMaskImage parameter./// The binary image defining the volume of interest. The measurement is computed from voxels having a value of 1 in this image. If it equals null, the computation is performed from all voxels of the input image. It must have same dimensions as the input image.
std::shared_ptr< iolink::ImageView> inputMaskImage()const;/// Sets the inputMaskImage parameter./// The binary image defining the volume of interest. The measurement is computed from voxels having a value of 1 in this image. If it equals null, the computation is performed from all voxels of the input image. It must have same dimensions as the input image.void setInputMaskImage( std::shared_ptr< iolink::ImageView> inputMaskImage );/// Gets the model parameter./// The structure model used to compute the measurement.ObjectLinearDensity3d::Model model()const;/// Sets the model parameter./// The structure model used to compute the measurement.void setModel(constObjectLinearDensity3d::Model& model );/// Gets the outputMeasurement parameter./// The output measurement result.ObjectLinearDensityMsr::Ptr outputMeasurement()const;// Method to launch the command.void execute();
# Property of the inputImage parameter.ObjectLinearDensity3d.input_image
# Property of the inputMaskImage parameter.ObjectLinearDensity3d.input_mask_image
# Property of the model parameter.ObjectLinearDensity3d.model
# Property of the outputMeasurement parameter.ObjectLinearDensity3d.output_measurement
// Method to launch the command.
execute()
// Command constructor.ObjectLinearDensity3d()// Property of the inputImage parameter.ObjectLinearDensity3d.inputImage
// Property of the inputMaskImage parameter.ObjectLinearDensity3d.inputMaskImage
// Property of the model parameter.ObjectLinearDensity3d.model
// Property of the outputMeasurement parameter.ObjectLinearDensity3d.outputMeasurement
// Method to launch the command.Execute()
Parameters
Parameter Name
Description
Type
Supported Values
Default Value
inputImage
The 3D binary input image.
Image
Binary
nullptr
inputMaskImage
The binary image defining the volume of interest. The measurement is computed from voxels having a value of 1 in this image. If it equals null, the computation is performed from all voxels of the input image. It must have same dimensions as the input image.
Image
Binary
nullptr
model
The structure model used to compute the measurement.
The binary image defining the volume of interest. The measurement is computed from voxels having a value of 1 in this image. If it equals null, the computation is performed from all voxels of the input image. It must have same dimensions as the input image.
image
Binary
None
model
The structure model used to compute the measurement.
The binary image defining the volume of interest. The measurement is computed from voxels having a value of 1 in this image. If it equals null, the computation is performed from all voxels of the input image. It must have same dimensions as the input image.
Image
Binary
null
model
The structure model used to compute the measurement.