public class SplitIntoSquares extends ObjectCollectionProviderUnary
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.
Constructor and Description |
---|
SplitIntoSquares() |
Modifier and Type | Method and Description |
---|---|
ObjectCollection |
createFromObjects(ObjectCollection objectCollection)
Creates a
ObjectCollection given the entity provided by the delegate. |
int |
getMinNumberVoxels()
Only includes squares that have at least this number of voxels.
|
int |
getSquareSize() |
void |
setMinNumberVoxels(int minNumberVoxels)
Only includes squares that have at least this number of voxels.
|
void |
setSquareSize(int squareSize) |
get, getObjects, setObjects
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ObjectCollection createFromObjects(ObjectCollection objectCollection)
ObjectCollectionProviderUnary
ObjectCollection
given the entity provided by the delegate.createFromObjects
in class ObjectCollectionProviderUnary
objectCollection
- the entity provided by the delegate.ObjectCollection
that is returned by the provider.public int getSquareSize()
public void setSquareSize(int squareSize)
public int getMinNumberVoxels()
public void setMinNumberVoxels(int minNumberVoxels)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.