🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.core
Class Mat
- java.lang.Object
-
- org.opencv.core.CleanableMat
-
- org.opencv.core.Mat
-
- 既知の直接サブクラス:
MatOfByte,MatOfDMatch,MatOfDouble,MatOfFloat,MatOfFloat4,MatOfFloat6,MatOfInt,MatOfInt4,MatOfKeyPoint,MatOfPoint,MatOfPoint2f,MatOfPoint3,MatOfPoint3f,MatOfRect,MatOfRect2d,MatOfRotatedRect
public class Mat extends CleanableMat
-
-
ネストされたクラスの要約
ネストされたクラス Modifier and Type Class Description static interfaceMat.Atable<T>static classMat.Tuple2<T>static classMat.Tuple3<T>static classMat.Tuple4<T>
-
フィールドの要約
-
Fields inherited from class org.opencv.core.CleanableMat
cleaner, nativeObj
-
-
コンストラクタの要約
コンストラクタ Constructor Description Mat()Mat​(int[] sizes, int type)Mat​(int[] sizes, int type, Scalar s)Mat​(int rows, int cols, int type)Mat​(int rows, int cols, int type, java.nio.ByteBuffer data)Mat​(int rows, int cols, int type, java.nio.ByteBuffer data, long step)Mat​(int rows, int cols, int type, Scalar s)Mat​(long addr)Mat​(Mat m, Range rowRange)Mat​(Mat m, Range[] ranges)Mat​(Mat m, Range rowRange, Range colRange)Mat​(Mat m, Rect roi)Mat​(Size size, int type)Mat​(Size size, int type, Scalar s)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description MatadjustROI​(int dtop, int dbottom, int dleft, int dright)voidassignTo​(Mat m)voidassignTo​(Mat m, int type)<T> Mat.Atable<T>at​(java.lang.Class<T> clazz, int[] idx)<T> Mat.Atable<T>at​(java.lang.Class<T> clazz, int row, int col)intchannels()intcheckVector​(int elemChannels)intcheckVector​(int elemChannels, int depth)intcheckVector​(int elemChannels, int depth, boolean requireContinuous)Matclone()Matcol​(int x)MatcolRange​(int startcol, int endcol)MatcolRange​(Range r)intcols()voidconvertTo​(Mat m, int rtype)voidconvertTo​(Mat m, int rtype, double alpha)voidconvertTo​(Mat m, int rtype, double alpha, double beta)voidcopySize​(Mat m)voidcopyTo​(Mat m)voidcopyTo​(Mat m, Mat mask)voidcreate​(int[] sizes, int type)voidcreate​(int rows, int cols, int type)voidcreate​(Size size, int type)Matcross​(Mat m)longdataAddr()intdepth()Matdiag()Matdiag​(int d)static Matdiag​(Mat d)intdims()doubledot​(Mat m)java.lang.Stringdump()longelemSize()longelemSize1()booleanempty()static Mateye​(int rows, int cols, int type)static Mateye​(Size size, int type)double[]get​(int[] idx)intget​(int[] idx, byte[] data)intget​(int[] idx, double[] data)intget​(int[] idx, float[] data)intget​(int[] idx, int[] data)intget​(int[] idx, short[] data)double[]get​(int row, int col)intget​(int row, int col, byte[] data)intget​(int row, int col, double[] data)intget​(int row, int col, float[] data)intget​(int row, int col, int[] data)intget​(int row, int col, short[] data)longgetNativeObjAddr()intheight()Matinv()Matinv​(int method)booleanisContinuous()booleanisSubmatrix()voidlocateROI​(Size wholeSize, Point ofs)MatmatMul​(Mat m)Matrix multiplicationMatmul​(Mat m)Element-wise multiplicationMatmul​(Mat m, double scale)Element-wise multiplication with scale factorstatic Matones​(int[] sizes, int type)static Matones​(int rows, int cols, int type)static Matones​(Size size, int type)voidpush_back​(Mat m)intput​(int[] idx, byte[] data)intput​(int[] idx, byte[] data, int offset, int length)intput​(int[] idx, double... data)intput​(int[] idx, float[] data)intput​(int[] idx, int[] data)intput​(int[] idx, short[] data)intput​(int row, int col, byte[] data)intput​(int row, int col, byte[] data, int offset, int length)intput​(int row, int col, double... data)intput​(int row, int col, float[] data)intput​(int row, int col, int[] data)intput​(int row, int col, short[] data)voidrelease()Matreshape​(int cn)Matreshape​(int cn, int rows)Matreshape​(int cn, int[] newshape)Matrow​(int y)MatrowRange​(int startrow, int endrow)MatrowRange​(Range r)introws()MatsetTo​(Mat value)MatsetTo​(Mat value, Mat mask)MatsetTo​(Scalar s)MatsetTo​(Scalar value, Mat mask)Sizesize()intsize​(int i)longstep1()longstep1​(int i)Matsubmat​(int rowStart, int rowEnd, int colStart, int colEnd)Matsubmat​(Range[] ranges)Matsubmat​(Range rowRange, Range colRange)Matsubmat​(Rect roi)Matt()java.lang.StringtoString()longtotal()inttype()intwidth()static Matzeros​(int[] sizes, int type)static Matzeros​(int rows, int cols, int type)static Matzeros​(Size size, int type)
-
-
-
コンストラクタの詳細
-
Mat
public Mat​(long addr)
-
Mat
public Mat()
-
Mat
public Mat​(int rows, int cols, int type)
-
Mat
public Mat​(int rows, int cols, int type, java.nio.ByteBuffer data)
-
Mat
public Mat​(int rows, int cols, int type, java.nio.ByteBuffer data, long step)
-
Mat
public Mat​(Size size, int type)
-
Mat
public Mat​(int[] sizes, int type)
-
Mat
public Mat​(int rows, int cols, int type, Scalar s)
-
Mat
public Mat​(int[] sizes, int type, Scalar s)
-
-
メソッドの詳細
-
adjustROI
public Mat adjustROI​(int dtop, int dbottom, int dleft, int dright)
-
assignTo
public void assignTo​(Mat m, int type)
-
assignTo
public void assignTo​(Mat m)
-
channels
public int channels()
-
checkVector
public int checkVector​(int elemChannels, int depth, boolean requireContinuous)
-
checkVector
public int checkVector​(int elemChannels, int depth)
-
checkVector
public int checkVector​(int elemChannels)
-
clone
public Mat clone()
- オーバーライド:
clonein classjava.lang.Object
-
col
public Mat col​(int x)
-
colRange
public Mat colRange​(int startcol, int endcol)
-
dims
public int dims()
-
cols
public int cols()
-
convertTo
public void convertTo​(Mat m, int rtype, double alpha, double beta)
-
convertTo
public void convertTo​(Mat m, int rtype, double alpha)
-
convertTo
public void convertTo​(Mat m, int rtype)
-
copyTo
public void copyTo​(Mat m)
-
create
public void create​(int rows, int cols, int type)
-
create
public void create​(Size size, int type)
-
create
public void create​(int[] sizes, int type)
-
copySize
public void copySize​(Mat m)
-
dataAddr
public long dataAddr()
-
ビット深度
public int depth()
-
diag
public Mat diag​(int d)
-
diag
public Mat diag()
-
dot
public double dot​(Mat m)
-
elemSize
public long elemSize()
-
elemSize1
public long elemSize1()
-
empty
public boolean empty()
-
eye
public static Mat eye​(int rows, int cols, int type)
-
inv
public Mat inv​(int method)
-
inv
public Mat inv()
-
isContinuous
public boolean isContinuous()
-
isSubmatrix
public boolean isSubmatrix()
-
mul
public Mat mul​(Mat m, double scale)
Element-wise multiplication with scale factor- 引数:
m- 要素ごとの乗算を行う相手のオペランドscale- スケール係数- 戻り値:
- 新しいMatオブジェクトへの参照
-
mul
public Mat mul​(Mat m)
Element-wise multiplication- 引数:
m- 要素ごとの乗算を行う相手のオペランド- 戻り値:
- 新しいMatオブジェクトへの参照
-
matMul
public Mat matMul​(Mat m)
Matrix multiplication- 引数:
m- 行列乗算を行う相手のオペランド- 戻り値:
- 新しいMatオブジェクトへの参照
- 関連項目:
Core.gemm(Mat, Mat, double, Mat, double, Mat, int)
-
ones
public static Mat ones​(int rows, int cols, int type)
-
ones
public static Mat ones​(int[] sizes, int type)
-
push_back
public void push_back​(Mat m)
-
release
public void release()
-
reshape
public Mat reshape​(int cn, int rows)
-
reshape
public Mat reshape​(int cn)
-
reshape
public Mat reshape​(int cn, int[] newshape)
-
row
public Mat row​(int y)
-
rowRange
public Mat rowRange​(int startrow, int endrow)
-
rows
public int rows()
-
size
public Size size()
-
size
public int size​(int i)
-
step1
public long step1​(int i)
-
step1
public long step1()
-
submat
public Mat submat​(int rowStart, int rowEnd, int colStart, int colEnd)
-
t
public Mat t()
-
total
public long total()
-
型
public int type()
-
zeros
public static Mat zeros​(int rows, int cols, int type)
-
zeros
public static Mat zeros​(int[] sizes, int type)
-
toString
public java.lang.String toString()
- オーバーライド:
toStringin classjava.lang.Object
-
dump
public java.lang.String dump()
-
put
public int put​(int row, int col, double... data)
-
put
public int put​(int[] idx, double... data)
-
put
public int put​(int row, int col, float[] data)
-
put
public int put​(int[] idx, float[] data)
-
put
public int put​(int row, int col, int[] data)
-
put
public int put​(int[] idx, int[] data)
-
put
public int put​(int row, int col, short[] data)
-
put
public int put​(int[] idx, short[] data)
-
put
public int put​(int row, int col, byte[] data)
-
put
public int put​(int[] idx, byte[] data)
-
put
public int put​(int row, int col, byte[] data, int offset, int length)
-
put
public int put​(int[] idx, byte[] data, int offset, int length)
-
get
public int get​(int row, int col, byte[] data)
-
get
public int get​(int[] idx, byte[] data)
-
get
public int get​(int row, int col, short[] data)
-
get
public int get​(int[] idx, short[] data)
-
get
public int get​(int row, int col, int[] data)
-
get
public int get​(int[] idx, int[] data)
-
get
public int get​(int row, int col, float[] data)
-
get
public int get​(int[] idx, float[] data)
-
get
public int get​(int row, int col, double[] data)
-
get
public int get​(int[] idx, double[] data)
-
get
public double[] get​(int row, int col)
-
get
public double[] get​(int[] idx)
-
height
public int height()
-
width
public int width()
-
at
public <T> Mat.Atable<T> at​(java.lang.Class<T> clazz, int row, int col)
-
at
public <T> Mat.Atable<T> at​(java.lang.Class<T> clazz, int[] idx)
-
getNativeObjAddr
public long getNativeObjAddr()
-
-