public class LevelPerObjectNeighbors extends LevelPerObjectBase
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 and Description |
---|
LevelPerObjectNeighbors() |
Modifier and Type | Method and Description |
---|---|
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.)
|
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.)
|
protected void |
writeLevelsForObjects(Channel channelIntensity,
ObjectCollection objects,
Channel output)
Creates a channel with the levels for a set of objects
|
createFromChannel, getCalculateLevel, getObjects, setCalculateLevel, setObjects
get, getChannel, setChannel
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected void writeLevelsForObjects(Channel channelIntensity, ObjectCollection objects, Channel output) throws ProvisionFailedException
LevelPerObjectBase
writeLevelsForObjects
in class LevelPerObjectBase
channelIntensity
- the channel whose intensity is passed to calculateLevel
as a histogram
variously for particular objectsobjects
- the objectsoutput
- the channel where the calculated-levels are written (for each object)ProvisionFailedException
public int getDistance()
public void setDistance(int distance)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.