public class ROI3DListData extends ArrayList<ROI3D> implements JIPipeData
modCount
Constructor and Description |
---|
ROI3DListData() |
ROI3DListData(ROI3DListData other) |
Modifier and Type | Method and Description |
---|---|
List<ROI3D> |
addFromPopulation(mcib3d.geom.Objects3DPopulation population,
int channel,
int frame)
Adds ROI from a population
|
ij.ImagePlus |
createBlankCanvas(String title,
BitDepth bitDepth) |
ij.ImagePlus |
createBlankCanvas(String title,
int bitDepth) |
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
|
ROI3DListData |
filteredForFrameAndChannel(int channel,
int frame) |
mcib3d.geom.Vector3D[] |
getBounds()
Gets the bounds of the 3D ROI
|
Map<ImageSliceIndex,List<ROI3D>> |
groupByPosition(boolean perChannel,
boolean perFrame)
Groups the ROI by their image positions
|
static ROI3DListData |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo) |
static ROI3DListData |
importData(Path zipFile,
JIPipeProgressInfo progressInfo) |
void |
loadObjectsFromStream(InputStream inputStream,
JIPipeProgressInfo progressInfo)
Copy of the original loadObjects() method adapted to loading from streams
|
void |
logicalAnd() |
void |
logicalOr() |
void |
logicalXor() |
ResultsTableData |
measure(mcib3d.image3d.ImageHandler referenceImage,
int measurements,
boolean physicalUnits,
String columnPrefix,
JIPipeProgressInfo progressInfo) |
void |
outline(ROI3DOutline outline,
boolean ignoreErrors,
JIPipeProgressInfo progressInfo) |
void |
save(Path path) |
void |
saveObjectsToStream(OutputStream stream,
JIPipeProgressInfo progressInfo) |
ROI3DListData |
shallowCopy() |
ij.ImagePlus |
toLabels(ij.ImagePlus referenceImage,
JIPipeProgressInfo progressInfo) |
ij.ImagePlus |
toMask(ij.ImagePlus referenceImage,
JIPipeProgressInfo progressInfo) |
mcib3d.geom.Objects3DPopulation |
toPopulation() |
mcib3d.geom.Objects3DPopulation |
toPopulation(int channel,
int frame) |
ROIListData |
toRoi2D(JIPipeProgressInfo progressInfo) |
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
close, createThumbnail, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, preview, toDetailedString
containsAll, equals, hashCode
parallelStream, stream
public ROI3DListData()
public ROI3DListData(ROI3DListData other)
public static ROI3DListData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public static ROI3DListData importData(Path zipFile, JIPipeProgressInfo progressInfo)
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 void save(Path path)
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 String toString()
toString
in class AbstractCollection<ROI3D>
public Map<ImageSliceIndex,List<ROI3D>> groupByPosition(boolean perChannel, boolean perFrame)
perChannel
- group per channelperFrame
- group per framepublic void loadObjectsFromStream(InputStream inputStream, JIPipeProgressInfo progressInfo)
inputStream
- the input streamprogressInfo
- the progress infopublic void saveObjectsToStream(OutputStream stream, JIPipeProgressInfo progressInfo)
public ResultsTableData measure(mcib3d.image3d.ImageHandler referenceImage, int measurements, boolean physicalUnits, String columnPrefix, JIPipeProgressInfo progressInfo)
public mcib3d.geom.Vector3D[] getBounds()
public mcib3d.geom.Objects3DPopulation toPopulation()
public mcib3d.geom.Objects3DPopulation toPopulation(int channel, int frame)
public ROI3DListData filteredForFrameAndChannel(int channel, int frame)
public List<ROI3D> addFromPopulation(mcib3d.geom.Objects3DPopulation population, int channel, int frame)
population
- the populationchannel
- the channel (one-based)frame
- the frame (one-based)public void logicalAnd()
public void logicalOr()
public void logicalXor()
public ij.ImagePlus createBlankCanvas(String title, int bitDepth)
public ij.ImagePlus toMask(ij.ImagePlus referenceImage, JIPipeProgressInfo progressInfo)
public ij.ImagePlus toLabels(ij.ImagePlus referenceImage, JIPipeProgressInfo progressInfo)
public ROIListData toRoi2D(JIPipeProgressInfo progressInfo)
public void outline(ROI3DOutline outline, boolean ignoreErrors, JIPipeProgressInfo progressInfo)
public ROI3DListData shallowCopy()
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.