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 (from extension) which
is well known to
not be an image file. |
static void |
checkOpening(int resolution,
int sizeX,
int sizeY,
int sizeC,
int sizeZ,
int sizeT,
DataType dataType,
java.lang.String messageSuffix)
Check if we have enough resource to open the image defined by the given size information and
wanted resolution.
|
static void |
checkOpening(loci.formats.ome.OMEXMLMetadata meta,
int serie,
int resolution,
int sizeZ,
int sizeT,
java.lang.String messageSuffix)
Check if we have enough resource to open the image defined by the given metadata information,
serie index and
wanted resolution.
|
static void |
checkOpening(loci.formats.ome.OMEXMLMetadata meta,
int serie,
int resolution,
java.lang.String messageSuffix)
Check if we have enough resource to open the image defined by the given metadata information,
serie index and
wanted resolution.
|
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<Loader.FilePosition> |
getFilePositions(java.util.List<java.lang.String> paths,
boolean dimOrder,
FileFrame loadingFrame)
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(SequenceFileImporter importer,
java.lang.String path,
int serie,
int resolution,
java.awt.Rectangle region,
int minZ,
int maxZ,
int minT,
int maxT,
int channel,
boolean addToRecent,
boolean showProgress)
Load the specified image file 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.util.List<java.lang.String> paths,
int serie,
boolean addToRecent,
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(SequenceFileImporter importer,
java.lang.String path,
int serie,
boolean addToRecent,
boolean showProgress)
Loads the specified image file and return it as a Sequence, it can return
null
if an error occured. |
static Sequence |
loadSequence(SequenceFileImporter importer,
java.lang.String path,
int serie,
int resolution,
java.awt.Rectangle region,
int minZ,
int maxZ,
int minT,
int maxT,
int channel,
boolean addToRecent,
boolean showProgress)
Loads the specified image file and return it as a Sequence, it can return
null
if an error occured. |
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.
|
static int |
selectSerie(SequenceFileImporter importer,
java.lang.String path,
loci.formats.ome.OMEXMLMetadataImpl meta,
int defaultSerie)
Deprecated.
|
static int |
selectSerie(SequenceFileImporter importer,
java.lang.String path,
loci.formats.ome.OMEXMLMetadata meta,
int defaultSerie)
Display the Serie Selection frame for the given image and return the selected serie (single selection).
|
static int[] |
selectSeries(SequenceFileImporter importer,
java.lang.String path,
loci.formats.ome.OMEXMLMetadataImpl meta,
int defaultSerie,
boolean singleSelection)
Display the Serie Selection frame for the given image and returns selected serie(s).
|
static int[] |
selectSeries(SequenceFileImporter importer,
java.lang.String path,
loci.formats.ome.OMEXMLMetadata meta,
int defaultSerie,
boolean singleSelection)
Display the Serie Selection frame for the given image and returns selected serie(s).
|
static void |
setupSequence(Sequence sequence,
java.lang.String path,
boolean multiSerie,
int serie,
java.awt.Rectangle region,
int resolution,
int sizeZ,
int sizeT,
int sizeC,
int minZ,
int maxZ,
int minT,
int maxT,
int channel)
Setup the specified sequence object given the different opening informations
|
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 (from extension) 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)
public static void checkOpening(int resolution, int sizeX, int sizeY, int sizeC, int sizeZ, int sizeT, DataType dataType, java.lang.String messageSuffix) throws java.lang.UnsupportedOperationException, java.lang.OutOfMemoryError
resolution
- wanted image resolution: a value of 0
means full resolution of the
original image while value
1
correspond to the resolution / 2.resolution / 2^value
sizeX
- width of the image region we want to loadsizeY
- height of the image region we want to loadsizeC
- number of channel we want to loadsizeZ
- number of slice we want to load (can be different from original image sizeZ)sizeT
- number of frame we want to load (can be different from original image sizeT)dataType
- pixel data type of the image we want to loadmessageSuffix
- message suffix for the exception if wantedjava.lang.UnsupportedOperationException
- if the XY plane size is >= 2^31 pixelsjava.lang.OutOfMemoryError
- if there is not enough memory to open the imagepublic static void checkOpening(loci.formats.ome.OMEXMLMetadata meta, int serie, int resolution, int sizeZ, int sizeT, java.lang.String messageSuffix) throws java.lang.UnsupportedOperationException, java.lang.OutOfMemoryError
meta
- metadata of the imageserie
- serie indexresolution
- wanted image resolution: a value of 0
means full resolution of the
original image while value
1
correspond to the resolution / 2.resolution / 2^value
sizeZ
- number of slice we want to load (can be different from original image sizeZ)sizeT
- number of frame we want to load (can be different from original image sizeT)messageSuffix
- message suffix for the exception if wantedjava.lang.UnsupportedOperationException
- if the XY plane size is >= 2^31 pixelsjava.lang.OutOfMemoryError
- if there is not enough memory to open the imagepublic static void checkOpening(loci.formats.ome.OMEXMLMetadata meta, int serie, int resolution, java.lang.String messageSuffix) throws java.lang.UnsupportedOperationException, java.lang.OutOfMemoryError
meta
- metadata of the imageserie
- serie indexresolution
- wanted image resolution: a value of 0
means full resolution of the
original image while value
1
correspond to the resolution / 2.resolution / 2^value
messageSuffix
- message suffix for the exception if wantedjava.lang.UnsupportedOperationException
- if the XY plane size is >= 2^31 pixelsjava.lang.OutOfMemoryError
- if there is not enough memory to open the image@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 addToRecent, boolean showProgress)
importer
- Importer used to load the image file (shouldn't be null
).paths
- List of image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).addToRecent
- If set to true the files list will be traced in recent opened sequence.showProgress
- Show progression of loading process.getSequenceFileImporter(String, boolean)
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 (shouldn't be null).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 addToRecent, boolean showProgress)
null
if an error occured.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 if
showProgress
parameter is set to true
otherwise the first
compatible importer will be automatically used.path
- Image file to load.serie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).addToRecent
- If set to true the path will be traced in recent opened sequence.showProgress
- Show progression of loading process.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 if
showProgress
parameter is set to true
otherwise the first
compatible importer will be automatically used.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)
showProgress
parameter is set to true
otherwise the first
compatible importer is automatically used.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.lang.String path, int serie, int resolution, java.awt.Rectangle region, int minZ, int maxZ, int minT, int maxT, int channel, boolean addToRecent, boolean showProgress)
SequenceFileImporter
.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 if
showProgress
parameter is set to true
otherwise the first
compatible importer will be automatically used.path
- image file to loadserie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).resolution
- Wanted resolution level for the image (use 0 if unsure), useful for large imageimage.resolution / (2^resolution)
region
- The 2D region of the image we want to retrieve.null
then the whole XY plane of the image is returned.minZ
- the minimum Z position of the image (slice) we want retrieve (inclusive).maxZ
- the maximum Z position of the image (slice) we want retrieve (inclusive).minT
- the minimum T position of the image (frame) we want retrieve (inclusive).maxT
- the maximum T position of the image (frame) we want retrieve (inclusive).channel
- C position of the image (channel) we want retrieve (-1 means all channel).addToRecent
- If set to true the files list will be traced in recent opened sequence.showProgress
- 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 Sequence loadSequence(SequenceFileImporter importer, java.lang.String path, int serie, int resolution, java.awt.Rectangle region, int minZ, int maxZ, int minT, int maxT, int channel, boolean addToRecent, boolean showProgress)
null
if an error occured.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 if
showProgress
parameter is set to true
otherwise the first
compatible importer will be automatically used.path
- image file to loadserie
- Serie index to load (for multi serie sequence), set to 0 if unsure (default).resolution
- Wanted resolution level for the image (use 0 if unsure), useful for large imageimage.resolution / (2^resolution)
region
- The 2D region of the image we want to retrieve.null
then the whole XY plane of the image is returned.minZ
- the minimum Z position of the image (slice) we want retrieve (inclusive).maxZ
- the maximum Z position of the image (slice) we want retrieve (inclusive).minT
- the minimum T position of the image (frame) we want retrieve (inclusive).maxT
- the maximum T position of the image (frame) we want retrieve (inclusive).channel
- C position of the image (channel) we want retrieve (-1 means all channel).addToRecent
- If set to true the files list will be traced in recent opened sequence.showProgress
- Show progression in loading processpublic static void setupSequence(Sequence sequence, java.lang.String path, boolean multiSerie, int serie, java.awt.Rectangle region, int resolution, int sizeZ, int sizeT, int sizeC, int minZ, int maxZ, int minT, int maxT, int channel)
sequence
- sequence to adjust propertiespath
- image pathmultiSerie
- true
if this Sequence comes from a multi serie datasetserie
- serie indexregion
- Rectangle region we want to load from original imageresolution
- Resolution level to opensizeZ
- original image sizeZsizeT
- original image sizeTsizeC
- original image sizeCminZ
- minimum Z slice wantedmaxZ
- maximum Z slice wantedminT
- minimum T frame wantedmaxT
- maximum T frame wantedchannel
- channel we want to load (-1 for all)public static int[] selectSeries(SequenceFileImporter importer, java.lang.String path, loci.formats.ome.OMEXMLMetadata meta, int defaultSerie, boolean singleSelection) throws UnsupportedFormatException, java.io.IOException
UnsupportedFormatException
java.io.IOException
public static int[] selectSeries(SequenceFileImporter importer, java.lang.String path, loci.formats.ome.OMEXMLMetadataImpl meta, int defaultSerie, boolean singleSelection) throws UnsupportedFormatException, java.io.IOException
UnsupportedFormatException
java.io.IOException
public static int selectSerie(SequenceFileImporter importer, java.lang.String path, loci.formats.ome.OMEXMLMetadata meta, int defaultSerie) throws UnsupportedFormatException, java.io.IOException
-1
if user canceled serie selection.UnsupportedFormatException
java.io.IOException
@Deprecated public static int selectSerie(SequenceFileImporter importer, java.lang.String path, loci.formats.ome.OMEXMLMetadataImpl meta, int defaultSerie) throws UnsupportedFormatException, java.io.IOException
selectSerie(SequenceFileImporter, String, OMEXMLMetadata, int)
insteadUnsupportedFormatException
java.io.IOException
public static java.util.List<Loader.FilePosition> getFilePositions(java.util.List<java.lang.String> paths, boolean dimOrder, FileFrame loadingFrame)
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.loadingFrame
- Loading dialog if any to show progresspublic 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.