edit rgb2grayを使用してソースファイルを開くことができますが、表示方法がわからない別の関数rgb2gray.mが表示されました。 行54-55以下の機能が含まれています。 if threeD
I = images.internal.rgb2graymex(X);
私はこのrgb2graymex関数のソースコードを表示するにはどうすればよいですか?
各行列のサイズが異なる行列のセル配列を反復処理するC++ mex関数を記述しようとしています。 MATLABでは、私は、次のコードを使用してこれを行うことができ:ここ function Z = myFunction(X, Z, B)
for i = 1:size(X, 1)
for j = 1:size(X, 2)
for k = 1:size(X, 3)
"純粋な" C++(OpenCV)にmexFunction()を実装しようとしていますが、返される値はmxGetPr()ではありません。 void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
int *D = new int[N*L];
// where N
実際には、次のコードのmxGetPr(prhs [3])[i]の値は何ですか?実際のデータの最初の要素に void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
int *D = new int[100];
// prhs[3] is a 10x10 matrix