I have a matrix of descriptors from FREAK description extraction where each row is a descriptor of 64 elements.
I need to create a vector <int*>
from this matrix due to the system requirements. I tried this so far:
Mat _descriptors;
std::vector<int*> descriptors;
int row;
for (int i=0; i<_descriptors.rows;i++)
{
row =(int) _descriptors.row(i).data;
descriptors.push_back( & row );
}
Is this correct or is there a better way for this?