Class JsonMatOfDouble

java.lang.Object
org.photonvision.vision.calibration.JsonMatOfDouble
All Implemented Interfaces:
Releasable

public class JsonMatOfDouble extends Object implements Releasable
JSON-serializable image. Data is stored as a raw JSON array.
  • 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

      public static JsonMatOfDouble fromMat(org.opencv.core.Mat mat)
    • getAsMat

      public org.opencv.core.Mat getAsMat()
    • getAsMatOfDouble

      public org.opencv.core.MatOfDouble getAsMatOfDouble()
    • getAsWpilibMat

      public <R extends Num, C extends Num> Matrix<R,C> getAsWpilibMat()
    • release

      public void release()
      Specified by:
      release in interface Releasable
    • toString

      public String toString()
      Overrides:
      toString in class Object