I tried to get the N*N matrix. to do that i used following code but printing a one value all the time. any idea to take the correct value of matrix.
I checked the destination mat using imread function which is not null. countervalue. But in the printf comes \377 value which int count=0;
Size s=destination.size();
int count=0;
for(int i=0 ;i<s.height; i++)
{
for (int j=0; j<s.width; j++) {
unsigned char* byte = destination.ptr<unsigned char>(i,j);
count++;
printf("valeue %s ",byte);
printf("\n");
}
}
output
valeue \377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377 .......