- Notifications
You must be signed in to change notification settings - Fork12
Shared table
Richard Domander edited this pageSep 11, 2018 ·3 revisions
TheSharedTable
is a singleton class that holds an instance ofTable<DefaultColumn<Double>, Double>
. BoneJ plug-ins can share this table by calling its public API. They can add data, and display their results by making the table their output. This is handy when you're interested in multiple measures for the same image.
The data in theTable
is sorted according to the following rules:
- Each row is marked with a headerLabel. The labels list the names of the images inserted to the table, e.g.bat-cochlea-volume.tif
- Each column has a header, which tells you the type of the measurement, e.g.Volume
- When data is added with labelimage.tif and headerVolume
- If there are no rows with labelimage.tif, add a new row
- If there are rows with labelimage.tif, but not a column with headerVolume, then add a column, and set the value of the cell on the last row that has the label (other rows in the column are left empty)
- If there are rows with labelimage.tif, and a column with headerVolume, then set the value of the cell on the last row that has the label if it's empty. Otherwise create a new row, and set the cell on that row.
- Cells with no values are left empty (placeholder values such as
0
orNaN
could be confused with actual results that are0
orNaN
)
The table can be cleared by calling theSharedTableCleaner
plug-in atPlugins>BoneJ>Table>Clear BoneJ results
.