Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Opener Class Reference

Public Member Functions

boolean open ()
 
boolean open (String path)
 
ImagePlus openImage (String path)
 
ImagePlus openImage (String directory, String name)
 
ImagePlus openURL (String url)
 
ImagePlus openTiff (String directory, String name)
 
ImagePlus openTiff (InputStream in, String name)
 
String getName (String path)
 
String getDir (String path)
 

Static Public Member Functions

static void convertGrayJpegTo8Bits (ImagePlus imp)
 

Static Public Attributes

static FileExtensionFilter[] FILE_FILTERS
 
static FileExtensionFilter ALL_FILES_FILTER
 
static File defaultDirectory = null
 

Detailed Description

Opens tiff, dicom, fits, pgm, jpeg, bmp or gif images, and look-up tables, using a file open dialog or a path. Calls HandleExtraFileTypes plugin if the file type is unrecognised.

Definition at line 24 of file Opener.java.

Member Function Documentation

static void convertGrayJpegTo8Bits ( ImagePlus  imp)
inlinestatic

If this image is grayscale, convert it to 8-bits.

Definition at line 332 of file Opener.java.

boolean open ( )
inline

Present a JFileChooser for the user to select a file to open, then open the file and display it

Returns
boolean Whether a file was successfully selected and displayed

Definition at line 93 of file Opener.java.

boolean open ( String  path)
inline

Open and display the specified file

Parameters
stringpath The path of the file to open
Returns
boolean Whether the file was successfully displayed

Definition at line 120 of file Opener.java.

ImagePlus openImage ( String  path)
inline

Get an ImagePlus object from the specified path

Parameters
stringpath The path to look in, may be a url or file path
Returns
ImagePlus The imageplus object from the file

Definition at line 146 of file Opener.java.

ImagePlus openImage ( String  directory,
String  name 
)
inline

Get an ImagePlus object from the specified file in the specified dir

Parameters
stringdirectory The directory the file is in
stringname The name of the file to open
Returns
ImagePlus The imageplus object from the file

Definition at line 167 of file Opener.java.

ImagePlus openTiff ( String  directory,
String  name 
)
inline

Attempts to open the specified file as a tiff. Returns an ImagePlus object if successful.

Definition at line 358 of file Opener.java.

ImagePlus openTiff ( InputStream  in,
String  name 
)
inline

Attempts to open the specified inputStream as a TIFF, returning an ImagePlus object if successful.

Definition at line 376 of file Opener.java.

ImagePlus openURL ( String  url)
inline

Get an imageplus object from a file URL

Parameters
stringurl
Returns
ImagePlus The imageplus object from the file

Definition at line 231 of file Opener.java.


The documentation for this class was generated from the following file: