Class ScoreObjects
Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
UnaryWithObjectsBase
ScoreObjects
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Creates a channel by scoring objects based on a feature calculation.
This class assigns intensity values to voxels in a new channel based on feature calculations performed on objects in the input channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelcreateFromChannel(Channel channel, ObjectCollection objects) Creates a new channel from an existing channel and a collection of objects.doubleFactor to multiply the feature value by before assigning it to the output channel.Feature<FeatureInputSingleObject> Feature that calculates the score for an object.List<ChannelProvider> Additional channels to be included in theEnergyStackfor feature calculation.intThe value assigned to voxels that do not belong to any object.voidsetFactor(double factor) Factor to multiply the feature value by before assigning it to the output channel.voidsetFeature(Feature<FeatureInputSingleObject> feature) Feature that calculates the score for an object.voidsetListAdditionalChannelProviders(List<ChannelProvider> listAdditionalChannelProviders) Additional channels to be included in theEnergyStackfor feature calculation.voidsetValueNoObject(int valueNoObject) The value assigned to voxels that do not belong to any object.Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.UnaryWithObjectsBase
createFromChannel, getObjects, setObjectsMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ScoreObjects
public ScoreObjects()
-
-
Method Details
-
createFromChannel
protected Channel createFromChannel(Channel channel, ObjectCollection objects) throws ProvisionFailedException Description copied from class:UnaryWithObjectsBaseCreates a new channel from an existing channel and a collection of objects.- Specified by:
createFromChannelin classUnaryWithObjectsBase- Parameters:
channel- the inputChannelobjects- theObjectCollectionto be used in channel creation- Returns:
- a new
Channelcreated from the input channel and objects - Throws:
ProvisionFailedException- if the channel creation fails
-
getValueNoObject
public int getValueNoObject()The value assigned to voxels that do not belong to any object. -
setValueNoObject
public void setValueNoObject(int valueNoObject) The value assigned to voxels that do not belong to any object. -
getFeature
public Feature<FeatureInputSingleObject> getFeature()Feature that calculates the score for an object. -
setFeature
public void setFeature(Feature<FeatureInputSingleObject> feature) Feature that calculates the score for an object. -
getListAdditionalChannelProviders
Additional channels to be included in theEnergyStackfor feature calculation. -
setListAdditionalChannelProviders
Additional channels to be included in theEnergyStackfor feature calculation. -
getFactor
public double getFactor()Factor to multiply the feature value by before assigning it to the output channel. -
setFactor
public void setFactor(double factor) Factor to multiply the feature value by before assigning it to the output channel.
-