diff --git a/src/software/SfM/main_ComputeFeatures.cpp b/src/software/SfM/main_ComputeFeatures.cpp index ad57ed5f84..5a5a697f8e 100644 --- a/src/software/SfM/main_ComputeFeatures.cpp +++ b/src/software/SfM/main_ComputeFeatures.cpp @@ -282,14 +282,10 @@ int main(int argc, char **argv) if(imageMask.Width() == imageGray.Width() && imageMask.Height() == imageGray.Height()) mask = &imageMask; - Image imageGray; - if (ReadImage(sView_filename.c_str(), &imageGray)) - { - // Compute features and descriptors and export them to files - std::unique_ptr 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; + image_describer->Describe(imageGray, regions, mask); + image_describer->Save(regions.get(), sFeat, sDesc); } #ifdef OPENMVG_USE_OPENMP #pragma omp critical