Class CircleObjectFixture
Object
CircleObjectFixture
Creates object-masks that are circles in different ways
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectMaskCreates a single circular mask at a particular center point and radius.static 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 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
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.
-