Class EachObjectIndependently
Object
org.anchoranalysis.bean.AnchorBean<CombineObjectsForFeatures<T>>
org.anchoranalysis.plugin.image.feature.bean.object.combine.CombineObjectsForFeatures<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.plugin.image.feature.bean.object.combine.EachObjectIndependently
public class EachObjectIndependently extends CombineObjectsForFeatures<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
Selects features and objects directly from the input list, treating each object independently.
This class does not combine objects, but rather processes each object individually.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description EachObjectIndependently()EachObjectIndependently(org.anchoranalysis.image.bean.interpolator.Interpolator interpolator)Create with a specific interpolator. -
Method Summary
Modifier and Type Method Description protected org.anchoranalysis.spatial.box.BoundingBoxboundingBoxThatSpansInput(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)Creates a bounding-box that tightly fits the input to a particular table row (could be for one or more objects).org.anchoranalysis.image.feature.calculator.FeatureTableCalculator<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>createFeatures(List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>>> list, org.anchoranalysis.feature.store.NamedFeatureStoreFactory storeFactory, boolean suppressErrors)Creates features that will be applied on the objects.org.anchoranalysis.image.feature.calculator.FeatureTableCalculator<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>createFeatures(org.anchoranalysis.feature.store.NamedFeatureStore<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> features)Creates aFeatureTableCalculatorfrom aNamedFeatureStore.org.anchoranalysis.image.voxel.object.ObjectCollectionobjectsForThumbnail(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)Selects objects from an input that will be used for thumbnail generation.List<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>startBatchDeriveInputs(org.anchoranalysis.image.voxel.object.ObjectCollection objects, org.anchoranalysis.feature.energy.EnergyStack energyStack, org.anchoranalysis.core.log.Logger logger)Derives a list of inputs from an object-collection.StringuniqueIdentifierFor(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)Generates a unique identifier for a particular input.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.combine.CombineObjectsForFeatures
checkMisconfigured, deriveInputsStartBatch, getInterpolator, getThumbnail, setInterpolator, setThumbnail
-
Constructor Details
-
EachObjectIndependently
public EachObjectIndependently(org.anchoranalysis.image.bean.interpolator.Interpolator interpolator)Create with a specific interpolator.- Parameters:
interpolator- interpolator used to resize images in thumbnail generation.
-
EachObjectIndependently
public EachObjectIndependently()
-
-
Method Details
-
createFeatures
public org.anchoranalysis.image.feature.calculator.FeatureTableCalculator<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> createFeatures(List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>>> list, org.anchoranalysis.feature.store.NamedFeatureStoreFactory storeFactory, boolean suppressErrors) throws org.anchoranalysis.core.exception.CreateExceptionDescription copied from class:CombineObjectsForFeaturesCreates features that will be applied on the objects. Features should always be duplicated from the input list.- Specified by:
createFeaturesin classCombineObjectsForFeatures<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Parameters:
list- beans defining features to be applied to single-objects.storeFactory- creates a newNamedFeatureStoreas needed.suppressErrors- when true, exceptions aren't thrown when feature-calculations fail, but rather a log error message is written.- Returns:
- a
FeatureTableCalculatorfor feature tables that may apply various features derived fromfeaturesSingleObject. - Throws:
org.anchoranalysis.core.exception.CreateException- if there's an error creating the features.
-
createFeatures
public org.anchoranalysis.image.feature.calculator.FeatureTableCalculator<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> createFeatures(org.anchoranalysis.feature.store.NamedFeatureStore<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> features)Creates aFeatureTableCalculatorfrom aNamedFeatureStore.- Parameters:
features- the named feature store containing the features to be calculated- Returns:
- a new
FeatureTableCalculatorfor the given features
-
uniqueIdentifierFor
public String uniqueIdentifierFor(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)Description copied from class:CombineObjectsForFeaturesGenerates a unique identifier for a particular input.- Specified by:
uniqueIdentifierForin classCombineObjectsForFeatures<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Parameters:
input- the input to generate a unique identifier for- Returns:
- a unique identifier string
-
startBatchDeriveInputs
public List<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> startBatchDeriveInputs(org.anchoranalysis.image.voxel.object.ObjectCollection objects, org.anchoranalysis.feature.energy.EnergyStack energyStack, org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.core.exception.CreateExceptionDescription copied from class:CombineObjectsForFeaturesDerives a list of inputs from an object-collection.- Specified by:
startBatchDeriveInputsin classCombineObjectsForFeatures<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Parameters:
objects- the object-collectionenergyStack- energy-stack used during feature calculationlogger- the logger- Returns:
- the list of inputs
- Throws:
org.anchoranalysis.core.exception.CreateException- if there's an error deriving the inputs
-
objectsForThumbnail
public org.anchoranalysis.image.voxel.object.ObjectCollection objectsForThumbnail(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input) throws org.anchoranalysis.core.exception.CreateExceptionDescription copied from class:CombineObjectsForFeaturesSelects objects from an input that will be used for thumbnail generation.- Specified by:
objectsForThumbnailin classCombineObjectsForFeatures<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Parameters:
input- the input- Returns:
- the
ObjectCollectionfor thumbnail generation - Throws:
org.anchoranalysis.core.exception.CreateException- if there's an error creating the object collection
-
boundingBoxThatSpansInput
protected org.anchoranalysis.spatial.box.BoundingBox boundingBoxThatSpansInput(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)Description copied from class:CombineObjectsForFeaturesCreates a bounding-box that tightly fits the input to a particular table row (could be for one or more objects).- Specified by:
boundingBoxThatSpansInputin classCombineObjectsForFeatures<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Parameters:
input- the input- Returns:
- a
BoundingBoxthat fully fits around all objects used in input
-