Class SoLocalAdaptiveThresholdProcessing

  • All Implemented Interfaces:
    SafeDisposable

    public class SoLocalAdaptiveThresholdProcessing
    extends SoImageVizEngine
    SoLocalAdaptiveThresholdProcessing engine. The SoLocalAdaptiveThresholdProcessing engine performs a binarization of a grayscale image based on the mean intensity of a sliding window centered around each voxel.

    Each voxel value is compared to the mean intensity of its local window. The corresponding voxel in the binary output depends on the threshold value, mode, and comparison criterion.

    In additive mode with comparison criterion set to GREATER_OR_EQUAL, the output is set to 1 if .

    In multiplicative mode with comparison criterion set to GREATER_OR_EQUAL, the output is set to 1 if .

    For example to select voxels lower than 90% of their local mean, set threshold field to 0.9, comparisonCriterion field to LESS_OR_EQUAL and thresholdMode field to MULTIPLICATIVE.

    : SoAdaptiveThresholdingProcessing, SoAutoThresholdingProcessing.

    File format/default:

    LocalAdaptiveThresholdProcessing {

      computeMode MODE_AUTO
      kernelSize 30 30 30
      inImage NULL
      threshold 1.0f
      comparisonCriterion GREATER_OR_EQUAL
      thresholdMode MULTIPLICATIVE
    }


    Library references: local_adaptive_threshold2d local_adaptive_threshold3d