@Deprecated public class SetupAggregator extends Object
setups
, i.e., SPIM source angles and fused
datasets from multiple SequenceDescription
s. Also keeps for each
setup the mipmap resolutions and subdivisions to be created.
Note, that added setups are assigned new, consecutive ids starting from 0.Modifier and Type | Field and Description |
---|---|
protected BasicImgLoader |
imgLoader
Deprecated.
An
ImgLoader that forwards to wrapped source sequences. |
protected Map<Integer,ExportMipmapInfo> |
perSetupMipmapInfo
Deprecated.
|
protected ArrayList<ViewRegistration> |
registrations
Deprecated.
|
protected ArrayList<BasicSetupImgLoader<?>> |
setupImgLoaders
Deprecated.
|
protected ArrayList<ViewSetupWrapper> |
setups
Deprecated.
Contains
wrappers around setups in other sequences. |
protected TimePoints |
timepoints
Deprecated.
timepoint id for every timepoint index.
|
Constructor and Description |
---|
SetupAggregator()
Deprecated.
Create an empty aggregator.
|
Modifier and Type | Method and Description |
---|---|
int |
add(BasicViewSetup sourceSetup,
AbstractSequenceDescription<?,?,?> sourceSequence,
ViewRegistrations sourceRegs,
int[][] resolutions,
int[][] subdivisions)
Deprecated.
Add a new
BasicViewSetup to the aggregator. |
void |
addSetup(SpimRegistrationSequence sequence,
int setupIndex,
int[][] resolutions,
int[][] subdivisions)
Deprecated.
|
void |
addSetup(SpimRegistrationSequence sequence,
int setupIndex,
String resolutionsString,
String subdivisionsString)
Deprecated.
|
void |
addSetups(FusionResult fusionResult,
int[][] resolutions,
int[][] subdivisions)
Deprecated.
|
void |
addSetups(FusionResult fusionResult,
String resolutionsString,
String subdivisionsString)
Deprecated.
|
void |
addSetups(SpimRegistrationSequence sequence,
int[][] resolutions,
int[][] subdivisions)
Deprecated.
|
void |
addSetups(SpimRegistrationSequence sequence,
String resolutionsString,
String subdivisionsString)
Deprecated.
|
SpimDataMinimal |
createSpimData(File basePath)
Deprecated.
Create a
SpimDataMinimal for the setups currently aggregated. |
Map<Integer,ExportMipmapInfo> |
getPerSetupMipmapInfo()
Deprecated.
Get the aggregated per-setup
ExportMipmapInfo s. |
protected TimePoints timepoints
protected final ArrayList<ViewRegistration> registrations
protected final ArrayList<ViewSetupWrapper> setups
wrappers
around setups in other sequences.protected final ArrayList<BasicSetupImgLoader<?>> setupImgLoaders
protected final Map<Integer,ExportMipmapInfo> perSetupMipmapInfo
protected final BasicImgLoader imgLoader
ImgLoader
that forwards to wrapped source sequences.public int add(BasicViewSetup sourceSetup, AbstractSequenceDescription<?,?,?> sourceSequence, ViewRegistrations sourceRegs, int[][] resolutions, int[][] subdivisions)
BasicViewSetup
to the aggregator.
Adds a setup of the given source AbstractSequenceDescription
to the
aggregator. A reference to the source sequence is kept and the source
ViewRegistrations
are copied. In the viewer format, every image
is stored in multiple resolutions. The resolutions are described as int[]
arrays defining multiple of original pixel size in every dimension. For
example {1,1,1} is the original resolution, {4,4,2} is downsampled by
factor 4 in X and Y and factor 2 in Z. Each resolution of the image is
stored as a chunked three-dimensional array (each chunk corresponds to
one cell of a CellImg
when the data is loaded). The chunk sizes
are defined by the subdivisions parameter which is an array of int[], one
per resolution. Each int[] array describes the X,Y,Z chunk size for one
resolution.sourceSetup
- the setup to addsourceSequence
- the source sequence to which the given setup refers.sourceRegs
- the view registrations associated with the source sequence.
registrations for the given setup are copied.resolutions
- the set of resolutions to store. each nested int[] array
defines one resolution.subdivisions
- the set of subdivisions to store. each nested int[] array
defines one subdivision.BasicViewSetup
in the aggregator.public SpimDataMinimal createSpimData(File basePath)
SpimDataMinimal
for the setups currently aggregated.
This can be used to write the sequence (see WriteSequenceToHdf5
and
XmlIoAbstractSpimData.toXml(mpicbg.spim.data.generic.AbstractSpimData, File)
basePath
- SpimDataMinimal
with the currently aggregated setups.public Map<Integer,ExportMipmapInfo> getPerSetupMipmapInfo()
ExportMipmapInfo
s.@Deprecated public void addSetup(SpimRegistrationSequence sequence, int setupIndex, String resolutionsString, String subdivisionsString)
SpimRegistrationSequence
to this collection. In the viewer format, every image is stored in
multiple resolutions. The resolutions are described as int[] arrays
defining multiple of original pixel size in every dimension. For
example {1,1,1} is the original resolution, {4,4,2} is downsampled by
factor 4 in X and Y and factor 2 in Z. Each resolution of the image
is stored as a chunked three-dimensional array (each chunk
corresponds to one cell of a CellImg
when the data is
loaded). The chunk sizes are defined by the subdivisions parameter
which is an array of int[], one per resolution. Each int[] array
describes the X,Y,Z chunk size for one resolution.sequence
- a registered spim sequence. see
Scripting.createSpimRegistrationSequence(String, String, String, String, String, int, boolean, double)
setupIndex
- which of the setups of the spim sequence to add.resolutionsString
- the set of resolutions to store, formatted like
"{1,1,1}, {2,2,1}, {4,4,4}" where each "{...}" defines one
resolution.subdivisionsString
- the set of subdivisions to store, formatted like
"{32,32,32}, {16,16,8}, {8,8,8}" where each "{...}"
defines one subdivision.@Deprecated public void addSetup(SpimRegistrationSequence sequence, int setupIndex, int[][] resolutions, int[][] subdivisions)
SpimRegistrationSequence
to this collection. In the viewer format, every image is stored in
multiple resolutions. The resolutions are described as int[] arrays
defining multiple of original pixel size in every dimension. For
example {1,1,1} is the original resolution, {4,4,2} is downsampled by
factor 4 in X and Y and factor 2 in Z. Each resolution of the image
is stored as a chunked three-dimensional array (each chunk
corresponds to one cell of a CellImg
when the data is
loaded). The chunk sizes are defined by the subdivisions parameter
which is an array of int[], one per resolution. Each int[] array
describes the X,Y,Z chunk size for one resolution.sequence
- a registered spim sequence. see
Scripting.createSpimRegistrationSequence(String, String, String, String, String, int, boolean, double)
setupIndex
- which of the setups of the spim sequence to add.resolutions
- the set of resolutions to store. each nested int[] array
defines one resolution.subdivisions
- the set of subdivisions to store. each nested int[] array
defines one subdivision.@Deprecated public void addSetups(SpimRegistrationSequence sequence, String resolutionsString, String subdivisionsString)
SpimRegistrationSequence
to this collection. In the viewer format, every image is stored in
multiple resolutions. The resolutions are described as int[] arrays
defining multiple of original pixel size in every dimension. For
example {1,1,1} is the original resolution, {4,4,2} is downsampled by
factor 4 in X and Y and factor 2 in Z. Each resolution of the image
is stored as a chunked three-dimensional array (each chunk
corresponds to one cell of a CellImg
when the data is
loaded). The chunk sizes are defined by the subdivisions parameter
which is an array of int[], one per resolution. Each int[] array
describes the X,Y,Z chunk size for one resolution.sequence
- a registered spim sequence. see
Scripting.createSpimRegistrationSequence(String, String, String, String, String, int, boolean, double)
resolutionsString
- the set of resolutions to store, formatted like
"{1,1,1}, {2,2,1}, {4,4,4}" where each "{...}" defines one
resolution.subdivisionsString
- the set of subdivisions to store, formatted like
"{32,32,32}, {16,16,8}, {8,8,8}" where each "{...}"
defines one subdivision.@Deprecated public void addSetups(SpimRegistrationSequence sequence, int[][] resolutions, int[][] subdivisions)
SpimRegistrationSequence
to this collection. In the viewer format, every image is stored in
multiple resolutions. The resolutions are described as int[] arrays
defining multiple of original pixel size in every dimension. For
example {1,1,1} is the original resolution, {4,4,2} is downsampled by
factor 4 in X and Y and factor 2 in Z. Each resolution of the image
is stored as a chunked three-dimensional array (each chunk
corresponds to one cell of a CellImg
when the data is
loaded). The chunk sizes are defined by the subdivisions parameter
which is an array of int[], one per resolution. Each int[] array
describes the X,Y,Z chunk size for one resolution.sequence
- a registered spim sequence. see
Scripting.createSpimRegistrationSequence(String, String, String, String, String, int, boolean, double)
resolutions
- the set of resolutions to store. each nested int[] array
defines one resolution.subdivisions
- the set of subdivisions to store. each nested int[] array
defines one subdivision.@Deprecated public void addSetups(FusionResult fusionResult, String resolutionsString, String subdivisionsString)
CellImg
when the data is loaded). The chunk
sizes are defined by the subdivisions parameter which is an array of
int[], one per resolution. Each int[] array describes the X,Y,Z chunk
size for one resolution.fusionResult
- a fused spim sequence.
Scripting.createFusionResult(SpimRegistrationSequence, String, String, int, double, double, Map)
resolutionsString
- the set of resolutions to store, formatted like
"{1,1,1}, {2,2,1}, {4,4,4}" where each "{...}" defines one
resolution.subdivisionsString
- the set of subdivisions to store, formatted like
"{32,32,32}, {16,16,8}, {8,8,8}" where each "{...}"
defines one subdivision.@Deprecated public void addSetups(FusionResult fusionResult, int[][] resolutions, int[][] subdivisions)
CellImg
when the data is
loaded). The chunk sizes are defined by the subdivisions parameter
which is an array of int[], one per resolution. Each int[] array
describes the X,Y,Z chunk size for one resolution.fusionResult
- a fused spim sequence.
Scripting.createSpimRegistrationSequence(String, String, String, String, String, int, boolean, double)
resolutions
- the set of resolutions to store. each nested int[] array
defines one resolution.subdivisions
- the set of subdivisions to store. each nested int[] array
defines one subdivision.Copyright © 2015–2021 Fiji. All rights reserved.