Processing math: 100%
ImageDev

ObjectSpecificSurface

Measures the ratio of binarized surface to volume of objects contained inside the volume of interest of a binary image.

Access to parameter description

For an introduction: In the 2D case, the Object Specific Surface, OSS, is calculated as the division of the perimeter P by area Ar. In the 3D case, it is calculated as the division of the surface S from the Area3d algorithm by the 3D volume V.
  • P is the object Crofton Perimeter.
  • Ar is the object area.
  • S is the object surface area calculated using the Area3d algorithm.
  • V is the object volume.
  • See also

    Function Syntax

    This function returns outputMeasurement.
    // Function prototype
    ObjectSpecificSurfaceMsr::Ptr objectSpecificSurface( std::shared_ptr< iolink::ImageView > inputBinaryImage, ObjectSpecificSurfaceMsr::Ptr outputMeasurement = NULL );

    Class Syntax

    Parameters

    Parameter Name Description Type Supported Values Default Value
    input
    inputBinaryImage
    The input binary image. Image Binary nullptr
    output
    outputMeasurement
    The output measurement result. ObjectSpecificSurfaceMsr nullptr

    Object Examples

    auto polystyrene_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_sep.vip" );
    
    ObjectSpecificSurface objectSpecificSurfaceAlgo;
    objectSpecificSurfaceAlgo.setInputBinaryImage( polystyrene_sep );
    objectSpecificSurfaceAlgo.execute();
    
    std::cout << "ratio: " << objectSpecificSurfaceAlgo.outputMeasurement()->ratio( 0 ) ;

    Function Examples

    auto polystyrene_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_sep.vip" );
    
    auto result = objectSpecificSurface( polystyrene_sep );
    
    std::cout << "ratio: " << result->ratio( 0 ) ;