All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class ScoreObjects extends UnaryWithObjectsBase
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 Details

    • ScoreObjects

      public ScoreObjects()
  • Method Details

    • createFromChannel

      protected Channel createFromChannel(Channel channel, ObjectCollection objects) throws ProvisionFailedException
      Description copied from class: UnaryWithObjectsBase
      Creates a new channel from an existing channel and a collection of objects.
      Specified by:
      createFromChannel in class UnaryWithObjectsBase
      Parameters:
      channel - the input Channel
      objects - the ObjectCollection to be used in channel creation
      Returns:
      a new Channel created 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

      public List<ChannelProvider> getListAdditionalChannelProviders()
      Additional channels to be included in the EnergyStack for feature calculation.
    • setListAdditionalChannelProviders

      public void setListAdditionalChannelProviders(List<ChannelProvider> listAdditionalChannelProviders)
      Additional channels to be included in the EnergyStack for 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.