mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-01 02:41:42 +00:00
@@ -221,8 +221,10 @@ public class ColoredShapePipeline
|
||||
// If we grabbed it (in color copy mode), make a new Mat of it
|
||||
rawInputMat = new Mat(inputMatPtr);
|
||||
} else {
|
||||
// Otherwise, use a blank/empty mat as placeholder
|
||||
rawInputMat = new Mat();
|
||||
// // Otherwise, use a blank/empty mat as placeholder
|
||||
// rawInputMat = new Mat();
|
||||
// Otherwise, the input mat is frame we got from the camera
|
||||
rawInputMat = frame.image.getMat();
|
||||
}
|
||||
|
||||
// We can skip a few steps if the image is single channel because we've already done them on
|
||||
|
||||
@@ -164,8 +164,10 @@ public class ReflectivePipeline extends CVPipeline<CVPipelineResult, ReflectiveP
|
||||
// If we grabbed it (in color copy mode), make a new Mat of it
|
||||
rawInputMat = new Mat(inputMatPtr);
|
||||
} else {
|
||||
// Otherwise, use a blank/empty mat as placeholder
|
||||
rawInputMat = new Mat();
|
||||
// Otherwise, the input mat is frame we got from the camera
|
||||
rawInputMat = frame.image.getMat();
|
||||
// // Otherwise, use a blank/empty mat as placeholder
|
||||
// rawInputMat = new Mat();
|
||||
}
|
||||
|
||||
// We can skip a few steps if the image is single channel because we've already done them on
|
||||
|
||||
Reference in New Issue
Block a user