Class InstanceSegmentationTestBase

Object
InstanceSegmentationTestBase

public abstract class InstanceSegmentationTestBase extends Object
Base class for testing implementations of SegmentStackIntoObjectsPooled.
Author:
Owen Feehan
  • Constructor Details

    • InstanceSegmentationTestBase

      public InstanceSegmentationTestBase()
  • Method Details

    • testRGB

      @Test public void testRGB() throws SegmentationFailedException
      Tests the segmentation on an RGB image.
      Throws:
      SegmentationFailedException - if segmentation fails
    • testGrayscale8Bit

      @Test public void testGrayscale8Bit() throws SegmentationFailedException
      Tests the segmentation on a grayscale 8-bit image.
      Throws:
      SegmentationFailedException - if segmentation fails
    • createSegmenter

      protected abstract SegmentStackIntoObjectsPooled<?> createSegmenter()
      Creates the segmentation implementation to be tested.
      Returns:
      the segmentation implementation.
    • stackRGB

      protected Stack stackRGB()
      Provides the RGB stack to be tested.
      Returns:
      the RGB Stack
    • stackGrayscale

      protected Stack stackGrayscale()
      Provides the grayscale stack to be tested.
      Returns:
      the grayscale Stack
    • targetBox

      protected abstract BoundingBox targetBox()
      The bounding-box we use to set an area where we expect segments to reside.
      Returns:
      the BoundingBox.