Skip to content

Instantly share code, notes, and snippets.

@jun1217
jun1217 / ssim.cpp
Created March 31, 2019 07:19
images ssim check
// PSNR.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream> // Console I/O
#include <sstream> // String to number conversion
#include <opencv2/core/core.hpp> // Basic OpenCV structures
#include <opencv2/imgproc/imgproc.hpp>// Image processing methods for the CPU
@jun1217
jun1217 / svd_image.cpp
Created March 31, 2019 03:31
opencv_svd_image
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main()
{
Mat image = imread("C:/Users/Jun/Desktop/lena.jpg",0);
Mat temp(image.size(), CV_32FC1, Scalar(0));
@jun1217
jun1217 / feature_match.md
Last active March 30, 2019 09:12
opencv_feature_match

  SIFT算法中做特征点匹配的时候就会利用到k-d树。而特征点匹配实际上就是一个通过距离函数在高维矢量之间进行相似性检索的问题。

@jun1217
jun1217 / opencv_feature_match_test.cpp
Last active March 30, 2019 08:42
opencv_match_sort
//原文:https://blog.csdn.net/zilanpotou182/article/details/68061929
#include <iostream>
#include <stdio.h>
#include "opencv2/core.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/core/ocl.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/features2d.hpp"
@jun1217
jun1217 / sfm.py
Created March 5, 2018 12:22 — forked from abidrahmank/sfm.py
SfM.py
import numpy as np
import cv2
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import axes3d
FLANN_INDEX_KDTREE = 0
index_params = dict(algorithm = FLANN_INDEX_KDTREE, trees = 5)
search_params = dict(checks = 50)
flann = cv2.FlannBasedMatcher(index_params, search_params)
@jun1217
jun1217 / SFM.md
Created March 5, 2018 12:09 — forked from patriciogonzalezvivo/SFM.md
SfM Tools

Probably the most straight forward way to start generating Point Clouds from a set of pictures.

VisualSFM is a GUI application for 3D reconstruction using structure from motion (SFM). The reconstruction system integrates several of my previous projects: SIFT on GPU(SiftGPU), Multicore Bundle Adjustment, and Towards Linear-time Incremental Structure from Motion. VisualSFM runs fast by exploiting multicore parallelism for feature detection, feature matching, and bundle adjustment.

For dense reconstruction, this program supports Yasutaka Furukawa's PMVS/CMVS tool chain, and can prepare data for Michal Jancosek's CMP-MVS. In addition, the output of VisualSFM is natively supported by Mathias Rothermel and Konrad Wenzel's [SURE]