public class FIBSEM_Reader extends Object implements ij.plugin.PlugIn
Modifier and Type | Class and Description |
---|---|
class |
FIBSEM_Reader.FIBSEMData |
Modifier and Type | Field and Description |
---|---|
static boolean |
openAsFloat
Opens it either as:
UnsignedShort with the range [0..65535] where 0 == -10 Volts and 65535 == +10 Volts (default)
Float with a range from -10 Volts to +10 Volts
Note, the voltage might be different in future versions, it is stored in FIBSEMData.detMin and FIBSEMData.detMax
|
Constructor and Description |
---|
FIBSEM_Reader() |
Modifier and Type | Method and Description |
---|---|
FIBSEM_Reader.FIBSEMData |
getHeader() |
static int |
getUnsignedByte(byte signedByte) |
static long |
getUnsignedInt(int signedInt) |
static int |
getUnsignedShort(short signedShort) |
static boolean |
isFIBSEM(File f)
Determines if the given file is a FIB-SEM file based on the magic number (first 4 bytes)
|
static void |
main(String[] args) |
FIBSEM_Reader.FIBSEMData |
parseHeader(FileInputStream file)
Parses the header and sets the
FileInputStream to right location where the raw image data starts |
ij.ImagePlus |
readFIBSEM(FIBSEM_Reader.FIBSEMData header,
FileInputStream file,
boolean openAsFloat) |
void |
run(String filename) |
public static boolean openAsFloat
public FIBSEM_Reader.FIBSEMData getHeader()
public void run(String filename)
run
in interface ij.plugin.PlugIn
public static boolean isFIBSEM(File f)
f
- - the Filepublic ij.ImagePlus readFIBSEM(FIBSEM_Reader.FIBSEMData header, FileInputStream file, boolean openAsFloat) throws IOException
IOException
public FIBSEM_Reader.FIBSEMData parseHeader(FileInputStream file) throws IOException
FileInputStream
to right location where the raw image data startsfile
- - the input fileFIBSEM_Reader.FIBSEMData
that contains all meta-data or null if the magic number (file id) does not matchIOException
public static long getUnsignedInt(int signedInt)
public static int getUnsignedShort(short signedShort)
public static int getUnsignedByte(byte signedByte)
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.