Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff37320

Browse files
committed
m_maxNumImages & m_maxKeyPointsPerImage in load/save siftimagemanager
1 parentaf903f3 commitff37320

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎FriedLiver/Source/SiftGPU/SIFTImageManager.cpp‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ void SIFTImageManager::saveToFile(const std::string& s)
134134
int validOpt;
135135
MLIB_CUDA_SAFE_CALL(cudaMemcpy(&validOpt, d_validOpt,sizeof(int), cudaMemcpyDeviceToHost));
136136

137-
constunsignedint numImages =getNumImages();
137+
constunsignedint numImages =getNumImages();
138+
out.write((char*)&m_maxNumImages,sizeof(unsignedint));
139+
out.write((char*)&m_maxKeyPointsPerImage,sizeof(unsignedint));
138140
out.write((char*)&numImages,sizeof(unsignedint));
139141
out.write((char*)&m_numKeyPoints,sizeof(unsignedint));
140142
out.write((char*)m_numKeyPointsPerImage.data(),sizeof(unsignedint)*m_numKeyPointsPerImage.size());
@@ -177,6 +179,9 @@ void SIFTImageManager::loadFromFile(const std::string& s)
177179
return;
178180
}
179181

182+
in.read((char*)&m_maxNumImages,sizeof(unsignedint));
183+
in.read((char*)&m_maxKeyPointsPerImage,sizeof(unsignedint));
184+
180185
unsignedint numImages =0;
181186
in.read((char*)&numImages,sizeof(unsignedint));
182187
m_SIFTImagesGPU.resize(numImages);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp