public class ImpImageData extends Object implements JIPipeData
Constructor and Description |
---|
ImpImageData(BufferedImage image) |
ImpImageData(ij.ImagePlus img) |
ImpImageData(ImpImageData other) |
ImpImageData(List<BufferedImage> images,
int numSlices,
int numFrames,
int numChannels) |
ImpImageData(Map<ImageSliceIndex,BufferedImage> images) |
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
|
int |
getHeight() |
BufferedImage |
getImage(ImageSliceIndex index) |
BufferedImage |
getImage(int i) |
BufferedImage |
getImage(int c,
int z,
int t) |
BufferedImage |
getImageOrExpand(ImageSliceIndex index) |
BufferedImage |
getImageOrExpand(int c,
int z,
int t) |
List<BufferedImage> |
getImages() |
int |
getNumChannels() |
int |
getNumFrames() |
int |
getNumSlices() |
int |
getSize() |
ImageSliceIndex |
getSliceIndex(int index) |
int |
getWidth() |
static ImpImageData |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo) |
boolean |
isHyperstack() |
ij.ImagePlus |
toImagePlus(boolean createCheckerboard,
int checkerboardSize) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, preview, toDetailedString
public ImpImageData(BufferedImage image)
public ImpImageData(Map<ImageSliceIndex,BufferedImage> images)
public ImpImageData(ij.ImagePlus img)
public ImpImageData(List<BufferedImage> images, int numSlices, int numFrames, int numChannels)
public ImpImageData(ImpImageData other)
public List<BufferedImage> getImages()
public int getNumSlices()
public int getNumFrames()
public int getNumChannels()
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 int getWidth()
public int getHeight()
public 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 JIPipeThumbnailData createThumbnail(int width, int height, JIPipeProgressInfo progressInfo)
JIPipeData
createThumbnail
in interface JIPipeData
width
- the widthheight
- the heightprogressInfo
- the progress infopublic static ImpImageData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public ImageSliceIndex getSliceIndex(int index)
public ij.ImagePlus toImagePlus(boolean createCheckerboard, int checkerboardSize)
public BufferedImage getImage(int i)
public BufferedImage getImage(ImageSliceIndex index)
public BufferedImage getImage(int c, int z, int t)
public BufferedImage getImageOrExpand(ImageSliceIndex index)
public BufferedImage getImageOrExpand(int c, int z, int t)
public int getSize()
public boolean isHyperstack()
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.