Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I would recomend using YML rather txt, because YML will be much easier to access afterwards.

To write in yml file your keypoints and descriptrors use his:

fileString = "keypoints.yml"; cv::FileStorage fs(fileCountString, cv::FileStorage::WRITE);

write(fs,"keyPointsSURF", keypointsSURF);
write(fs,"descriptorsSURF", descriptorsSURF);
fs.release()

click to hide/show revision 2
Accidently clicked the submit button :)

I would recomend recommend using YML rather txt, because YML will be much easier to access afterwards.

To write in yml file your keypoints and descriptrors descriptors use his:

 fileString = "keypoints.yml";
cv::FileStorage fs(fileCountString, cv::FileStorage::WRITE);

cv::FileStorage::WRITE);

write(fs,"keyPointsSURF", keypointsSURF);
write(fs,"descriptorsSURF", descriptorsSURF);
fs.release()fs.release()

To access the data as I mentioned above, is very simple:

fs.open("keypoints.yml", FileStorage::READ);
    if(fs.isOpened())
    {
        read(fs["descriptorsSURF"], descriptorsSURF); 
        read(fs["keyPointsSURF"], keypointsSURF);   
}   

The read command can be swapped with this too, I personally prefer the "read" method:
fs["descriptorsSURF"] >> descriptorsSURF;
fs["keyPointsSURF"] >> keypointsSURF;

I would recommend using YML rather txt, because YML will be much easier to access afterwards.

To write in yml file your keypoints and descriptors use his:

 fileString = "keypoints.yml";
 cv::FileStorage fs(fileCountString, cv::FileStorage::WRITE);

 write(fs,"keyPointsSURF", keypointsSURF);              
 write(fs,"descriptorsSURF", descriptorsSURF);  
fs.release()

To access the data as I mentioned above, is very simple:

fs.open("keypoints.yml", FileStorage::READ);
    if(fs.isOpened())
    {
        read(fs["descriptorsSURF"], descriptorsSURF); 
        read(fs["keyPointsSURF"], keypointsSURF);   
}   }

The read command can be swapped with this too, I personally prefer the "read" method: fs["descriptorsSURF"] >> descriptorsSURF; fs["keyPointsSURF"] >> keypointsSURF; keypointsSURF;

I would recommend using YML rather txt, because YML will be much easier to access afterwards.

To write in yml file your keypoints and descriptors use his:

 fileString = "keypoints.yml";
 cv::FileStorage fs(fileCountString, cv::FileStorage::WRITE);

 write(fs,"keyPointsSURF", keypointsSURF);              
 write(fs,"descriptorsSURF", descriptorsSURF);  
fs.release()

To access the data as I mentioned above, is very simple:

fs.open("keypoints.yml", FileStorage::READ);
    if(fs.isOpened())
    {
        read(fs["descriptorsSURF"], descriptorsSURF); 
        read(fs["keyPointsSURF"], keypointsSURF);   
}

The read command can be swapped with this too, I personally prefer the "read" method: method:

fs["descriptorsSURF"] >> descriptorsSURF;
 fs["keyPointsSURF"] >> keypointsSURF;

keypointsSURF;

I would recommend using YML rather than txt, because YML will be much easier to access data afterwards.

To write in yml file your keypoints and descriptors use his:

 fileString = "keypoints.yml";
 cv::FileStorage fs(fileCountString, cv::FileStorage::WRITE);

 write(fs,"keyPointsSURF", keypointsSURF);              
 write(fs,"descriptorsSURF", descriptorsSURF);  
fs.release()

To It's very simnple to access the data as I mentioned above, is very simple:data:

fs.open("keypoints.yml", FileStorage::READ);
    if(fs.isOpened())
    {
        read(fs["descriptorsSURF"], descriptorsSURF); 
        read(fs["keyPointsSURF"], keypointsSURF);   
}

The read command can be swapped with this too, I personally prefer the "read" method:

fs["descriptorsSURF"] >> descriptorsSURF;
fs["keyPointsSURF"] >> keypointsSURF;

I would recommend using YML rather than txt, because with YML it will be much easier to access data afterwards.

To write in yml file your keypoints and descriptors use his:

 fileString = "keypoints.yml";
 cv::FileStorage fs(fileCountString, fs(fileString, cv::FileStorage::WRITE);

 write(fs,"keyPointsSURF", keypointsSURF);              
 write(fs,"descriptorsSURF", descriptorsSURF);  
fs.release()

It's very simnple to access the data:

fs.open("keypoints.yml", FileStorage::READ);
    if(fs.isOpened())
    {
        read(fs["descriptorsSURF"], descriptorsSURF); 
        read(fs["keyPointsSURF"], keypointsSURF);   
}

The read "read" command can be swapped with this too, I personally prefer the "read" method:

fs["descriptorsSURF"] >> descriptorsSURF;
fs["keyPointsSURF"] >> keypointsSURF;

I would recommend using YML rather than txt, because with YML it will be much easier to access data afterwards.

To write in yml file your keypoints and descriptors use his:

 fileString = "keypoints.yml";
 cv::FileStorage fs(fileString, cv::FileStorage::WRITE);

 write(fs,"keyPointsSURF", keypointsSURF);              
 write(fs,"descriptorsSURF", descriptorsSURF);  
fs.release()

It's very simnple to access the data:

fs.open("keypoints.yml", FileStorage::READ);
    if(fs.isOpened())
    {
        read(fs["descriptorsSURF"], descriptorsSURF); 
        read(fs["keyPointsSURF"], keypointsSURF);   
}

fs.release();

The "read" command can be swapped with this too, I personally prefer the "read" method:

fs["descriptorsSURF"] >> descriptorsSURF;
fs["keyPointsSURF"] >> keypointsSURF;

I would recommend using YML rather than txt, because with YML it will be much easier to access data afterwards.

To write in yml file your keypoints and descriptors use his:

 fileString = "keypoints.yml";
 cv::FileStorage fs(fileString, cv::FileStorage::WRITE);

 write(fs,"keyPointsSURF", keypointsSURF);              
 write(fs,"descriptorsSURF", descriptorsSURF);  
fs.release()

It's very simnple to access the data:

 fs.open("keypoints.yml", FileStorage::READ);
     if(fs.isOpened())
     {
         read(fs["descriptorsSURF"], descriptorsSURF); 
         read(fs["keyPointsSURF"], keypointsSURF);   
}
    }   
fs.release();

fs.release();

The "read" command can be swapped with this too, I personally prefer the "read" method:

fs["descriptorsSURF"] >> descriptorsSURF;
fs["keyPointsSURF"] >> keypointsSURF;
click to hide/show revision 9
spelling again, I guess bad day for me

I would recommend using YML rather than txt, because with YML it will be much easier to access data afterwards.

To write in yml file your keypoints and descriptors use his:this:

 fileString = "keypoints.yml";
 cv::FileStorage fs(fileString, cv::FileStorage::WRITE);

 write(fs,"keyPointsSURF", keypointsSURF);              
 write(fs,"descriptorsSURF", descriptorsSURF);  
fs.release()

It's very simnple to access the data:

    fs.open("keypoints.yml", FileStorage::READ);
        if(fs.isOpened())
        {
            read(fs["descriptorsSURF"], descriptorsSURF); 
            read(fs["keyPointsSURF"], keypointsSURF);   
    }   
fs.release();

The "read" command can be swapped with this too, I personally prefer the "read" method:

fs["descriptorsSURF"] >> descriptorsSURF;
fs["keyPointsSURF"] >> keypointsSURF;