Merge pull request #3965 from Dikay900:2_4_diff_to_master_2
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
#ifdef __APPLE__
|
||||
#include <OpenGL/gl.h>
|
||||
#else
|
||||
#if defined _MSC_VER && _MSC_VER >= 1600
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
|
||||
|
@@ -87,7 +87,7 @@ int main( int argc, char** argv ) {
|
||||
|
||||
// DESCRIPTOR
|
||||
// Our proposed FREAK descriptor
|
||||
// (roation invariance, scale invariance, pattern radius corresponding to SMALLEST_KP_SIZE,
|
||||
// (rotation invariance, scale invariance, pattern radius corresponding to SMALLEST_KP_SIZE,
|
||||
// number of octaves, optional vector containing the selected pairs)
|
||||
// FREAK extractor(true, true, 22, 4, std::vector<int>());
|
||||
FREAK extractor;
|
||||
|
@@ -159,7 +159,18 @@ int main(int argc, char** argv)
|
||||
Mat img1 = imread(img1_filename, color_mode);
|
||||
Mat img2 = imread(img2_filename, color_mode);
|
||||
|
||||
if( scale != 1.f )
|
||||
if (img1.empty())
|
||||
{
|
||||
printf("Command-line parameter error: could not load the first input image file\n");
|
||||
return -1;
|
||||
}
|
||||
if (img2.empty())
|
||||
{
|
||||
printf("Command-line parameter error: could not load the second input image file\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (scale != 1.f)
|
||||
{
|
||||
Mat temp1, temp2;
|
||||
int method = scale < 1 ? INTER_AREA : INTER_CUBIC;
|
||||
|
@@ -516,7 +516,7 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
vector<Mat> rmats;
|
||||
for (size_t i = 0; i < cameras.size(); ++i)
|
||||
rmats.push_back(cameras[i].R);
|
||||
rmats.push_back(cameras[i].R.clone());
|
||||
waveCorrect(rmats, wave_correct);
|
||||
for (size_t i = 0; i < cameras.size(); ++i)
|
||||
cameras[i].R = rmats[i];
|
||||
|
Reference in New Issue
Block a user