Class ThresholdOperation<O extends ThresholdOperation<O>>
- java.lang.Object
-
- edu.wpi.grip.core.operations.composite.ThresholdOperation<O>
-
- All Implemented Interfaces:
Operation
- Direct Known Subclasses:
HSLThresholdOperation
,HSVThresholdOperation
,RGBThresholdOperation
public abstract class ThresholdOperation<O extends ThresholdOperation<O>> extends java.lang.Object implements Operation
-
-
Field Summary
Fields Modifier and Type Field Description protected org.bytedeco.javacpp.opencv_core.Mat[]
dataArray
-
Constructor Summary
Constructors Constructor Description ThresholdOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.bytedeco.javacpp.opencv_core.Mat
reallocateMatIfInputSizeOrWidthChanged(org.bytedeco.javacpp.opencv_core.Mat[] dataArray, int index, org.bytedeco.javacpp.opencv_core.Scalar value, org.bytedeco.javacpp.opencv_core.Mat input)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.wpi.grip.core.Operation
cleanUp, getInputSockets, getOutputSockets, perform
-
-
-
-
Method Detail
-
reallocateMatIfInputSizeOrWidthChanged
protected org.bytedeco.javacpp.opencv_core.Mat reallocateMatIfInputSizeOrWidthChanged(org.bytedeco.javacpp.opencv_core.Mat[] dataArray, int index, org.bytedeco.javacpp.opencv_core.Scalar value, org.bytedeco.javacpp.opencv_core.Mat input)
- Parameters:
dataArray
- The array with the element that should be re-allocatedindex
- The index of the data array that should be inspectedvalue
- The value that should be assigned to the mat regardless of being reallocatedinput
- The input matrix that the dataArray element should be compared against- Returns:
- Either the old mat with the value assigned or a newly created Matrix.
-
-