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 Stack
Provides the grayscale stack to be tested.protected Stack
stackRGB()
Provides the RGB stack to be tested.protected abstract BoundingBox
The bounding-box we use to set an area where we expect segments to reside.void
Tests the segmentation on a grayscale 8-bit image.void
testRGB()
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
.
-