Class NormalizeDifferenceToMedian

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

public class NormalizeDifferenceToMedian extends UnaryWithObjectsBase
Corrects a channel in the following way

For each object:

  1. Identify the median value from channelLookup (Value 1)
  2. Calculate the difference of each pixel value in channelLookup (Value 2)
  3. Adjust each pixel value by Value 2.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Channel
    createFromChannel(Channel channel, ObjectCollection objects)
    Creates a new channel from an existing channel and a collection of objects.
    ChannelProvider
     
    void
    setChannelLookup(ChannelProvider channelLookup)
     

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

    createFromChannel, getObjects, 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

    • NormalizeDifferenceToMedian

      public NormalizeDifferenceToMedian()
  • 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
    • getChannelLookup

      public ChannelProvider getChannelLookup()
    • setChannelLookup

      public void setChannelLookup(ChannelProvider channelLookup)