Class IfHighLow
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
Outputs the logical operation
iff first==HIGH and second==LOW then LOW
voxelwise on both
masks, modifying {mask} with the result.
Specifically the truth table is:
First | Second | Output |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 1 |
1 | 1 | 0 |
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Mask
createFromTwoMasks
(Mask maskToModify, Mask maskReceiver) Creates a mask from some combination of two masks.Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.combine.CombineBase
createFromMask, getReceive, setReceive
Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary
get, getMask, setMask
Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
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
-
IfHighLow
public IfHighLow()
-
-
Method Details
-
createFromTwoMasks
Description copied from class:CombineBase
Creates a mask from some combination of two masks.- Specified by:
createFromTwoMasks
in classCombineBase
- Parameters:
maskToModify
- first mask (which is also the mask modified with the result)maskReceiver
- second mask (which is not modified)- Returns:
- either
maskToModify
ormaskOther
depending on implementation
-