All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class SegmentChannel extends FromChannelBase
Applies a BinarySegmentation algorithm to derive a mask from a channel

Optionally, a mask restricts which part of the channel the algorithm is applied to. In this case, the remainder of the channel is unaltered in the output-mask, and no check occurs to ensure it containlys only the valid binary-values for off and on.

Optionally a histogram of voxel intensity values is passed to the segmentation algorithm.

Author:
Owen Feehan
  • Constructor Details

    • SegmentChannel

      public SegmentChannel()
  • Method Details

    • createFromSource

      protected Mask createFromSource(Channel source) throws CreateException
      Description copied from class: FromChannelBase
      Creates a Mask from the source Channel.
      Specified by:
      createFromSource in class FromChannelBase
      Parameters:
      source - the source channel
      Returns:
      the created mask
      Throws:
      CreateException - if the mask creation fails
    • getSegment

      public BinarySegmentation getSegment()
      Segmentation algorithm
    • setSegment

      public void setSegment(BinarySegmentation segment)
      Segmentation algorithm
    • getHistogram

      public HistogramProvider getHistogram()
      An optional histogram of voxel intensity values which can be used by segment
    • setHistogram

      public void setHistogram(HistogramProvider histogram)
      An optional histogram of voxel intensity values which can be used by segment
    • getMask

      public MaskProvider getMask()
      An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxel
    • setMask

      public void setMask(MaskProvider mask)
      An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxel