资源简介

NISwGSP (natural image stitching with the global similarity prior)算法采用局部扭曲模型,用网格网格引导每个图像的变形。目标函数用于指定经线的所需特征。除了良好的对齐和最小的局部失真之外,我们还在目标函数中添加了全局相似性。该先验约束每个图像的扭曲,使其类似于整体的相似变换。选择相似性变换对结果的自然性至关重要。我们提出了为每个图像选择合适的比例和旋转的方法。所有图像的扭曲被一起解决,以最小化全局失真。

资源截图

代码片段和文件信息

//
//  main.cpp
//  UglyMan_Stitching
//
//  Created by uglyman.nothinglo on 2015/8/15.
//  Copyright (c) 2015 nothinglo. All rights reserved.
//

#include 
#include “NISwGSP_Stitching.h“
#include “TimeCalculator.h“

using namespace std;

int main(int argc const char * argv[]) {

    Eigen::initParallel(); /* remember to turn off “Hardware Multi-Threading */
    cout << “nThreads = “ << Eigen::nbThreads() << endl;
    cout << “[#Images : “ << argc - 1 << “]“ << endl;

    TimeCalculator timer;
    for(int i = 1; i < argc; ++i) {
        cout << “i = “ << i << “ [Images : “ << argv[i] << “]“ << endl;
        MultiImages multi_images(argv[i] LINES_FILTER_WIDTH LINES_FILTER_LENGTH);
        
        timer.start();
        /* 2D */
        NISwGSP_Stitching niswgsp(multi_images);
        niswgsp.setWeightToAlignmentTerm(1);
        niswgsp.setWeightToLocalSimilarityTerm(0.75);
        niswgsp.setWeightToGlobalSimilarityTerm(6 20 GLOBAL_ROTATION_2D_METHOD);
        niswgsp.writeImage(niswgsp.solve(BLEND_AVERAGE) BLENDING_METHODS_NAME[BLEND_AVERAGE]);
        niswgsp.writeImage(niswgsp.solve(BLEND_LINEAR)  BLENDING_METHODS_NAME[BLEND_LINEAR]);
        /* 3D */
        niswgsp.setWeightToAlignmentTerm(1);
        niswgsp.setWeightToLocalSimilarityTerm(0.75);
        niswgsp.setWeightToGlobalSimilarityTerm(6 20 GLOBAL_ROTATION_3D_METHOD);
        niswgsp.writeImage(niswgsp.solve(BLEND_AVERAGE) BLENDING_METHODS_NAME[BLEND_AVERAGE]);
        niswgsp.writeImage(niswgsp.solve(BLEND_LINEAR)  BLENDING_METHODS_NAME[BLEND_LINEAR]);
        timer.end(“[NISwGSP] “ + multi_images.parameter.file_name);
    }
    return 0;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-15 06:47  NISwGSP-master\
     文件        9509  2018-05-15 06:47  NISwGSP-master\README.md
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\
     文件       86915  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\project.pbxproj
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\project.xcworkspace\
     文件         170  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\project.xcworkspace\contents.xcworkspacedata
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\project.xcworkspace\xcuserdata\
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\project.xcworkspace\xcuserdata\nothinglo.xcuserdatad\
     文件       30801  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\project.xcworkspace\xcuserdata\nothinglo.xcuserdatad\UserInterfaceState.xcuserstate
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\xcuserdata\
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\xcuserdata\nothinglo.xcuserdatad\
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\xcuserdata\nothinglo.xcuserdatad\xcdebugger\
     文件          91  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\xcuserdata\nothinglo.xcuserdatad\xcdebugger\Breakpoints_v2.xcbkptlist
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\xcuserdata\nothinglo.xcuserdatad\xcschemes\
     文件        4386  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\xcuserdata\nothinglo.xcuserdatad\xcschemes\UglyMan_NISwGSP_Stitching.xcscheme
     文件         497  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching.xcodeproj\xcuserdata\nothinglo.xcuserdatad\xcschemes\xcschememanagement.plist
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\
     文件        3113  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Configure.h
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\
     文件         812  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\ColorMap.cpp
     文件         492  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\ColorMap.h
     文件         270  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\ErrorController.cpp
     文件         415  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\ErrorController.h
     文件        1552  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\ImageDebugger.cpp
     文件         531  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\ImageDebugger.h
     文件         482  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\TimeCalculator.cpp
     文件         561  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Debugger\TimeCalculator.h
     目录           0  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Feature\
     文件        3344  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Feature\FeatureController.cpp
     文件         938  2018-05-15 06:47  NISwGSP-master\UglyMan_NISwGSP_Stitching\UglyMan_NISwGSP_Stitching\Feature\FeatureController.h
............此处省略635个文件信息

评论

共有 条评论

相关资源