Package loci.plugins.macro
Class LociFunctions
java.lang.Object
loci.plugins.macro.MacroFunctions
loci.plugins.macro.LociFunctions
- All Implemented Interfaces:
ij.macro.MacroExtension,ij.plugin.PlugIn
This class provides macro extensions in ImageJ for Bio-Formats.
Currently, it is a fairly tight mirror to the
IFormatReader interface, with some additional
functions to control the type of format reader used.
Note that public methods in this class can only accept parameters of String,
Double, String[], Double[], and Object[] types. Anything else will prevent
the method from being usable within a macro.- Author:
- Curtis Rueden ctrueden at wisc.edu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ImageProcessorReaderprivate intstatic final StringURL for Javadocs.Fields inherited from class loci.plugins.macro.MacroFunctions
extensionsFields inherited from interface ij.macro.MacroExtension
ARG_ARRAY, ARG_NUMBER, ARG_OPTIONAL, ARG_OUTPUT, ARG_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidfileGroupOption(String id, String[] fileGroupOption) voidgetBuildDate(String[] date) voidgetChannelDimCount(Double[] channelDimCount) voidgetChannelDimLength(Double i, Double[] channelDimLength) voidgetChannelDimType(Double i, String[] channelDimType) voidgetCurrentFile(String[] file) voidgetDimensionOrder(String[] dimOrder) voidgetEffectiveSizeC(Double[] effectiveSizeC) voidvoidgetImageCount(Double[] imageCount) voidgetImageCreationDate(String[] creationDate) voidvoidgetMetadataValue(String field, String[] value) voidgetPixelsPhysicalSizeX(Double[] sizeX) voidgetPixelsPhysicalSizeY(Double[] sizeY) voidgetPixelsPhysicalSizeZ(Double[] sizeZ) voidgetPixelsTimeIncrement(Double[] sizeT) voidgetPixelType(String[] pixelType) private static intgetPlaneIndex(IFormatReader r, int no) Finds the Plane index corresponding to the given image plane number.voidgetPlanePositionX(Double[] positionX, Double no) voidgetPlanePositionY(Double[] positionY, Double no) voidgetPlanePositionZ(Double[] positionZ, Double no) voidgetPlaneTimingDeltaT(Double[] deltaT, Double no) voidgetPlaneTimingExposureTime(Double[] exposureTime, Double no) voidgetRevision(String[] revision) voidgetRGBChannelCount(Double[] rgbChannelCount) voidvoidgetSeriesCount(Double[] seriesCount) voidgetSeriesMetadataValue(String field, String[] value) voidgetSeriesName(String[] seriesName) voidvoidvoidvoidvoidvoidgetUsedFile(Double i, String[] used) voidgetUsedFileCount(Double[] count) voidgetVersionNumber(String[] version) voidgetZCTCoords(Double index, Double[] z, Double[] c, Double[] t) voidisGroupFiles(String[] groupFiles) voidvoidisInterleaved(String[] interleaved) voidisInterleavedSubC(Double subC, String[] interleaved) voidisLittleEndian(String[] littleEndian) voidisMetadataComplete(String[] complete) voidisMetadataFiltered(String[] metadataFiltered) voidisNormalized(Boolean[] normalize) voidisOrderCertain(String[] orderCertain) voidisOriginalMetadataPopulated(Boolean[] populate) voidisThisType(String name, String[] thisType) voidisThisTypeFast(String name, String[] thisType) voidvoidopenImagePlus(String path) voidvoidopenThumbImage(String title, Double no) voidopenThumbImagePlus(String path) voidvoidsetGroupFiles(String groupFiles) voidvoidsetMetadataFiltered(String metadataFiltered) voidsetNormalized(Boolean normalize) voidsetOriginalMetadataPopulated(Boolean populate) voidMethods inherited from class loci.plugins.macro.MacroFunctions
buildExtensions, getExtensionFunctions, handleExtension
-
Field Details
-
URL_JAVADOCS
URL for Javadocs. -
r
-
series
private int series
-
-
Constructor Details
-
LociFunctions
public LociFunctions()
-
-
Method Details
-
getRevision
-
getBuildDate
-
getVersionNumber
-
getImageCount
-
getSizeX
-
getSizeY
-
getSizeZ
-
getSizeC
-
getSizeT
-
getPixelType
-
getEffectiveSizeC
-
getRGBChannelCount
-
isIndexed
-
getChannelDimCount
-
getChannelDimLength
-
getChannelDimType
-
isLittleEndian
-
getDimensionOrder
-
isOrderCertain
-
isInterleaved
-
isInterleavedSubC
-
openImagePlus
-
openThumbImagePlus
-
openThumbImage
- Throws:
FormatExceptionIOException
-
openImage
- Throws:
FormatExceptionIOException
-
openSubImage
public void openSubImage(String title, Double no, Double x, Double y, Double w, Double h) throws FormatException, IOException - Throws:
FormatExceptionIOException
-
close
- Throws:
IOException
-
closeFileOnly
- Throws:
IOException
-
getSeriesCount
-
setSeries
-
getSeries
-
setNormalized
-
isNormalized
-
setOriginalMetadataPopulated
-
isOriginalMetadataPopulated
-
setGroupFiles
-
isGroupFiles
-
isMetadataComplete
-
fileGroupOption
public void fileGroupOption(String id, String[] fileGroupOption) throws FormatException, IOException - Throws:
FormatExceptionIOException
-
getUsedFileCount
-
getUsedFile
-
getCurrentFile
-
getIndex
-
getZCTCoords
-
getMetadataValue
-
getSeriesMetadataValue
-
setMetadataFiltered
-
isMetadataFiltered
-
getFormat
- Throws:
FormatExceptionIOException
-
setId
- Throws:
FormatExceptionIOException
-
isThisType
-
isThisTypeFast
-
getSeriesName
-
getImageCreationDate
-
getPlaneTimingDeltaT
-
getPlaneTimingExposureTime
-
getPlanePositionX
-
getPlanePositionY
-
getPlanePositionZ
-
getPixelsPhysicalSizeX
-
getPixelsPhysicalSizeY
-
getPixelsPhysicalSizeZ
-
getPixelsTimeIncrement
-
run
- Specified by:
runin interfaceij.plugin.PlugIn- Overrides:
runin classMacroFunctions
-
getPlaneIndex
Finds the Plane index corresponding to the given image plane number.
-