T
- type of feature used in the tablepublic abstract class CombineObjectsForFeatures<T extends FeatureInput> extends AnchorBean<CombineObjectsForFeatures<T>>
Columns in the feature-table always represent features.
A row may represent a single object, or a pair of objects, or any other derived inputs from an object-collection, depending on the implementation of the sub-class.
Modifier | Constructor and Description |
---|---|
|
CombineObjectsForFeatures() |
protected |
CombineObjectsForFeatures(Interpolator interpolator)
Create with a specific interpolator.
|
Modifier and Type | Method and Description |
---|---|
protected abstract BoundingBox |
boundingBoxThatSpansInput(T input)
Creates a bounding-box that tightly fits the input to a particular table row (could be for
one or more objects)
|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
abstract FeatureTableCalculator<T> |
createFeatures(List<NamedBean<FeatureListProvider<FeatureInputSingleObject>>> featuresSingleObject,
NamedFeatureStoreFactory storeFactory,
boolean suppressErrors)
Creates features that will be applied on the objects.
|
ListWithThumbnails<T,ObjectCollection> |
deriveInputsStartBatch(ObjectCollection objects,
EnergyStack energyStack,
boolean thumbnailsEnabled,
OperationContext context)
Derives a list of inputs (i.e.
|
Interpolator |
getInterpolator()
Interpolator used to resize images in thumbnail generation.
|
ThumbnailFromObjects |
getThumbnail()
Generates a thumbnail representation of one or more combined objects, as form a single input.
|
abstract ObjectCollection |
objectsForThumbnail(T input)
Selects objects from an input that will be used for thumbnail generation.
|
void |
setInterpolator(Interpolator interpolator)
Interpolator used to resize images in thumbnail generation.
|
void |
setThumbnail(ThumbnailFromObjects thumbnail)
Generates a thumbnail representation of one or more combined objects, as form a single input.
|
protected abstract List<T> |
startBatchDeriveInputs(ObjectCollection objects,
EnergyStack energyStack,
Logger logger)
Derives a list of inputs from an object-collection.
|
abstract String |
uniqueIdentifierFor(T input)
Generates a unique identifier for a particular input
|
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected CombineObjectsForFeatures(Interpolator interpolator)
interpolator
- interpolator used to resize images in thumbnail generation.public CombineObjectsForFeatures()
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<CombineObjectsForFeatures<T extends FeatureInput>>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic abstract FeatureTableCalculator<T> createFeatures(List<NamedBean<FeatureListProvider<FeatureInputSingleObject>>> featuresSingleObject, NamedFeatureStoreFactory storeFactory, boolean suppressErrors) throws CreateException, InitializeException
featuresSingleObject
- beans defining features to be applied to single-objects.storeFactory
- creates as new NamedFeatureStore
as needed.suppressErrors
- when true, exceptions aren't thrown when feature-calculations fail, but
rather a log error message is written.featuresSingleObject
.CreateException
InitializeException
public abstract String uniqueIdentifierFor(T input)
public ListWithThumbnails<T,ObjectCollection> deriveInputsStartBatch(ObjectCollection objects, EnergyStack energyStack, boolean thumbnailsEnabled, OperationContext context) throws CreateException
objects
- the objects from which inputs are derived.energyStack
- energy-stack used during feature calculation.thumbnailsEnabled
- whether thumbnail-generation is enabled.context
- context in which the operation occurs.CreateException
public abstract ObjectCollection objectsForThumbnail(T input) throws CreateException
input
- the input.CreateException
protected abstract List<T> startBatchDeriveInputs(ObjectCollection objects, EnergyStack energyStack, Logger logger) throws CreateException
objects
- the object-collection.energyStack
- energy-stack used during feature calculation.logger
- the logger.CreateException
protected abstract BoundingBox boundingBoxThatSpansInput(T input)
input
- the inputpublic ThumbnailFromObjects getThumbnail()
If not set, a thumbnail will be created with an outline around selected and unselected objects.
public void setThumbnail(ThumbnailFromObjects thumbnail)
If not set, a thumbnail will be created with an outline around selected and unselected objects.
public Interpolator getInterpolator()
public void setInterpolator(Interpolator interpolator)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.