Skip to content

Add own points to calculation #1383

Answered by markxma1
markxma1 asked this question in Q&A
Discussion options

You must be logged in to vote

I hava added points as SHIFT format (created for each image ViewID.shift.feat/desc file and one 0.matches.txt file where are point matches stored.).

feat file:
x y 0 10 (Line id is the point id, last one is size. I have set all point to 10.)

desc file:

void saveDescsToBinFile(const std::string &sfileNameDescs, size_t nbFeats)
{
	std::ofstream file(sfileNameDescs.c_str(), std::ios::out | std::ios::binary);
	if (!file.is_open())
	{
		throw std::runtime_error("could not open file " + sfileNameDescs);
	}
	//Write the number of descriptor
	const std::size_t cardDesc = nbFeats;
	file.write((const char *)&cardDesc, sizeof(std::size_t));
	for (int j = 0; j < nbFeats; ++j)
	{
		for (int i = 0; i <…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by markxma1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant