public class Opener extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AVI |
static int |
BMP |
static int |
CUSTOM |
static int |
DICOM |
static int |
FITS |
static int |
GIF |
static int |
JAVA_OR_TEXT |
static int |
JPEG |
static int |
LUT |
static int |
OJJ |
static int |
PGM |
static int |
PNG |
static int |
RAW |
static int |
ROI |
static int |
TABLE |
static int |
TEXT |
static int |
TIFF |
static int |
TIFF_AND_DICOM |
static String[] |
types |
static int |
UNKNOWN |
static int |
ZIP |
Constructor and Description |
---|
Opener() |
Modifier and Type | Method and Description |
---|---|
static void |
convertGrayJpegTo8Bits(ImagePlus imp)
Converts the specified RGB image to 8-bits if the 3 channels are identical.
|
ImagePlus |
deserialize(byte[] bytes)
Deserialize a byte array that was serialized using the FileSaver.serialize().
|
String |
getDir(String path) |
static String |
getFileFormat(String path) |
int |
getFileType(String path)
Attempts to determine the image file type by looking for
'magic numbers' and the file name extension.
|
static String |
getLoadRate(double time,
ImagePlus imp) |
String |
getName(String path) |
static boolean |
getOpenUsingPlugins()
Returns the state of the openUsingPlugins flag.
|
static FileInfo[] |
getTiffFileInfo(String path)
Returns the FileInfo of the specified TIFF file.
|
void |
open()
Displays a file open dialog box and then opens the tiff, dicom,
fits, pgm, jpeg, bmp, gif, lut, roi, or text file selected by
the user.
|
void |
open(String path)
Opens and displays the specified tiff, dicom, fits, pgm, jpeg,
bmp, gif, lut, roi, or text file.
|
boolean |
openAndAddToRecent(String path)
Opens the specified file and adds it to the File/Open Recent menu.
|
ImagePlus |
openImage(String path)
Opens, but does not display, the specified image file
and returns an ImagePlus object object if successful,
or returns null if the file is not in a supported format
or is not found.
|
ImagePlus |
openImage(String path,
int n)
Open the nth image of the specified tiff stack.
|
ImagePlus |
openImage(String directory,
String name)
Attempts to open the specified file as a tiff, bmp, dicom, fits,
pgm, gif or jpeg image.
|
static LUT |
openLut(String filePathOrUrl)
Opens a lookup table (LUT) and returns it as a LUT object, or returns null if there is an error.
|
void |
openMultiple()
Displays a JFileChooser and then opens the tiff, dicom,
fits, pgm, jpeg, bmp, gif, lut, roi, or text files selected by
the user.
|
static void |
openResultsTable(String path)
Opens a tab or comma delimited text file in the Results window.
|
Roi |
openRoi(String path)
Attempts to open the specified ROI, returning null if unsuccessful.
|
static void |
openTable(String path)
Opens a tab or comma delimited text file.
|
ImagePlus |
openTextImage(String dir,
String name)
Opens the specified text file as a float image.
|
ImagePlus |
openTiff(InputStream in,
String name)
Attempts to open the specified inputStream as a
TIFF, returning an ImagePlus object if successful.
|
ImagePlus |
openTiff(String path,
int n)
Opens the nth image of the specified TIFF stack.
|
ImagePlus |
openTiff(String directory,
String name)
Attempts to open the specified file as a tiff.
|
ImagePlus |
openTiffStack(FileInfo[] info)
Attemps to open a tiff file as a stack.
|
ImagePlus |
openURL(String url)
Attempts to open the specified url as a tiff, zip compressed tiff,
dicom, gif or jpeg.
|
static ImagePlus |
openUsingBioFormats(String path)
Opens an image file using the Bio-Formats plugin.
|
ImagePlus |
openWithHandleExtraFileTypes(String path,
int[] fileType) |
ImagePlus |
openZip(String path)
Opens a single TIFF or DICOM contained in a ZIP archive,
or a ZIPed collection of ".roi" files created by the ROI manager.
|
static void |
setOpenUsingPlugins(boolean b)
Open all images using HandleExtraFileTypes.
|
void |
setSilentMode(boolean mode)
The "Opening: path" status message is not displayed in silent mode.
|
static String |
updateUrl(String url)
Can't open imagej.nih.gov URLs due to encryption so redirect to mirror.nih.net.
|
public static final int UNKNOWN
public static final int TIFF
public static final int DICOM
public static final int FITS
public static final int PGM
public static final int JPEG
public static final int GIF
public static final int LUT
public static final int BMP
public static final int ZIP
public static final int JAVA_OR_TEXT
public static final int ROI
public static final int TEXT
public static final int PNG
public static final int TIFF_AND_DICOM
public static final int CUSTOM
public static final int AVI
public static final int OJJ
public static final int TABLE
public static final int RAW
public static final String[] types
public void open()
IJ.open()
,
IJ.open(String)
,
IJ.openImage()
,
IJ.openImage(String)
public void open(String path)
IJ.open(String)
,
IJ.openImage(String)
public void openMultiple()
public ImagePlus openImage(String path)
IJ.openImage(String)
,
IJ.openImage()
public ImagePlus openImage(String path, int n)
IJ.openImage(String,int)
public boolean openAndAddToRecent(String path)
public ImagePlus openImage(String directory, String name)
IJ.openImage(String)
public ImagePlus openTextImage(String dir, String name)
public ImagePlus openURL(String url)
IJ.openImage(String)
public static String updateUrl(String url)
public ImagePlus openWithHandleExtraFileTypes(String path, int[] fileType)
public static void convertGrayJpegTo8Bits(ImagePlus imp)
public ImagePlus openTiffStack(FileInfo[] info)
public ImagePlus openTiff(String directory, String name)
public ImagePlus openTiff(String path, int n)
public static FileInfo[] getTiffFileInfo(String path)
public ImagePlus openTiff(InputStream in, String name)
public ImagePlus openZip(String path)
public ImagePlus deserialize(byte[] bytes)
public Roi openRoi(String path)
public static ImagePlus openUsingBioFormats(String path)
public static LUT openLut(String filePathOrUrl)
ImagePlus.setLut(ij.process.LUT)
public static void openResultsTable(String path)
public static void openTable(String path)
public int getFileType(String path)
public void setSilentMode(boolean mode)
public static void setOpenUsingPlugins(boolean b)
public static boolean getOpenUsingPlugins()
Copyright © 1997–2018 NIH. All rights reserved.