Class InstanceSegmentationTestBase
Object
InstanceSegmentationTestBase
Base class for testing implementations of
SegmentStackIntoObjectsPooled.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SegmentStackIntoObjectsPooled<?> Creates the segmentation implementation to be tested.protected StackProvides the grayscale stack to be tested.protected StackstackRGB()Provides the RGB stack to be tested.protected abstract BoundingBoxThe bounding-box we use to set an area where we expect segments to reside.voidTests the segmentation on a grayscale 8-bit image.voidtestRGB()Tests the segmentation on an RGB image.
-
Constructor Details
-
InstanceSegmentationTestBase
public InstanceSegmentationTestBase()
-
-
Method Details
-
testRGB
Tests the segmentation on an RGB image.- Throws:
SegmentationFailedException- if segmentation fails
-
testGrayscale8Bit
Tests the segmentation on a grayscale 8-bit image.- Throws:
SegmentationFailedException- if segmentation fails
-
createSegmenter
Creates the segmentation implementation to be tested.- Returns:
- the segmentation implementation.
-
stackRGB
Provides the RGB stack to be tested.- Returns:
- the RGB
Stack
-
stackGrayscale
Provides the grayscale stack to be tested.- Returns:
- the grayscale
Stack
-
targetBox
The bounding-box we use to set an area where we expect segments to reside.- Returns:
- the
BoundingBox.
-