Class AssignFromChannel

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

public class AssignFromChannel extends UnaryWithMaskBase
Copies the pixels from channelAssignFrom to channel (possibly masking).

The input channel is changed (mutable). The channelAssignFrom is unchanged (immutable).

This class extends UnaryWithMaskBase to perform pixel assignment from one channel to another, optionally restricted by a mask.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Channel
    createFromMaskedChannel(Channel channel, Mask mask)
    Creates a new Channel from the input channel and mask.
    ChannelProvider
    The channel provider from which pixels will be assigned.
    void
    setChannelAssignFrom(ChannelProvider channelAssignFrom)
    The channel provider from which pixels will be assigned.

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

    createFromChannel, getMask, setMask

    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

    • AssignFromChannel

      public AssignFromChannel()
  • Method Details

    • createFromMaskedChannel

      protected Channel createFromMaskedChannel(Channel channel, Mask mask) throws ProvisionFailedException
      Description copied from class: UnaryWithMaskBase
      Creates a new Channel from the input channel and mask.
      Specified by:
      createFromMaskedChannel in class UnaryWithMaskBase
      Parameters:
      channel - the input Channel
      mask - the Mask to apply to the channel
      Returns:
      a new Channel created from the input channel and mask
      Throws:
      ProvisionFailedException - if the channel creation fails
    • getChannelAssignFrom

      public ChannelProvider getChannelAssignFrom()
      The channel provider from which pixels will be assigned.
    • setChannelAssignFrom

      public void setChannelAssignFrom(ChannelProvider channelAssignFrom)
      The channel provider from which pixels will be assigned.