Skip to content

Commit

Permalink
Fix Various Operations being wrong (#595)
Browse files Browse the repository at this point in the history
- CV erode
 - CV dilate
 - CV bitwise_not
  • Loading branch information
JLLeitschuh committed Jun 1, 2016
1 parent c49a7e0 commit 405630c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class CVOperations {
templateFactory.createAllMatTwoSource(opencv_core::bitwise_and)),

new OperationMetaData(CVOperation.defaults("CV bitwise_not", "Calculate per-element bit-wise inversion of an image."),
templateFactory.createAllMatTwoSource(opencv_core::bitwise_not)),
templateFactory.createAllMatOneSource(opencv_core::bitwise_not)),

new OperationMetaData(CVOperation.defaults("CV bitwise_or", "Calculate the per-element bit-wise disjunction of two images."),
templateFactory.createAllMatTwoSource(opencv_core::bitwise_or)),
Expand Down Expand Up @@ -204,7 +204,7 @@ public class CVOperations {
new SocketHint.Builder<>(Scalar.class).identifier("borderValue").initialValueSupplier(opencv_imgproc::morphologyDefaultBorderValue).build(),
SocketHints.Outputs.createMatSocketHint("dst"),
(src, kernel, anchor, iterations, borderType, borderValue, dst) -> {
opencv_imgproc.dilate(src, kernel, dst, anchor, iterations.intValue(), borderType.value, borderValue);
opencv_imgproc.dilate(src, dst, kernel, anchor, iterations.intValue(), borderType.value, borderValue);
}
)),

Expand All @@ -218,7 +218,7 @@ public class CVOperations {
new SocketHint.Builder<>(Scalar.class).identifier("borderValue").initialValueSupplier(opencv_imgproc::morphologyDefaultBorderValue).build(),
SocketHints.Outputs.createMatSocketHint("dst"),
(src, kernel, anchor, iterations, borderType, borderValue, dst) -> {
opencv_imgproc.erode(src, kernel, dst, anchor, iterations.intValue(), borderType.value, borderValue);
opencv_imgproc.erode(src, dst, kernel, anchor, iterations.intValue(), borderType.value, borderValue);
}
)),

Expand Down

0 comments on commit 405630c

Please sign in to comment.