public class StatsCollection extends Object implements IQuimpSerialize
This class is used as storage of frame statistics in
DataContainer
.
Modifier and Type | Field and Description |
---|---|
ArrayList<CellStats> |
sHs
List of statistic objects for separate cells.
|
Constructor and Description |
---|
StatsCollection()
Default constructor.
|
StatsCollection(int size)
Create size elements in store for
CellStats objects. |
Modifier and Type | Method and Description |
---|---|
void |
afterSerialize()
This method is called after restoring object from JSON but before returning the object.
|
void |
beforeSerialize()
This method is called just before JSON is generated.
|
void |
copyFromCellStat(List<CellStatsEval> in)
Bridge method to maintain compatibility with old code.
|
ArrayList<CellStats> |
getStatCollection()
Get stats collection object wrapped by this class.
|
void |
setStatCollection(ArrayList<CellStats> shs)
Set stats collection object wrapped by this class.
|
public StatsCollection(int size)
CellStats
objects.
Size of the store usually equals to the number of cells in the image.
size
- Number of cellspublic StatsCollection()
Create empty store for CellStats
objects.
public void beforeSerialize()
IQuimpSerialize
beforeSerialize
in interface IQuimpSerialize
Serializer.save(String)
public void afterSerialize() throws Exception
IQuimpSerialize
afterSerialize
in interface IQuimpSerialize
Exception
- from wrapped object in any problem. This is implementation dependentSerializer.load(String)
public void copyFromCellStat(List<CellStatsEval> in)
in
- List of CellStat objects - size of this list equals to number of cells. Each
CellStats
object maintain statistic for one cell along all frames.public ArrayList<CellStats> getStatCollection()
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.