public class ProbabilityMaps extends ListMap<RealMatrix>
Allow to keep many maps for FG and BG, e.g. when there are more than one object that should be
handled separately. For given RandomWalkSegmentation.SeedTypes
key maps are stored in ArrayList.
Seeds
,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ProbabilityMaps()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
double[][][] |
convertTo3dMatrix(Object key)
Convert list of maps under specified key to 3d array of doubles.
|
ij.ImageStack |
convertToImageStack(Object key)
Convert probability maps to ImageStack.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public double[][][] convertTo3dMatrix(Object key)
Data in output array are references. Require the same size of all maps within specified key.
key
- which map to convertIllegalArgumentException
- if size of maps is not equalpublic ij.ImageStack convertToImageStack(Object key)
key
- which map to convertIllegalArgumentException
- if size of maps is not equalCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.