Class CircleObjectFixture
Object
org.anchoranalysis.test.image.object.CircleObjectFixture
public class CircleObjectFixture extends Object
Creates object-masks that are circles in different ways
- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static org.anchoranalysis.image.voxel.object.ObjectMaskcircleAt(Point2d center, int radius)Creates a single circular mask at a particular center point and radius.static org.anchoranalysis.image.voxel.object.ObjectCollectionsuccessiveCircles(int numberCircles, Point2d startCenter, int radius, Point2d centerShift, double radiusShift)Creates several successive circles whose center is incrementally shifted.
-
Method Details
-
successiveCircles
public static org.anchoranalysis.image.voxel.object.ObjectCollection successiveCircles(int numberCircles, Point2d startCenter, int radius, Point2d centerShift, double radiusShift)Creates several successive circles whose center is incrementally shifted.- Parameters:
numberCircles- how many circles to create.startCenter- the center of the first circle.radius- the radius for all circles.centerShift- shifts the center by this amount for each successive circle.radiusShift- increases the radius by this amount for each successive circle.- Returns:
- a collection of circular-objects.
-
circleAt
public static org.anchoranalysis.image.voxel.object.ObjectMask circleAt(Point2d center, int radius)Creates a single circular mask at a particular center point and radius.- Parameters:
center- center-point.radius- the radius.- Returns:
- a circular object-mask as above with a minimally fitting bounding-box around it.
-