public class ViewStructure extends Object
Modifier and Type | Field and Description |
---|---|
protected BeadRegistration |
beadRegister
The object that handles registration
|
protected BeadSegmentation |
beadSegment
The object that handles segmentation
|
protected SPIMConfiguration |
conf
The configuration of the current SPIM registration
|
static int |
DEBUG_ALL |
static int |
DEBUG_ERRORONLY |
static int |
DEBUG_MAIN |
protected int |
debugLevel
The debug level of this view constellation
|
protected GlobalErrorStatistics |
errorStatistics
The global error statistics of this view constellation
|
static int |
firstID |
protected FusionControl |
fusionControl
The object that handles fusion
|
protected String |
identification
Arbitrary String for identification
|
protected int |
numChannels
The number of channels in this view constellation
|
protected int |
timePoint
The time point of the current view constellation
|
protected ArrayList<ViewDataBeads> |
views
The link to the Views
|
Constructor and Description |
---|
ViewStructure(ArrayList<ViewDataBeads> views,
SPIMConfiguration conf,
String id,
int timePoint,
int numChannels) |
ViewStructure(ArrayList<ViewDataBeads> views,
SPIMConfiguration conf,
String id,
int timePoint,
int numChannels,
int debugLevel) |
Modifier and Type | Method and Description |
---|---|
BeadRegistration |
getBeadRegistration() |
BeadSegmentation |
getBeadSegmentation() |
int |
getChannelNum(int channelIndex)
Returns the channel id for a certain channelIndex
|
int |
getDebugLevel()
DebugLevel of this view constellation
|
FusionControl |
getFusionControl() |
GlobalErrorStatistics |
getGlobalErrorStatistics()
The
GlobalErrorStatistics collects error details of the registration prodedure |
String |
getID()
get the identification String of the ViewStructure
|
int |
getNumChannels()
The number of channels in this view collection
|
int |
getNumDimensions()
Gets the number of dimensions from view 1
|
int |
getNumViews()
The number of views in this view collection
|
SPIMConfiguration |
getSPIMConfiguration()
Return the current SPIMConfiguration
|
int |
getTimePoint()
The time point index of the current
ViewStructure |
ViewDataBeads |
getViewFromID(int viewID)
For getting a View with a certain ID
|
ArrayList<ViewDataBeads> |
getViews()
Get the views
|
static <M extends AbstractAffineModel3D<M>> |
initViewStructure(SPIMConfiguration conf,
int timePointIndex,
M model,
String id,
int debugLevel)
This static methods creates an instance of
ViewStructure with all ViewDataBeads completely instantiated. |
boolean |
loadDimensions()
Loads the dimensions from the *.dim files in the registration file directory
|
boolean |
loadRegistrations()
Loads the registration matrix and the errors from the *.registration files in the registration file directory
|
boolean |
loadSegmentations()
Loads the bead detections and its correspondences candidates as well as true correspondences from the *.beads.txt files in the registration file directory
|
void |
setDebugLevel(int debugLevel)
DebugLevel of this view constellation
|
void |
setGlobalErrorStatistics(GlobalErrorStatistics errorStatistics)
Sets a new object that collects error details of the registration prodedure
|
String |
toString() |
public static final int DEBUG_ALL
public static final int DEBUG_MAIN
public static final int DEBUG_ERRORONLY
public static int firstID
protected final ArrayList<ViewDataBeads> views
protected final int timePoint
protected final int numChannels
protected final String identification
protected int debugLevel
protected final SPIMConfiguration conf
protected GlobalErrorStatistics errorStatistics
protected BeadSegmentation beadSegment
protected BeadRegistration beadRegister
protected FusionControl fusionControl
public ViewStructure(ArrayList<ViewDataBeads> views, SPIMConfiguration conf, String id, int timePoint, int numChannels)
public ViewStructure(ArrayList<ViewDataBeads> views, SPIMConfiguration conf, String id, int timePoint, int numChannels, int debugLevel)
public BeadSegmentation getBeadSegmentation()
public BeadRegistration getBeadRegistration()
public FusionControl getFusionControl()
public int getNumViews()
public int getNumChannels()
public int getChannelNum(int channelIndex)
channelIndex
- public GlobalErrorStatistics getGlobalErrorStatistics()
GlobalErrorStatistics
collects error details of the registration prodedureGlobalErrorStatistics
object of this ViewStructure
public void setGlobalErrorStatistics(GlobalErrorStatistics errorStatistics)
errorStatistics
- - The GlobalErrorStatistics
object of this ViewStructure
public int getDebugLevel()
public void setDebugLevel(int debugLevel)
debugLevel
- - the new debug level of this view constellationpublic int getTimePoint()
ViewStructure
public SPIMConfiguration getSPIMConfiguration()
SPIMConfiguration
objectpublic String getID()
public ArrayList<ViewDataBeads> getViews()
public ViewDataBeads getViewFromID(int viewID)
viewID
- - the ID of the wanted Viewpublic int getNumDimensions()
public boolean loadSegmentations()
public boolean loadRegistrations()
public boolean loadDimensions()
public static <M extends AbstractAffineModel3D<M>> ViewStructure initViewStructure(SPIMConfiguration conf, int timePointIndex, M model, String id, int debugLevel)
ViewStructure
with all ViewDataBeads
completely instantiated.
Afterwards processing can start or already processed data can be loaded.conf
- - the SPIMConfiguration
object containing all information about the current registrationtimePointIndex
- - the id of the current time point as the SPIMConfiguration
stores the information for all time pointsmodel
- - the model to be used for registrationid
- - arbitrary id, will be printed with the toString methoddebugLevel
- - the debug level of the program ViewStructure.DEBUG_ALL, ViewStructure.DEBUG_MAIN or ViewStructure.DEBUG_ERRORONLYCopyright © 2015–2021 Fiji. All rights reserved.