Package com.pocolifo.robobase.vision
Class ColorTeller
java.lang.Object
org.openftc.easyopencv.OpenCvPipeline
com.pocolifo.robobase.vision.AbstractResultCvPipeline<SpikePosition>
com.pocolifo.robobase.vision.ColorTeller
-
Field Summary
FieldsFields inherited from class com.pocolifo.robobase.vision.AbstractResultCvPipeline
result
Fields inherited from class org.openftc.easyopencv.OpenCvPipeline
MEMLEAK_DETECTION_ENABLED, MEMLEAK_DETECTION_PIPELINE_SETTLE_DELAY_SECONDS, MEMLEAK_THRESHOLD_MB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
computeColorness
(org.opencv.core.Mat mat) void
init()
Runs when the pipeline is first set.org.opencv.core.Mat
processFrame
(org.opencv.core.Mat input) Methods inherited from class com.pocolifo.robobase.vision.AbstractResultCvPipeline
getResult
Methods inherited from class org.openftc.easyopencv.OpenCvPipeline
getUserContextForDrawHook, init, onDrawFrame, onViewportTapped, requestViewportDrawHook, saveMatToDisk, saveMatToDiskFullPath
-
Field Details
-
colorness
public double colorness
-
-
Constructor Details
-
ColorTeller
public ColorTeller(int extractCol)
-
-
Method Details
-
init
public void init()Description copied from class:AbstractResultCvPipeline
Runs when the pipeline is first set.- Specified by:
init
in classAbstractResultCvPipeline<SpikePosition>
-
computeColorness
public double computeColorness(org.opencv.core.Mat mat) -
processFrame
public org.opencv.core.Mat processFrame(org.opencv.core.Mat input) - Specified by:
processFrame
in classorg.openftc.easyopencv.OpenCvPipeline
- Parameters:
input
- the frame to be processed- Returns:
- the processed frame
-