Skip to content

Commit

Permalink
[software] main_ComputeFeatures (avoid input image reloading) openMVG…
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Nov 18, 2016
1 parent ed51d3a commit e2bca0c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/software/SfM/main_ComputeFeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,10 @@ int main(int argc, char **argv)
if(imageMask.Width() == imageGray.Width() && imageMask.Height() == imageGray.Height())
mask = &imageMask;

Image<unsigned char> imageGray;
if (ReadImage(sView_filename.c_str(), &imageGray))
{
// Compute features and descriptors and export them to files
std::unique_ptr<Regions> regions;
image_describer->Describe(imageGray, regions, mask);
image_describer->Save(regions.get(), sFeat, sDesc);
}
// Compute features and descriptors and export them to files
std::unique_ptr<Regions> regions;
image_describer->Describe(imageGray, regions, mask);
image_describer->Save(regions.get(), sFeat, sDesc);
}
#ifdef OPENMVG_USE_OPENMP
#pragma omp critical
Expand Down

0 comments on commit e2bca0c

Please sign in to comment.