Class LevelPerObjectIndependently

Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
LevelPerObjectBase
LevelPerObjectIndependently
All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class LevelPerObjectIndependently extends LevelPerObjectBase
Creates a channel with different threshold-levels for each object, calculating the level only from the histogram of the particular object.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    setNumberDilations(int numberDilations)
     
    protected void
    writeLevelsForObjects(Channel channelIntensity, ObjectCollection objects, Channel output)
    Creates a channel with the levels for a set of objects.

    Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.object.LevelPerObjectBase

    createFromChannel, getCalculateLevel, getObjects, setCalculateLevel, setObjects

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary

    get, getChannel, setChannel

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider

    getAsStack

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LevelPerObjectIndependently

      public LevelPerObjectIndependently()
  • Method Details

    • writeLevelsForObjects

      protected void writeLevelsForObjects(Channel channelIntensity, ObjectCollection objects, Channel output) throws ProvisionFailedException
      Description copied from class: LevelPerObjectBase
      Creates a channel with the levels for a set of objects.
      Specified by:
      writeLevelsForObjects in class LevelPerObjectBase
      Parameters:
      channelIntensity - the channel whose intensity is passed to calculateLevel as a histogram variously for particular objects
      objects - the ObjectCollection for which levels are calculated
      output - the channel where the calculated-levels are written (for each object)
      Throws:
      ProvisionFailedException - if there's an error during the level calculation or writing process
    • getNumberDilations

      public int getNumberDilations()
    • setNumberDilations

      public void setNumberDilations(int numberDilations)