Class SplitIntoSquares
- All Implemented Interfaces:
Provider<ObjectCollection>
Splits objects into sub-objects by cutting by an orthogonal square lattice (like a chessboard).
Only splits in x and y dimensions; the z-dimension is unaffected.
The cuts are mostly squares, but sometimes cuts are rectangles in the leftover space, which
are never larger in any dimension than squareSize
An optional minimim number of on voxels is applied to any object (after it has been cut) to exist in the created collection.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objectCollection) Creates aObjectCollection
given the entity provided by the delegate.int
Only includes squares that have at least this number of voxels.int
void
setMinNumberVoxels
(int minNumberVoxels) Only includes squares that have at least this number of voxels.void
setSquareSize
(int squareSize) Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjects
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SplitIntoSquares
public SplitIntoSquares()
-
-
Method Details
-
createFromObjects
Description copied from class:ObjectCollectionProviderUnary
Creates aObjectCollection
given the entity provided by the delegate.- Specified by:
createFromObjects
in classObjectCollectionProviderUnary
- Parameters:
objectCollection
- the entity provided by the delegate.- Returns:
- the created
ObjectCollection
that is returned by the provider.
-
getSquareSize
public int getSquareSize() -
setSquareSize
public void setSquareSize(int squareSize) -
getMinNumberVoxels
public int getMinNumberVoxels()Only includes squares that have at least this number of voxels. -
setMinNumberVoxels
public void setMinNumberVoxels(int minNumberVoxels) Only includes squares that have at least this number of voxels.
-