public abstract class StackList extends Object implements MultiViewDatasetDefinition
Modifier and Type | Class and Description |
---|---|
protected class |
StackList.Calibration |
protected class |
StackList.ViewSetupPrecursor |
Constructor and Description |
---|
StackList() |
Modifier and Type | Method and Description |
---|---|
protected String |
assembleDefaultPattern() |
static ArrayList<String> |
convertIntegerList(List<Integer> list) |
protected abstract StackImgLoader |
createAndInitImgLoader(String path,
File basePath,
ImgFactory<? extends NativeType<?>> imgFactory,
SequenceDescription sequenceDescription)
Instantiate the
ImgLoader |
SpimData2 |
createDataset()
This method is supposed to (interactively, ideally ImageJ-macroscriptable)
query all necessary data from the user to build up a SpimData object and
save it as an XML file.
|
protected MissingViews |
createMissingViews()
Assembles the list of missing view instances, i.e.
|
protected TimePoints |
createTimePoints()
Creates the
TimePoints for the SpimData object |
protected static ViewRegistrations |
createViewRegistrations(Map<ViewId,ViewDescription> viewDescriptionList,
double minResolution)
Assembles the
ViewRegistration object consisting of a list of ViewRegistration s for all ViewDescription s that are present |
protected ArrayList<ViewSetup> |
createViewSetups()
|
protected boolean |
debugShowFiles() |
protected abstract int |
getDefaultMultipleAngles() |
protected abstract int |
getDefaultMultipleChannels() |
protected abstract int |
getDefaultMultipleIlluminations() |
protected abstract int |
getDefaultMultipleTimepoints() |
protected String |
getFileNameFor(int tpID,
int chID,
int illID,
int angleID)
Assemble the filename for the corresponding file based on the indices for time, channel, illumination and angle
If the fileNamePattern is separated by ';', it will return multiple solutions for each filenamepattern
|
static String[] |
getFileNamesFor(String fileNames,
String replaceTimepoints,
String replaceChannels,
String replaceIlluminations,
String replaceAngles,
String tpName,
String chName,
String illName,
String angleName,
int numDigitsTP,
int numDigitsCh,
int numDigitsIll,
int numDigitsAngle)
Assemble the filename for the corresponding file based on the indices for time, channel, illumination and angle
If the fileNamePattern is separated by ';', it will return multiple solutions for each filenamepattern
|
static String |
leadingZeros(String s,
int numDigits) |
protected boolean |
loadAllCalibrations()
populates the fields calX, calY, calZ from the first file of the series
|
protected abstract StackList.Calibration |
loadCalibration(File file)
Loads the calibration stored in a specific file and closes it afterwards.
|
protected boolean |
loadFirstCalibration()
populates the fields calX, calY, calZ from the first file of the series
|
protected boolean |
queryDetails() |
protected boolean |
queryGeneralInformation() |
protected boolean |
queryInformation() |
protected boolean |
queryNames() |
protected abstract void |
setDefaultMultipleAngles(int defaultAngleChoice) |
protected abstract void |
setDefaultMultipleChannels(int defaultChannelChoice) |
protected abstract void |
setDefaultMultipleIlluminations(int defaultIlluminationChoice) |
protected abstract void |
setDefaultMultipleTimepoints(int defaultTimepointChoice) |
protected abstract boolean |
supportsMultipleAnglesPerFile() |
protected abstract boolean |
supportsMultipleChannelsPerFile() |
protected abstract boolean |
supportsMultipleIlluminationsPerFile() |
protected abstract boolean |
supportsMultipleTimepointsPerFile() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExtendedDescription, getTitle, newInstance
public static final char TIMEPOINT_PATTERN
public static final char CHANNEL_PATTERN
public static final char ILLUMINATION_PATTERN
public static final char ANGLE_PATTERN
protected String[] dimensionChoiceTimePointsTrue
protected String[] dimensionChoiceTimePointsFalse
protected String[] dimensionChoiceChannelsTrue
protected String[] dimensionChoiceChannelsFalse
protected String[] dimensionChoiceIlluminationsTrue
protected String[] dimensionChoiceIlluminationsFalse
protected String[] dimensionChoiceAnglesTrue
protected String[] dimensionChoiceAnglesFalse
protected int hasMultipleAngles
protected int hasMultipleTimePoints
protected int hasMultipleChannels
protected int hasMultipleIlluminations
public static boolean showDebugFileNames
public static String defaultTimepoints
public static String defaultChannels
public static String defaultIlluminations
public static String defaultAngles
protected String timepoints
protected String channels
protected String illuminations
protected String angles
protected String replaceTimepoints
protected String replaceChannels
protected String replaceIlluminations
protected String replaceAngles
protected int numDigitsTimepoints
protected int numDigitsChannels
protected int numDigitsIlluminations
protected int numDigitsAngles
protected ArrayList<int[]> exceptionIds
protected String[] calibrationChoice1
protected String[] calibrationChoice2
public static String[] imglib2Container
public static int defaultContainer
public ImgFactory<? extends NativeType<?>> imgFactory
public static int defaultCalibration1
public static int defaultCalibration2
public int calibration1
public int calibration2
protected HashMap<StackList.ViewSetupPrecursor,StackList.Calibration> calibrations
public static String defaultDirectory
public static String defaultFileNamePattern
protected String directory
protected String fileNamePattern
protected abstract int getDefaultMultipleAngles()
protected abstract int getDefaultMultipleTimepoints()
protected abstract int getDefaultMultipleChannels()
protected abstract int getDefaultMultipleIlluminations()
protected abstract void setDefaultMultipleAngles(int defaultAngleChoice)
protected abstract void setDefaultMultipleTimepoints(int defaultTimepointChoice)
protected abstract void setDefaultMultipleChannels(int defaultChannelChoice)
protected abstract void setDefaultMultipleIlluminations(int defaultIlluminationChoice)
protected abstract boolean supportsMultipleTimepointsPerFile()
protected abstract boolean supportsMultipleChannelsPerFile()
protected abstract boolean supportsMultipleAnglesPerFile()
protected abstract boolean supportsMultipleIlluminationsPerFile()
protected boolean queryInformation()
protected abstract StackImgLoader createAndInitImgLoader(String path, File basePath, ImgFactory<? extends NativeType<?>> imgFactory, SequenceDescription sequenceDescription)
ImgLoader
path
- - The path relative to the basepathbasePath
- - The base path, where XML will be and the image stack aresequenceDescription
- public SpimData2 createDataset()
MultiViewDatasetDefinition
createDataset
in interface MultiViewDatasetDefinition
SpimData
objectprotected static ViewRegistrations createViewRegistrations(Map<ViewId,ViewDescription> viewDescriptionList, double minResolution)
ViewRegistration
object consisting of a list of ViewRegistration
s for all ViewDescription
s that are presentviewDescriptionList
- minResolution
- - the smallest resolution in any dimension (distance between two pixels in the output image will be that wide)protected MissingViews createMissingViews()
ViewSetup
that
are missing at certain TimePoint
s.protected ArrayList<ViewSetup> createViewSetups()
ViewSetup
for the SpimData
object.
The ViewSetup
are defined independent of the TimePoint
,
each TimePoint
should have the same ViewSetup
s. The MissingViews
class defines if some of them are missing for some of the TimePoint
sprotected TimePoints createTimePoints()
TimePoints
for the SpimData
objectprotected boolean queryDetails()
protected boolean debugShowFiles()
protected boolean queryNames() throws ParseException
ParseException
protected String getFileNameFor(int tpID, int chID, int illID, int angleID)
tpID
- chID
- illID
- angleID
- public static String[] getFileNamesFor(String fileNames, String replaceTimepoints, String replaceChannels, String replaceIlluminations, String replaceAngles, String tpName, String chName, String illName, String angleName, int numDigitsTP, int numDigitsCh, int numDigitsIll, int numDigitsAngle)
fileNames
- replaceTimepoints
- replaceChannels
- replaceIlluminations
- replaceAngles
- tpName
- chName
- illName
- angleName
- numDigitsTP
- numDigitsCh
- numDigitsIll
- numDigitsAngle
- protected boolean loadFirstCalibration()
protected boolean loadAllCalibrations()
protected abstract StackList.Calibration loadCalibration(File file)
file
- protected String assembleDefaultPattern()
protected boolean queryGeneralInformation()
Copyright © 2015–2021 Fiji. All rights reserved.