This module contains a YAML-based wrapping of the Bytedeco Java interface to OpenCV, with minimal code to provide interoperability with ImgLib2 data structures.
YAML is generated from opencv-ops.yaml using the scijava-ops-ext-parser
component.
To use these Ops simply add a Maven dependency on:
<dependency>
<groupId>org.scijava</groupId>
<artifactId>scijava-ops-opencv</artifactId>
<scope>runtime</scope>
</dependency>Ops can be accessed in one of two ways:
- Classic OpenCV nomenclature, e.g.
cv.GaussianBlur - Aligned with Ops-style namespaces, e.g.
filter.gauss
ImageJ-OpenCV currently only supports single-channel Mats. Thus if you are using multi-channel images, we currently recommend:
- Calling the OpenCV Op as a
Computerwith pre-allocated output - Avoiding interuse of multi-channel
MatsandRandomAccessibleIntervals(or their subclasses)