public class OMEImageData extends Object implements JIPipeData
Constructor and Description |
---|
OMEImageData(ij.ImagePlus image,
ROIListData rois,
ome.xml.meta.OMEXMLMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
JIPipeThumbnailData |
createThumbnail(int width,
int height,
JIPipeProgressInfo progressInfo)
This function generates a thumbnail for this data
Can return null
|
void |
display(String displayName,
JIPipeWorkbench workbench,
JIPipeDataSource source)
This function should display the data in the GUI.
|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
void |
exportData(JIPipeWriteDataStorage storage,
String name,
boolean forceName,
JIPipeProgressInfo progressInfo)
Saves the data to a folder
|
ij.ImagePlus |
getDuplicateImage()
Returns a duplicate of the contained image
|
OMEExporterSettings |
getExporterSettings() |
ij.ImagePlus |
getImage() |
ome.xml.meta.OMEXMLMetadata |
getMetadata() |
ROIListData |
getRois() |
static OMEImageData |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo) |
static void |
OMEExport(OMEImageData imageData,
Path outputPath,
OMEExporterSettings settings)
Copy of the run method in
Exporter that allows configuration via a parameter object |
Component |
preview(int width,
int height)
This function generates a preview component for usage within the GUI
Can return null
|
void |
setExporterSettings(OMEExporterSettings exporterSettings) |
static void |
simpleOMEExport(ij.ImagePlus imp,
Path outputPath)
Copy of the run method in
Exporter , as the plugin code really depends on some UI interaction
We also simplified the code, as JIPipe outputs very standard files |
static OMEImageData |
simpleOMEImport(Path targetFile) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, toDetailedString
public OMEImageData(ij.ImagePlus image, ROIListData rois, ome.xml.meta.OMEXMLMetadata metadata)
public static OMEImageData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public static OMEImageData simpleOMEImport(Path targetFile)
public static void OMEExport(OMEImageData imageData, Path outputPath, OMEExporterSettings settings)
Exporter
that allows configuration via a parameter objectoutputPath
- the output pathsettings
- the parameterspublic static void simpleOMEExport(ij.ImagePlus imp, Path outputPath)
Exporter
, as the plugin code really depends on some UI interaction
We also simplified the code, as JIPipe outputs very standard filesimp
- the imageoutputPath
- the output pathpublic Component preview(int width, int height)
JIPipeData
preview
in interface JIPipeData
width
- the target widthheight
- the target heightpublic JIPipeThumbnailData createThumbnail(int width, int height, JIPipeProgressInfo progressInfo)
JIPipeData
createThumbnail
in interface JIPipeData
width
- the widthheight
- the heightprogressInfo
- the progress infopublic ij.ImagePlus getImage()
public ROIListData getRois()
public ome.xml.meta.OMEXMLMetadata getMetadata()
public OMEExporterSettings getExporterSettings()
public void setExporterSettings(OMEExporterSettings exporterSettings)
public void exportData(JIPipeWriteDataStorage storage, String name, boolean forceName, JIPipeProgressInfo progressInfo)
JIPipeData
exportData
in interface JIPipeData
storage
- The storage where the data should be writtenname
- A name reference that can be used to generate filename(s)forceName
- If enabled, the data is saved potentially destructively. Generated files must always contain the name parameter. This is used to collect results for humans or other algorithms.progressInfo
- the progresspublic JIPipeData duplicate(JIPipeProgressInfo progressInfo)
JIPipeData
duplicate
in interface JIPipeData
progressInfo
- the progress of duplicating the datapublic void display(String displayName, JIPipeWorkbench workbench, JIPipeDataSource source)
JIPipeData
JIPipeDataDisplayOperation
that can be registered separately.
This item will always be shown as "Default" in the list of operations.display
in interface JIPipeData
displayName
- a name that can be usedworkbench
- the workbenchsource
- optional source of the data. Can be null or any kind of data type (e.g. JIPipeDataSlot
)public ij.ImagePlus getDuplicateImage()
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.