Ask Your Question

freekickchamp's profile - activity

2014-01-24 07:37:54 -0600 asked a question How to make an array element (class mat), where the elements are bitstrings

Hello,

acutally i work with this code:

Mat image = imread("img1.ppm",CV_LOAD_IMAGE_GRAYSCALE);
ORB orb;
vector<key_points>;
Mat descriptors;
orb.detect(image,key_points,Mat());
orb.compute(image,key_points,descriptors);

so the elements from Mat descriptors is uchar (usigned char). So i get for example:

descriptors(1,1)=184

is there any way to get a bitstring for every element like this example

descriptors(1,1)=100111010101

and so on? I need this, because i use ORB and ORB uses BRIEF descriptor

my first try was: Mat descriptors(rows,cols,CV_32FC2); and it fail

please help me

2014-01-13 03:59:25 -0600 asked a question Get every element from a mat without any symbols

Hello,

i would like to get every elemt from a mat without any bracktets ( [,] or ,]

So I create a txt file and write there every element of my mat.

It looks like: [ 91, 28, 129, ...] But i want, that it looks like this example: 91 28 129

How I can do this?