Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@berak so there is something i just noticed if according to your code

Mat labels = new Mat(numImages, numClasses, CV_32F, Scalar.all(0)); Mat labels = new Mat( 45, 5 , CV_32F, Scalar.all(0)); <-- this means that

the output of the labels will be something like that

[1, 0, 0, 0, 0; 1, 0, 0, 0, 0; 1, 0, 0, 0, 0; 1, 0, 0, 0, 0; 1, 0, 0, 0, 0; 0, 1, 0, 0, 0; 0, 1, 0, 0, 0; 0, 1, 0, 0, 0; 0, 1, 0, 0, 0; 0, 1, 0, 0, 0; 0, 0, 1, 0, 0; 0, 0, 1, 0, 0; 0, 0, 1, 0, 0; 0, 0, 1, 0, 0; 0, 0, 1, 0, 0; 0, 0, 0, 1, 0; 0, 0, 0, 1, 0; 0, 0, 0, 1, 0; 0, 0, 0, 1, 0; 0, 0, 0, 1, 0; 0, 0, 0, 0, 1; 0, 0, 0, 0, 1; 0, 0, 0, 0, 1; 0, 0, 0, 0, 1; 0, 0, 0, 0, 1; 0, 0, 0, 0, 0; <<--- it wont assign the anymore 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0; 0, 0, 0, 0, 0]

@berak so there is something i just noticed if according to your code

Mat labels = new Mat(numImages, numClasses, CV_32F, Scalar.all(0)); Mat labels = new Mat( 45, 5 , CV_32F, Scalar.all(0)); <-- this means that

the output of the labels will be something like that

[1, 0, 0, 0, 0;
1, 0, 0, 0, 0;
1, 0, 0, 0, 0;
1, 0, 0, 0, 0;
1, 0, 0, 0, 0;
0, 1, 0, 0, 0;
0, 1, 0, 0, 0;
0, 1, 0, 0, 0;
0, 1, 0, 0, 0;
0, 1, 0, 0, 0;
0, 0, 1, 0, 0;
0, 0, 1, 0, 0;
0, 0, 1, 0, 0;
0, 0, 1, 0, 0;
0, 0, 1, 0, 0;
0, 0, 0, 1, 0;
0, 0, 0, 1, 0;
0, 0, 0, 1, 0;
0, 0, 0, 1, 0;
0, 0, 0, 1, 0;
0, 0, 0, 0, 1;
0, 0, 0, 0, 1;
0, 0, 0, 0, 1;
0, 0, 0, 0, 1;
0, 0, 0, 0, 1;
0, 0, 0, 0, 0; <<--- it wont assign the anymore
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0;
0, 0, 0, 0, 0]

0]

@berak so there is something i just noticed if according to your code

Mat labels = new Mat(numImages, numClasses, CV_32F, Scalar.all(0)); Mat labels = new Mat( 45, 5 , CV_32F, Scalar.all(0)); <-- this means that

the output of the labels will be something like that

[1, 0, 0, 0, 0;
 1, 0, 0, 0, 0;
 1, 0, 0, 0, 0;
 1, 0, 0, 0, 0;
 1, 0, 0, 0, 0;
 0, 1, 0, 0, 0;
 0, 1, 0, 0, 0;
 0, 1, 0, 0, 0;
 0, 1, 0, 0, 0;
 0, 1, 0, 0, 0;
 0, 0, 1, 0, 0;
 0, 0, 1, 0, 0;
 0, 0, 1, 0, 0;
 0, 0, 1, 0, 0;
 0, 0, 1, 0, 0;
 0, 0, 0, 1, 0;
 0, 0, 0, 1, 0;
 0, 0, 0, 1, 0;
 0, 0, 0, 1, 0;
 0, 0, 0, 1, 0;
 0, 0, 0, 0, 1;
 0, 0, 0, 0, 1;
 0, 0, 0, 0, 1;
 0, 0, 0, 0, 1;
 0, 0, 0, 0, 1;
 0, 0, 0, 0, 0;    <<--- it wont assign the anymore 
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0;
 0, 0, 0, 0, 0]