Class CutOffCornersObjectFixture
Object
org.anchoranalysis.test.image.object.CutOffCornersObjectFixture
public class CutOffCornersObjectFixture extends Object
Creates one or more objects that are otherwise rectangles with on values, but with corner
voxels as off.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description CutOffCornersObjectFixture()Create without any check on dimensions.CutOffCornersObjectFixture(Dimensions dimensions)Create with any check on dimensions. -
Method Summary
Modifier and Type Method Description org.anchoranalysis.image.voxel.object.ObjectMaskcreate1()Create the first object.org.anchoranalysis.image.voxel.object.ObjectMaskcreate2()Create the second object.org.anchoranalysis.image.voxel.object.ObjectMaskcreate3()Create the third object.org.anchoranalysis.image.voxel.object.ObjectCollectioncreateAll()Creates all three objects.
-
Constructor Details
-
CutOffCornersObjectFixture
public CutOffCornersObjectFixture()Create without any check on dimensions. -
CutOffCornersObjectFixture
Create with any check on dimensions.- Parameters:
dimensions- a check occurs to make sure objects fit inside these dimensions.
-
-
Method Details
-
create1
public org.anchoranalysis.image.voxel.object.ObjectMask create1()Create the first object.- Returns:
- a newly created object.
-
create2
public org.anchoranalysis.image.voxel.object.ObjectMask create2()Create the second object.- Returns:
- a newly created object.
-
create3
public org.anchoranalysis.image.voxel.object.ObjectMask create3()Create the third object.- Returns:
- a newly created object.
-
createAll
public org.anchoranalysis.image.voxel.object.ObjectCollection createAll()Creates all three objects.- Returns:
- collection of newly created objects.
-