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 Channel
createFromDimensions
(Dimensions dimensions) Creates a channel from the given dimensions.int
getValue()
boolean
If True creates an unsigned short-imagevoid
setCreateShort
(boolean createShort) If True creates an unsigned short-imagevoid
setValue
(int value) Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.FromDimensionsBase
get, getDimensions, setDimensions
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
-
Constructor Details
-
CreateNew
public CreateNew()
-
-
Method Details
-
createFromDimensions
Description copied from class:FromDimensionsBase
Creates a channel from the given dimensions.- Specified by:
createFromDimensions
in classFromDimensionsBase
- Parameters:
dimensions
- theDimensions
to use for creating the channel- Returns:
- a new
Channel
with 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
-