Class IntersectingCircleObjectsFixture
Object
org.anchoranalysis.test.feature.plugins.objects.IntersectingCircleObjectsFixture
public class IntersectingCircleObjectsFixture extends Object
A fixture for generating collections of intersecting and non-intersecting circular objects.
This class provides utility methods to create object collections with specific configurations of intersecting and non-intersecting circles for testing purposes.
-
Method Summary
Modifier and Type Method Description static org.anchoranalysis.image.voxel.object.ObjectCollectiongenerateIntersectingObjects(int numberIntersecting, int numberNotIntersecting, boolean sameSize)Generates a collection of circular objects, some intersecting and some not intersecting.
-
Method Details
-
generateIntersectingObjects
public static org.anchoranalysis.image.voxel.object.ObjectCollection generateIntersectingObjects(int numberIntersecting, int numberNotIntersecting, boolean sameSize)Generates a collection of circular objects, some intersecting and some not intersecting.- Parameters:
numberIntersecting- the number of intersecting circles to producenumberNotIntersecting- the number of non-intersecting circles to producesameSize- if true, all circles have the same radius (INITIAL_RADIUS); if false, the radius gradually increments- Returns:
- an ObjectCollection containing the generated circular objects
-