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
-
Constructor Summary
ConstructorDescriptionJsonMatOfDouble
(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) org.opencv.core.Mat
getAsMat()
org.opencv.core.MatOfDouble
static double[]
getDataFromMat
(org.opencv.core.Mat mat) void
release()
toString()
-
Field Details
-
rows
public final int rows -
cols
public final int cols -
type
public final int type -
data
public final double[] data
-
-
Constructor Details
-
JsonMatOfDouble
public JsonMatOfDouble(int rows, int cols, double[] data) -
JsonMatOfDouble
public JsonMatOfDouble(int rows, int cols, int type, double[] data)
-
-
Method Details
-
getDataFromMat
public static double[] getDataFromMat(org.opencv.core.Mat mat) -
fromMat
-
getAsMat
public org.opencv.core.Mat getAsMat() -
getAsMatOfDouble
public org.opencv.core.MatOfDouble getAsMatOfDouble() -
getAsWpilibMat
-
release
public void release()- Specified by:
release
in interfaceReleasable
-
toString
-