Class LevelPerObjectNeighbors
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Calculates a threshold-level for each object collectively based on other objects
A neighborhood-graph is compiled of objects that touch each other. The threshold for each objects is determined by the object itself and neigbors e.g. neighborhoodDistance==1 are all the immediate neighbors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintHow many neighbors to include by distance (distance==1 implies all directly touching neighbors, distance==2 implies those touching the directly touching etc.)voidsetDistance(int distance) How many neighbors to include by distance (distance==1 implies all directly touching neighbors, distance==2 implies those touching the directly touching etc.)protected voidwriteLevelsForObjects(Channel channelIntensity, ObjectCollection objects, Channel output) Creates a channel with the levels for a set of objects.Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.object.LevelPerObjectBase
createFromChannel, getCalculateLevel, getObjects, setCalculateLevel, setObjectsMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods 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
-
LevelPerObjectNeighbors
public LevelPerObjectNeighbors()
-
-
Method Details
-
writeLevelsForObjects
protected void writeLevelsForObjects(Channel channelIntensity, ObjectCollection objects, Channel output) throws ProvisionFailedException Description copied from class:LevelPerObjectBaseCreates a channel with the levels for a set of objects.- Specified by:
writeLevelsForObjectsin classLevelPerObjectBase- Parameters:
channelIntensity- the channel whose intensity is passed tocalculateLevelas a histogram variously for particular objectsobjects- theObjectCollectionfor which levels are calculatedoutput- the channel where the calculated-levels are written (for each object)- Throws:
ProvisionFailedException- if there's an error during the level calculation or writing process
-
getDistance
public int getDistance()How many neighbors to include by distance (distance==1 implies all directly touching neighbors, distance==2 implies those touching the directly touching etc.) -
setDistance
public void setDistance(int distance) How many neighbors to include by distance (distance==1 implies all directly touching neighbors, distance==2 implies those touching the directly touching etc.)
-