public class CellposeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static ROI2DListData |
cellposeROIJsonToImageJ(Path file)
Converts ROI in a custom Json format to
ROI2DListData |
static CellposeModelInfo |
createModelInfo(List<JIPipeTextAnnotation> textAnnotations,
CellposeModelData modelData,
Path workDirectory,
JIPipeProgressInfo modelProgress) |
static ij.ImagePlus |
extractImageFromInfo(CellposeImageInfo imageInfo,
Path ioPath,
String basePathSuffix,
boolean useBioFormats,
JIPipeProgressInfo progressInfo) |
static ROI2DListData |
extractROIFromInfo(CellposeImageInfo imageInfo,
Path ioPath) |
static String |
getCellposeCustomCode() |
static void |
runCellpose(PythonEnvironment environment,
List<String> arguments,
boolean suppressLogs,
JIPipeProgressInfo progressInfo) |
static void |
saveInputImages(JIPipeInputDataSlot inputSlot,
Set<Integer> inputRows,
boolean enable3D,
boolean enableMultiChannel,
Path io2DPath,
Path io3DPath,
List<CellposeImageInfo> runWith2D,
List<CellposeImageInfo> runWith3D,
JIPipeGraphNode executingNode,
JIPipeProgressInfo progressInfo) |
public static void runCellpose(PythonEnvironment environment, List<String> arguments, boolean suppressLogs, JIPipeProgressInfo progressInfo)
public static String getCellposeCustomCode()
public static ROI2DListData cellposeROIJsonToImageJ(Path file)
ROI2DListData
file
- the ROI filepublic static void saveInputImages(JIPipeInputDataSlot inputSlot, Set<Integer> inputRows, boolean enable3D, boolean enableMultiChannel, Path io2DPath, Path io3DPath, List<CellposeImageInfo> runWith2D, List<CellposeImageInfo> runWith3D, JIPipeGraphNode executingNode, JIPipeProgressInfo progressInfo)
public static CellposeModelInfo createModelInfo(List<JIPipeTextAnnotation> textAnnotations, CellposeModelData modelData, Path workDirectory, JIPipeProgressInfo modelProgress)
public static ij.ImagePlus extractImageFromInfo(CellposeImageInfo imageInfo, Path ioPath, String basePathSuffix, boolean useBioFormats, JIPipeProgressInfo progressInfo)
public static ROI2DListData extractROIFromInfo(CellposeImageInfo imageInfo, Path ioPath)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.