Class JsonMatOfDouble
java.lang.Object
org.photonvision.vision.calibration.JsonMatOfDouble
- All Implemented Interfaces:
Releasable
JSON-serializable image. Data is stored as a raw JSON array.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonMatOfDouble
(int rows, int cols, double[] data) JsonMatOfDouble
(int rows, int cols, int type, double[] data) -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonMatOfDouble
fromMat
(org.opencv.core.Mat mat) Returns a JsonMatOfDouble by copying the data from a Mat.org.opencv.core.MatOfDouble
void
release()
toString()
-
Field Details
-
rows
-
cols
-
type
-
data
-
-
Constructor Details
-
JsonMatOfDouble
-
JsonMatOfDouble
-
-
Method Details
-
fromMat
Returns a JsonMatOfDouble by copying the data from a Mat. The Mat type must beCvType.CV_64FC1
.- Parameters:
mat
- The Mat.- Returns:
- The JsonMatOfDouble
-
getAsMatOfDouble
-
getAsWpilibMat
-
release
- Specified by:
release
in interfaceReleasable
-
toString
-