public class OpenCvImageUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.bytedeco.javacpp.opencv_core.Mat |
convertByteProcessorToMat(ij.process.ByteProcessor byteProcessor) |
static org.bytedeco.javacpp.opencv_core.Mat |
convertColorProcessorToMat(ij.process.ColorProcessor colorProcessor) |
static org.bytedeco.javacpp.opencv_core.Mat |
convertFloatProcessorToMat(ij.process.FloatProcessor floatProcessor) |
static ij.process.ByteProcessor |
convertMatToByteProcessor(org.bytedeco.javacpp.opencv_core.Mat mat) |
static ij.process.ColorProcessor |
convertMatToColorProcessor(org.bytedeco.javacpp.opencv_core.Mat mat) |
static ij.process.FloatProcessor |
convertMatToFloatProcessor(org.bytedeco.javacpp.opencv_core.Mat mat) |
static ij.process.ShortProcessor |
convertMatToShortProcessor(org.bytedeco.javacpp.opencv_core.Mat mat) |
static org.bytedeco.javacpp.opencv_core.Mat |
convertShortProcessorToMat(ij.process.ShortProcessor shortProcessor) |
static int |
findHeight(Collection<org.bytedeco.javacpp.opencv_core.Mat> images) |
static int |
findHeight(org.bytedeco.javacpp.opencv_core.MatVector images) |
static int |
findNChannels(Map<ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> images) |
static int |
findNFrames(Map<ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> images) |
static int |
findNSlices(Map<ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> images) |
static int |
findWidth(Collection<org.bytedeco.javacpp.opencv_core.Mat> images) |
static int |
findWidth(org.bytedeco.javacpp.opencv_core.MatVector images) |
static void |
forEachIndexedZCTSlice(OpenCvImageData img,
BiConsumer<org.bytedeco.javacpp.opencv_core.Mat,ImageSliceIndex> function,
JIPipeProgressInfo progressInfo)
Runs the function for each Z, C, and T slice.
|
static OpenCvImageData |
generateForEachIndexedZCTSlice(OpenCvImageData img,
BiFunction<org.bytedeco.javacpp.opencv_core.Mat,ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> function,
JIPipeProgressInfo progressInfo)
Runs the function for each Z, C, and T slice.
|
static String |
getTypeName(org.bytedeco.javacpp.opencv_core.Mat mat) |
static org.bytedeco.javacpp.opencv_core.Mat |
toGrayscale(org.bytedeco.javacpp.opencv_core.Mat src,
int type) |
static ij.ImagePlus |
toImagePlus(org.bytedeco.javacpp.opencv_core.Mat mat) |
static org.bytedeco.javacpp.opencv_core.Mat |
toMask(org.bytedeco.javacpp.opencv_core.Mat src) |
static org.bytedeco.javacpp.opencv_core.Mat |
toMat(ij.process.ImageProcessor processor) |
static ij.process.ImageProcessor |
toProcessor(org.bytedeco.javacpp.opencv_core.Mat mat) |
static org.bytedeco.javacpp.opencv_core.Mat |
toType(org.bytedeco.javacpp.opencv_core.Mat src,
OpenCvType type,
OpenCvType... allowedTypes) |
public static int findNSlices(Map<ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> images)
public static int findNFrames(Map<ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> images)
public static int findNChannels(Map<ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> images)
public static int findWidth(Collection<org.bytedeco.javacpp.opencv_core.Mat> images)
public static int findHeight(Collection<org.bytedeco.javacpp.opencv_core.Mat> images)
public static int findWidth(org.bytedeco.javacpp.opencv_core.MatVector images)
public static int findHeight(org.bytedeco.javacpp.opencv_core.MatVector images)
public static org.bytedeco.javacpp.opencv_core.Mat toMat(ij.process.ImageProcessor processor)
public static void forEachIndexedZCTSlice(OpenCvImageData img, BiConsumer<org.bytedeco.javacpp.opencv_core.Mat,ImageSliceIndex> function, JIPipeProgressInfo progressInfo)
img
- the imagefunction
- the function. The indices are ZERO-basedprogressInfo
- the progresspublic static OpenCvImageData generateForEachIndexedZCTSlice(OpenCvImageData img, BiFunction<org.bytedeco.javacpp.opencv_core.Mat,ImageSliceIndex,org.bytedeco.javacpp.opencv_core.Mat> function, JIPipeProgressInfo progressInfo)
img
- the imagefunction
- the function. The indices are ZERO-basedprogressInfo
- the progresspublic static ij.process.ImageProcessor toProcessor(org.bytedeco.javacpp.opencv_core.Mat mat)
public static ij.ImagePlus toImagePlus(org.bytedeco.javacpp.opencv_core.Mat mat)
public static org.bytedeco.javacpp.opencv_core.Mat toGrayscale(org.bytedeco.javacpp.opencv_core.Mat src, int type)
public static org.bytedeco.javacpp.opencv_core.Mat toType(org.bytedeco.javacpp.opencv_core.Mat src, OpenCvType type, OpenCvType... allowedTypes)
public static org.bytedeco.javacpp.opencv_core.Mat toMask(org.bytedeco.javacpp.opencv_core.Mat src)
public static String getTypeName(org.bytedeco.javacpp.opencv_core.Mat mat)
public static org.bytedeco.javacpp.opencv_core.Mat convertByteProcessorToMat(ij.process.ByteProcessor byteProcessor)
public static org.bytedeco.javacpp.opencv_core.Mat convertShortProcessorToMat(ij.process.ShortProcessor shortProcessor)
public static org.bytedeco.javacpp.opencv_core.Mat convertFloatProcessorToMat(ij.process.FloatProcessor floatProcessor)
public static org.bytedeco.javacpp.opencv_core.Mat convertColorProcessorToMat(ij.process.ColorProcessor colorProcessor)
public static ij.process.ByteProcessor convertMatToByteProcessor(org.bytedeco.javacpp.opencv_core.Mat mat)
public static ij.process.ShortProcessor convertMatToShortProcessor(org.bytedeco.javacpp.opencv_core.Mat mat)
public static ij.process.FloatProcessor convertMatToFloatProcessor(org.bytedeco.javacpp.opencv_core.Mat mat)
public static ij.process.ColorProcessor convertMatToColorProcessor(org.bytedeco.javacpp.opencv_core.Mat mat)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.