This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* R: [0, 255] | |
* G: [0, 255] | |
* B: [0, 255] | |
* | |
* H: [0.0, 360.0) | |
* S: [0.0, 1.0] | |
* V: [0.0, 1.0] | |
* | |
* If output is RGB of ByteImage3, then R, G, B is scaled to [0, 255]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1213 910 | |
3 | |
data/input/STA_2713.JPG | |
data/input/STB_2714.JPG | |
data/input/STC_2715.JPG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/opencv.hpp> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <assert.h> | |
using namespace std; | |
using namespace cv; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ReadImages(vector<PanoImage> *pano_images); | |
int main(int argc, char **argv) | |
{ | |
vector <PanoImage> pano_images; | |
ReadImages(&pano_images); | |
// Some error checking | |
for (size_t i = 0; i < pano_images.size(); ++i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
968 648 | |
5 | |
sample/001.jpg 729.25 | |
sample/002.jpg 729.25 | |
sample/003.jpg 729.25 | |
sample/004.jpg 729.25 | |
sample/005.jpg 729.25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(SimplePanoStitcher) | |
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}") | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) | |
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) | |
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) | |
find_package(OpenCV REQUIRED core imgproc highgui calib3d features2d nonfree) | |
include_directories(${OpenCV_INCLUDE_DIRS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_library(lmfit STATIC | |
lmmin.c lmcurve.c | |
lmmin.h lmstruct.h lmcurve.h | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void FindMatches(const Mat &img1, const Mat &img2, vector<MatchPair> &ret_matches) | |
{ | |
Mat grey1, grey2; | |
cvtColor(img1, grey1, CV_BGR2GRAY); | |
cvtColor(img2, grey2, CV_BGR2GRAY); | |
// Detecting keypoints | |
Ptr<FeatureDetector> detector = FeatureDetector::create("SURF"); | |
Ptr<DescriptorExtractor> descriptorExtractor = DescriptorExtractor::create("SURF"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
""" | |
Author: Jeremy M. Stober | |
Program: SOFTMAX.PY | |
Date: Wednesday, February 29 2012 | |
Description: Simple softmax function. | |
""" | |
import numpy as np | |
npa = np.array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import os, sys, getopt | |
# Main path to your caffe installation | |
caffe_root = '/path/to/your/caffe/' | |
# Model prototxt file | |
model_prototxt = caffe_root + 'models/bvlc_googlenet/deploy.prototxt' | |
# Model caffemodel file |
OlderNewer