Class CreateNew
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Creates a new channel with all values initialized to a constant (by default zero)
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelcreateFromDimensions(Dimensions dimensions) Creates a channel from the given dimensions.intgetValue()booleanIf True creates an unsigned short-imagevoidsetCreateShort(boolean createShort) If True creates an unsigned short-imagevoidsetValue(int value) Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.FromDimensionsBase
get, getDimensions, setDimensionsMethods 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
-
CreateNew
public CreateNew()
-
-
Method Details
-
createFromDimensions
Description copied from class:FromDimensionsBaseCreates a channel from the given dimensions.- Specified by:
createFromDimensionsin classFromDimensionsBase- Parameters:
dimensions- theDimensionsto use for creating the channel- Returns:
- a new
Channelwith the specified dimensions
-
getValue
public int getValue() -
setValue
public void setValue(int value) -
isCreateShort
public boolean isCreateShort()If True creates an unsigned short-image -
setCreateShort
public void setCreateShort(boolean createShort) If True creates an unsigned short-image
-