public class Loader extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Loader.FilePosition |
Constructor and Description |
---|
Loader() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDiscardImageFile(java.lang.String path)
Returns
true if the specified path describes a file type which is well known to
not be an image file. |
static FileImporter |
getFileImporter(java.util.List<FileImporter> importers,
java.lang.String path,
boolean useFirstFound)
Returns the appropriate file importer for the specified file.
|
static FileImporter |
getFileImporter(java.lang.String path,
boolean useFirstFound)
Returns the appropriate file importer for the specified file.
|
static java.util.List<FileImporter> |
getFileImporters()
Returns all available resource (non image) importer which take file as input.
|
static java.util.Map<FileImporter,java.util.List<java.lang.String>> |
getFileImporters(java.util.List<FileImporter> importers,
java.util.List<java.lang.String> paths,
boolean useFirstFound)
Returns a Map containing the appropriate file importer for the specified file.
|
static java.util.List<FileImporter> |
getFileImporters(java.util.List<FileImporter> importers,
java.lang.String path)
Returns all file importer which can open the specified file.
|
static java.util.Map<FileImporter,java.util.List<java.lang.String>> |
getFileImporters(java.util.List<java.lang.String> paths,
boolean useFirstFound)
Returns a Map containing the appropriate file importer for the specified file.
|
static java.util.List<FileImporter> |
getFileImporters(java.lang.String path)
Returns all file importer which can open the specified file.
|
static java.util.List<Loader.FilePosition> |
getFilePositions(java.util.List<java.lang.String> paths,
boolean dimOrder)
Sort the specified image files from their name and return their corresponding Sequence
position information.
|
static java.util.List<Importer> |
getImporters()
Returns all available resource importer.
|
static loci.formats.ome.OMEXMLMetadataImpl |
getMetaData(java.io.File file)
Deprecated.
Use
getMetaData(String) instead. |
static loci.formats.ome.OMEXMLMetadataImpl |
getMetaData(SequenceFileImporter importer,
java.lang.String path)
Loads and returns metadata of the specified image file with given importer.
|
static loci.formats.ome.OMEXMLMetadataImpl |
getMetaData(java.lang.String path)
Loads and returns metadata of the specified image file.
|
static loci.formats.IFormatReader |
getReader(java.lang.String path)
Deprecated.
Use
getSequenceFileImporters(String) instead. |
static SequenceFileImporter |
getSequenceFileImporter(java.util.List<SequenceFileImporter> importers,
java.lang.String path)
Deprecated.
|
static SequenceFileImporter |
getSequenceFileImporter(java.util.List<SequenceFileImporter> importers,
java.lang.String path,
boolean useFirstFound)
Returns the appropriate sequence file importer for the specified file.
|
static SequenceFileImporter |
getSequenceFileImporter(java.lang.String path)
Deprecated.
|
static SequenceFileImporter |
getSequenceFileImporter(java.lang.String path,
boolean useFirstFound)
Returns the appropriate sequence file importer for the specified file.
|
static java.util.List<SequenceFileImporter> |
getSequenceFileImporters()
Returns all available sequence importer which take file as input.
|
static java.util.Map<SequenceFileImporter,java.util.List<java.lang.String>> |
getSequenceFileImporters(java.util.List<SequenceFileImporter> importers,
java.util.List<java.lang.String> paths,
boolean useFirstFound)
Returns a Map containing the appropriate sequence file importer for the specified files.
|
static java.util.List<SequenceFileImporter> |
getSequenceFileImporters(java.util.List<SequenceFileImporter> importers,
java.lang.String path)
Returns all sequence file importer which can open the specified file.
|
static java.util.Map<SequenceFileImporter,java.util.List<java.lang.String>> |
getSequenceFileImporters(java.util.List<java.lang.String> paths,
boolean useFirstFound)
Returns a Map containing the appropriate sequence file importer for the specified file.
|
static java.util.List<SequenceFileImporter> |
getSequenceFileImporters(java.lang.String path)
Returns all sequence file importer which can open the specified file.
|
static java.util.List<SequenceIdImporter> |
getSequenceIdImporters()
Returns all available sequence importer which take id as input.
|
static java.util.List<SequenceImporter> |
getSequenceImporters()
Returns all available sequence importer (different from
SequenceIdImporter ). |
static java.util.List<java.lang.String> |
getSupportedFiles(SequenceFileImporter importer,
java.util.List<java.lang.String> paths)
Returns path which are supported by the specified imported for the given list of paths.
|
static boolean |
isImageFile(java.lang.String path)
Deprecated.
Use
isSupportedImageFile(String) instead. |
static boolean |
isSupportedImageFile(java.lang.String path)
Returns true if the specified file is a supported image file.
|
static void |
load(java.io.File file)
Deprecated.
Use
load(String, boolean) instead. |
static void |
load(java.io.File[] files,
boolean separate,
boolean autoOrder,
boolean showProgress)
Deprecated.
Use
load(List, boolean, boolean, boolean) instead. |
static void |
load(java.io.File file,
boolean showProgress)
Deprecated.
Use
load(String, boolean) instead. |
static void |
load(FileImporter importer,
java.util.List<java.lang.String> paths,
boolean showProgress)
Load the specified files with the given
FileImporter . |
static void |
load(java.util.List<java.io.File> files)
Deprecated.
Use
load(List, boolean, boolean, boolean) instead. |
static void |
load(java.util.List<java.io.File> files,
boolean separate)
Deprecated.
Use
load(List, boolean, boolean, boolean) instead. |
static void |
load(java.util.List<java.io.File> files,
boolean separate,
boolean showProgress)
Deprecated.
Use
load(List, boolean, boolean, boolean) instead. |
static void |
load(java.util.List<java.lang.String> paths,
boolean separate,
boolean autoOrder,
boolean showProgress)
Load the specified files (asynchronous process) by using automatically the appropriate
FileImporter or SequenceFileImporter . |
static void |
load(SequenceFileImporter importer,
java.util.List<java.lang.String> paths,
boolean separate,
boolean autoOrder,
boolean showProgress)
Load the specified image files with the given
SequenceFileImporter . |
static void |
load(java.lang.String path,
boolean showProgress)
Load the specified file (asynchronous process) by using automatically the appropriate
FileImporter or SequenceFileImporter . |
static IcyBufferedImage |
loadImage(java.io.File file)
Deprecated.
Use
loadImage(String) instead. |
static IcyBufferedImage |
loadImage(java.io.File file,
int z,
int t)
Deprecated.
Use
loadImage(String, int, int) instead. |
static IcyBufferedImage |
loadImage(loci.formats.IFormatReader reader)
Deprecated.
Use
IcyBufferedImage.createFrom(IFormatReader, int, int) with Z and T
parameters set to 0. |
static IcyBufferedImage |
loadImage(loci.formats.IFormatReader reader,
int z,
int t)
Deprecated.
Use
IcyBufferedImage.createFrom(IFormatReader, int, int) instead. |
static IcyBufferedImage |
loadImage(SequenceFileImporter importer,
java.lang.String path,
int serie,
int z,
int t)
Load and return the image at given position from the specified file path.
|
static IcyBufferedImage |
loadImage(java.lang.String path)
Load and return a single image from the specified file path.
|
static IcyBufferedImage |
loadImage(java.lang.String path,
int z,
int t)
Deprecated.
Use
loadImage(String, int, int, int) instead. |
static IcyBufferedImage |
loadImage(java.lang.String path,
int serie,
int z,
int t)
Load and return the image at given position from the specified file path.
|
static Sequence |
loadSequence(java.io.File file)
Deprecated.
Use
loadSequence(File, int, boolean) instead. |
static Sequence |
loadSequence(java.io.File[] files,
int serie,
boolean showProgress)
Deprecated.
|
static Sequence |
loadSequence(java.io.File file,
boolean showProgress)
Deprecated.
Use
loadSequence(File, int, boolean) instead. |
static Sequence |
loadSequence(java.io.File file,
int serie,
boolean showProgress)
Deprecated.
Use
loadSequence(String, int, boolean) instead. |
static Sequence |
loadSequence(java.util.List<java.io.File> files)
Deprecated.
Use
loadSequence(File[], int, boolean) instead. |
static Sequence |
loadSequence(java.util.List<java.io.File> files,
boolean showProgress)
Deprecated.
Use
loadSequence(File[], int, boolean) instead. |
static Sequence |
loadSequence(java.util.List<java.io.File> files,
boolean display,
boolean addToRecent)
Deprecated.
Use
loadSequence(File[], int, boolean) instead or
load(File, boolean) if you want to display the resulting sequence. |
static Sequence |
loadSequence(java.util.List<java.lang.String> paths,
int serie,
boolean showProgress)
Load a sequence from the specified list of file and returns it.
|
static Sequence |
loadSequence(SequenceFileImporter importer,
java.util.List<java.lang.String> paths,
int serie,
boolean showProgress)
Load a sequence from the specified list of file and returns it.
|
static Sequence |
loadSequence(SequenceFileImporter importer,
java.lang.String path,
int serie,
boolean showProgress)
Load a sequence from the specified file.
|
static Sequence |
loadSequence(java.lang.String path,
int serie,
boolean showProgress)
Load a sequence from the specified file.
|
static Sequence[] |
loadSequences(java.io.File[] files,
int[] series,
boolean separate,
boolean autoOrder,
boolean showProgress)
Deprecated.
|
static Sequence[] |
loadSequences(java.io.File[] files,
int serie,
boolean separate,
boolean autoOrder,
boolean showProgress)
Deprecated.
|
static Sequence[] |
loadSequences(java.io.File file,
int[] series,
boolean showProgress)
Deprecated.
Use
loadSequence(File, int, boolean) instead. |
static java.util.List<Sequence> |
loadSequences(java.io.File file,
java.util.List<java.lang.Integer> series)
Deprecated.
Use
loadSequences(File, int[], boolean) instead. |
static java.util.List<Sequence> |
loadSequences(java.io.File file,
java.util.List<java.lang.Integer> series,
boolean showProgress)
Deprecated.
Use
loadSequences(File, int[], boolean) instead. |
static java.util.List<Sequence> |
loadSequences(java.io.File file,
java.util.List<java.lang.Integer> series,
boolean display,
boolean addToRecent)
Deprecated.
Use
loadSequences(File, int[], boolean) instead. |
static java.util.List<Sequence> |
loadSequences(java.util.List<java.io.File> files,
boolean separate)
Deprecated.
|
static java.util.List<Sequence> |
loadSequences(java.util.List<java.io.File> files,
boolean separate,
boolean showProgress)
Deprecated.
|
static java.util.List<Sequence> |
loadSequences(java.util.List<java.io.File> files,
boolean separate,
boolean display,
boolean addToRecent)
Deprecated.
|
static java.util.List<Sequence> |
loadSequences(java.util.List<java.io.File> files,
java.util.List<java.lang.Integer> series)
Deprecated.
|
static java.util.List<Sequence> |
loadSequences(java.util.List<java.io.File> files,
java.util.List<java.lang.Integer> series,
boolean separate)
Deprecated.
|
static java.util.List<Sequence> |
loadSequences(java.util.List<java.io.File> files,
java.util.List<java.lang.Integer> series,
boolean separate,
boolean showProgress)
Deprecated.
|
static java.util.List<Sequence> |
loadSequences(java.util.List<java.io.File> files,
java.util.List<java.lang.Integer> series,
boolean separate,
boolean autoOrder,
boolean showProgress)
Deprecated.
|
static java.util.List<Sequence> |
loadSequences(java.util.List<java.lang.String> paths,
int serie,
boolean separate,
boolean autoOrder,
boolean addToRecent,
boolean showProgress)
Loads a list of sequence from the specified list of file and returns them.
|
static java.util.List<Sequence> |
loadSequences(SequenceFileImporter importer,
java.util.List<java.lang.String> paths,
int serie,
boolean separate,
boolean autoOrder,
boolean addToRecent,
boolean showProgress)
Load a list of sequence from the specified list of file with the given
SequenceFileImporter and returns them. |
static IcyBufferedImage |
loadThumbnail(SequenceFileImporter importer,
java.lang.String path,
int serie)
Returns a thumbnail of the specified image file path.
|
static IcyBufferedImage |
loadThumbnail(java.lang.String path,
int serie)
Returns a thumbnail of the specified image file path.
|
static FileImporter |
selectFileImporter(java.util.List<FileImporter> importers,
java.lang.String path)
Display a dialog to let the user select the appropriate file importer for the specified file.
|
static SequenceFileImporter |
selectSequenceFileImporter(java.util.List<SequenceFileImporter> importers,
java.lang.String path)
Display a dialog to let the user select the appropriate sequence file importer for the
specified file.
|
public Loader()
public static java.util.List<Importer> getImporters()
public static java.util.List<FileImporter> getFileImporters()
public static java.util.Map<FileImporter,java.util.List<java.lang.String>> getFileImporters(java.util.List<FileImporter> importers, java.util.List<java.lang.String> paths, boolean useFirstFound)
importers
- the base list of importer we want to test to open file.paths
- the list of file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match for a file.public static java.util.Map<FileImporter,java.util.List<java.lang.String>> getFileImporters(java.util.List<java.lang.String> paths, boolean useFirstFound)
paths
- the list of file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match for a file.public static java.util.List<FileImporter> getFileImporters(java.util.List<FileImporter> importers, java.lang.String path)
public static java.util.List<FileImporter> getFileImporters(java.lang.String path)
public static FileImporter getFileImporter(java.util.List<FileImporter> importers, java.lang.String path, boolean useFirstFound)
null
if no importer can open the file.importers
- the base list of importer we want to test to open file.path
- the file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match.getFileImporters(List, String)
public static FileImporter getFileImporter(java.lang.String path, boolean useFirstFound)
null
if no importer can open the file.path
- the file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match.getFileImporters(String)
public static FileImporter selectFileImporter(java.util.List<FileImporter> importers, java.lang.String path)
public static java.util.List<SequenceImporter> getSequenceImporters()
SequenceIdImporter
).public static java.util.List<SequenceIdImporter> getSequenceIdImporters()
public static java.util.List<SequenceFileImporter> getSequenceFileImporters()
public static java.util.Map<SequenceFileImporter,java.util.List<java.lang.String>> getSequenceFileImporters(java.util.List<SequenceFileImporter> importers, java.util.List<java.lang.String> paths, boolean useFirstFound)
importers
- the base list of importer we want to test to open file.paths
- the list of file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match for a file.public static java.util.Map<SequenceFileImporter,java.util.List<java.lang.String>> getSequenceFileImporters(java.util.List<java.lang.String> paths, boolean useFirstFound)
paths
- the list of file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match for a file.public static java.util.List<SequenceFileImporter> getSequenceFileImporters(java.util.List<SequenceFileImporter> importers, java.lang.String path)
public static java.util.List<SequenceFileImporter> getSequenceFileImporters(java.lang.String path)
public static SequenceFileImporter getSequenceFileImporter(java.util.List<SequenceFileImporter> importers, java.lang.String path, boolean useFirstFound)
null
if no importer can open the file.importers
- the base list of importer we want to test to open file.path
- the file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match.getSequenceFileImporters(List, String)
public static SequenceFileImporter getSequenceFileImporter(java.lang.String path, boolean useFirstFound)
null
if no importer can open the file.path
- the file we want to retrieve importer for.useFirstFound
- if set to true
then the first matching importer is automatically selected
otherwise a dialog appears to let the user to choose the correct importer when
severals importers match.getSequenceFileImporters(String)
@Deprecated public static SequenceFileImporter getSequenceFileImporter(java.util.List<SequenceFileImporter> importers, java.lang.String path)
getSequenceFileImporter(List, String, boolean)
@Deprecated public static SequenceFileImporter getSequenceFileImporter(java.lang.String path)
getSequenceFileImporter(String, boolean)
public static SequenceFileImporter selectSequenceFileImporter(java.util.List<SequenceFileImporter> importers, java.lang.String path)
public static boolean canDiscardImageFile(java.lang.String path)
true
if the specified path describes a file type which is well known to
not be an image file.public static boolean isSupportedImageFile(java.lang.String path)
@Deprecated public static boolean isImageFile(java.lang.String path)
isSupportedImageFile(String)
instead.public static java.util.List<java.lang.String> getSupportedFiles(SequenceFileImporter importer, java.util.List<java.lang.String> paths)
@Deprecated public static loci.formats.IFormatReader getReader(java.lang.String path) throws loci.formats.FormatException, java.io.IOException
getSequenceFileImporters(String)
instead.loci.formats.FormatException
java.io.IOException
public static loci.formats.ome.OMEXMLMetadataImpl getMetaData(SequenceFileImporter importer, java.lang.String path) throws UnsupportedFormatException, java.io.IOException
null
if the specified file is not a valid or supported) image
file.UnsupportedFormatException
java.io.IOException
public static loci.formats.ome.OMEXMLMetadataImpl getMetaData(java.lang.String path) throws UnsupportedFormatException, java.io.IOException
UnsupportedFormatException
java.io.IOException
@Deprecated public static loci.formats.ome.OMEXMLMetadataImpl getMetaData(java.io.File file) throws UnsupportedFormatException, java.io.IOException
getMetaData(String)
instead.UnsupportedFormatException
java.io.IOException
public static IcyBufferedImage loadThumbnail(SequenceFileImporter importer, java.lang.String path, int serie) throws UnsupportedFormatException, java.io.IOException
null
if the specified file is not a valid or supported image file.importer
- Importer used to open and load the thumbnail from the image file.path
- image file path.serie
- Serie index we want to retrieve thumbnail from (for multi serie image).UnsupportedFormatException
java.io.IOException
public static IcyBufferedImage loadThumbnail(java.lang.String path, int serie) throws UnsupportedFormatException, java.io.IOException
path
- image file path.serie
- Serie index we want to retrieve thumbnail from (for multi serie image).UnsupportedFormatException
java.io.IOException
@Deprecated public static IcyBufferedImage loadImage(loci.formats.IFormatReader reader, int z, int t) throws loci.formats.FormatException, java.io.IOException
IcyBufferedImage.createFrom(IFormatReader, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage loadImage(loci.formats.IFormatReader reader) throws loci.formats.FormatException, java.io.IOException
IcyBufferedImage.createFrom(IFormatReader, int, int)
with Z and T
parameters set to 0.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage loadImage(java.io.File file, int z, int t) throws loci.formats.FormatException, java.io.IOException
loadImage(String, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage loadImage(java.io.File file) throws UnsupportedFormatException, java.io.IOException
loadImage(String)
instead.UnsupportedFormatException
java.io.IOException
@Deprecated public static IcyBufferedImage loadImage(java.lang.String path, int z, int t) throws loci.formats.FormatException, java.io.IOException
loadImage(String, int, int, int)
instead.loci.formats.FormatException
java.io.IOException
public static IcyBufferedImage loadImage(SequenceFileImporter importer, java.lang.String path, int serie, int z, int t) throws UnsupportedFormatException, java.io.IOException
importer
- Importer used to open and load the image file.path
- image file path.serie
- Serie index we want to retrieve image from (for multi serie image).z
- Z position of the image to open.t
- T position of the image to open.java.io.IOException
UnsupportedFormatException
public static IcyBufferedImage loadImage(java.lang.String path, int serie, int z, int t) throws UnsupportedFormatException, java.io.IOException
getSequenceFileImporter(String, boolean)
method and
directly work through the returned ImageProvider
interface.path
- image file path.serie
- Serie index we want to retrieve image from (for multi serie image).z
- Z position of the image to open.t
- T position of the image to open.java.io.IOException
UnsupportedFormatException
public static IcyBufferedImage loadImage(java.lang.String path) throws UnsupportedFormatException, java.io.IOException
UnsupportedFormatException
java.io.IOException
@Deprecated public static Sequence[] loadSequences(java.io.File[] files, int[] series, boolean separate, boolean autoOrder, boolean showProgress)
loadSequences(File[], int, boolean, boolean, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.util.List<java.io.File> files, java.util.List<java.lang.Integer> series, boolean separate, boolean autoOrder, boolean showProgress)
loadSequences(File[], int[], boolean, boolean, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.util.List<java.io.File> files, java.util.List<java.lang.Integer> series, boolean separate, boolean showProgress)
loadSequences(File[], int[], boolean, boolean, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.util.List<java.io.File> files, java.util.List<java.lang.Integer> series, boolean separate)
loadSequences(File[], int[], boolean, boolean, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.util.List<java.io.File> files, java.util.List<java.lang.Integer> series)
loadSequences(File[], int[], boolean, boolean, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.util.List<java.io.File> files, boolean separate, boolean showProgress)
loadSequences(File[], int[], boolean, boolean, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.util.List<java.io.File> files, boolean separate)
loadSequences(File[], int[], boolean, boolean, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.util.List<java.io.File> files, boolean separate, boolean display, boolean addToRecent)
loadSequences(File[], int[], boolean, boolean, boolean)
instead.@Deprecated public static Sequence[] loadSequences(java.io.File file, int[] series, boolean showProgress)
loadSequence(File, int, boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.io.File file, java.util.List<java.lang.Integer> series, boolean showProgress)
loadSequences(File, int[], boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.io.File file, java.util.List<java.lang.Integer> series)
loadSequences(File, int[], boolean)
instead.@Deprecated public static java.util.List<Sequence> loadSequences(java.io.File file, java.util.List<java.lang.Integer> series, boolean display, boolean addToRecent)
loadSequences(File, int[], boolean)
instead.@Deprecated public static Sequence loadSequence(java.util.List<java.io.File> files, boolean showProgress)
loadSequence(File[], int, boolean)
instead.@Deprecated public static Sequence loadSequence(java.util.List<java.io.File> files)
loadSequence(File[], int, boolean)
instead.@Deprecated public static Sequence loadSequence(java.util.List<java.io.File> files, boolean display, boolean addToRecent)
loadSequence(File[], int, boolean)
instead or
load(File, boolean)
if you want to display the resulting sequence.@Deprecated public static Sequence loadSequence(java.io.File file, boolean showProgress)
loadSequence(File, int, boolean)
instead.@Deprecated public static Sequence loadSequence(java.io.File file)
loadSequence(File, int, boolean)
instead.@Deprecated public static Sequence[] loadSequences(java.io.File[] files, int serie, boolean separate, boolean autoOrder, boolean showProgress)
loadSequences(List, int, boolean, boolean, boolean, boolean)
instead.@Deprecated public static Sequence loadSequence(java.io.File[] files, int serie, boolean showProgress)
files
- List of image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).showProgress
- Show progression of loading process.@Deprecated public static Sequence loadSequence(java.io.File file, int serie, boolean showProgress)
loadSequence(String, int, boolean)
instead.public static java.util.List<Sequence> loadSequences(SequenceFileImporter importer, java.util.List<java.lang.String> paths, int serie, boolean separate, boolean autoOrder, boolean addToRecent, boolean showProgress)
SequenceFileImporter
and returns them.null
.importer
- Importer used to open and load image files.null
the loader will search for a compatible importer and if
several importers match the user will have to select the appropriate one from a
selection dialog.paths
- List of image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).separate
- Force image to be loaded in separate sequence.autoOrder
- Try to order image in sequence from their filenameaddToRecent
- If set to true the files list will be traced in recent opened sequence.showProgress
- Show progression of loading process.public static java.util.List<Sequence> loadSequences(java.util.List<java.lang.String> paths, int serie, boolean separate, boolean autoOrder, boolean addToRecent, boolean showProgress)
paths
- List of image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).separate
- Force image to be loaded in separate sequence.autoOrder
- Try to order image in sequence from their filenameaddToRecent
- If set to true the files list will be traced in recent opened sequence.showProgress
- Show progression of loading process.public static Sequence loadSequence(SequenceFileImporter importer, java.util.List<java.lang.String> paths, int serie, boolean showProgress)
importer
- Importer used to load the image file.null
the loader will search for a compatible importer and if
several importers match the user will have to select the appropriate one from a
selection dialog.paths
- List of image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).showProgress
- Show progression of loading process.getSequenceFileImporter(String, boolean)
public static Sequence loadSequence(java.util.List<java.lang.String> paths, int serie, boolean showProgress)
paths
- List of image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).showProgress
- Show progression of loading process.getSequenceFileImporter(String, boolean)
public static Sequence loadSequence(SequenceFileImporter importer, java.lang.String path, int serie, boolean showProgress)
importer
- Importer used to load the image file.null
the loader will search for a compatible importer and if
several importers match the user will have to select the appropriate one from a
selection dialog.path
- Image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).showProgress
- Show progression of loading process.public static Sequence loadSequence(java.lang.String path, int serie, boolean showProgress)
path
- Image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).showProgress
- Show progression of loading process.@Deprecated public static void load(java.util.List<java.io.File> files)
load(List, boolean, boolean, boolean)
instead.@Deprecated public static void load(java.util.List<java.io.File> files, boolean separate)
load(List, boolean, boolean, boolean)
instead.@Deprecated public static void load(java.util.List<java.io.File> files, boolean separate, boolean showProgress)
load(List, boolean, boolean, boolean)
instead.@Deprecated public static void load(java.io.File file)
load(String, boolean)
instead.@Deprecated public static void load(java.io.File[] files, boolean separate, boolean autoOrder, boolean showProgress)
load(List, boolean, boolean, boolean)
instead.@Deprecated public static void load(java.io.File file, boolean showProgress)
load(String, boolean)
instead.public static void load(FileImporter importer, java.util.List<java.lang.String> paths, boolean showProgress)
FileImporter
.importer
- Importer used to open and load files.null
the loader will search for a compatible importer and if
several importers match the user will have to select the appropriate one from a
selection dialog.paths
- list of file to loadshowProgress
- Show progression in loading processpublic static void load(SequenceFileImporter importer, java.util.List<java.lang.String> paths, boolean separate, boolean autoOrder, boolean showProgress)
SequenceFileImporter
.importer
- Importer used to open and load image files.null
the loader will search for a compatible importer and if
several importers match the user will have to select the appropriate one from a
selection dialog.paths
- list of image file to loadseparate
- Force image to be loaded in separate sequenceautoOrder
- Try to order image in sequence from their filenameshowProgress
- Show progression in loading processpublic static void load(java.util.List<java.lang.String> paths, boolean separate, boolean autoOrder, boolean showProgress)
FileImporter
or SequenceFileImporter
. If several importers match to open the
file the user will have to select the appropriate one from a selection dialog.false
the loader try to set image in the same sequence.true
each image is loaded in a separate sequence.paths
- list of file to loadseparate
- Force image to be loaded in separate sequence (image files only)autoOrder
- Try to order image in sequence from their filename (image files only)showProgress
- Show progression in loading processpublic static void load(java.lang.String path, boolean showProgress)
FileImporter
or SequenceFileImporter
. If several importers match to open the
file the user will have to select the appropriate one from a selection dialog.path
- file to loadshowProgress
- Show progression of loading process.public static java.util.List<Loader.FilePosition> getFilePositions(java.util.List<java.lang.String> paths, boolean dimOrder)
paths
- image files we want to sortdimOrder
- if true we try to determine the Z, T and C image position as well else
only simple T ordering is done.