Skip to content

Instantly share code, notes, and snippets.

@amiltonwong
amiltonwong / 1.txt
Last active January 16, 2021 14:10
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true
netsh interface ip set address name="區域連線" source=static address=192.168.1.188 mask=255.255.255.0 gateway=192.168.1.254 gwmetric=1
netsh interface ip set dnsservers name="區域連線" source=static address=192.168.1.11
#include "rgbdframe.h"
using namespace rgbd_tutor;
int main()
{
ParameterReader para;
FrameReader fr(para);
while( RGBDFrame::Ptr frame = fr.next() )
{
cv::imshow( "image", frame->rgb );
I1 = imread('scene_left.png');
I2 = imread('scene_right.png');
figure
imshow(stereoAnaglyph(I1,I2));
title('Red-cyan composite view of the stereo images');
% disparityRange = [-6 10];
% disparityMap = disparity(rgb2gray(I1),rgb2gray(I2),'BlockSize',15,'DisparityRange',disparityRange);
disparityMap = disparity(rgb2gray(I1),rgb2gray(I2),'BlockSize',15);
----------------------------------------------------------------------
-- This script shows how to train different models on the MNIST
-- dataset, using multiple optimization techniques (SGD, LBFGS)
--
-- This script demonstrates a classical example of training
-- well-known models (convnet, MLP, logistic regression)
-- on a 10-class classification problem.
--
-- It illustrates several points:
-- 1/ description of the model
name: "CaffeNet"
layer {
name: "data"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
clear;
clc;
close all;
strings = {
'airplane'
'automobile'
'bird'
'cat'
'deer'
'dog'
clear ;
clc;
close all;
image_file_name = 't10k-images-idx3-ubyte';
index_file_name = 't10k-labels-idx1-ubyte';
fid1 = fopen(image_file_name,'rb');
fid2 = fopen(index_file_name,'rb');
root@milton-OptiPlex-9010:/data/code2/stereo-vision/stereo_egomotion/main/egomotion_simple# cmake .
-- No build type selected, default to DEBUG
Mode: DEBUG
-- /data/code2/stereo-vision/tracker/mono/config_parser.cc;/data/code2/stereo-vision/tracker/mono/tracker_bfm.cc;/data/code2/stereo-vision/tracker/mono/tracker_stm.cc;/data/code2/stereo-vision/tracker/mono/tracker_bfm_cv.cc;/data/code2/stereo-vision/tracker/mono/birch/klt_util.c;/data/code2/stereo-vision/tracker/mono/birch/klt.c;/data/code2/stereo-vision/tracker/mono/birch/pyramid.c;/data/code2/stereo-vision/tracker/mono/birch/trackFeatures.c;/data/code2/stereo-vision/tracker/mono/birch/storeFeatures.c;/data/code2/stereo-vision/tracker/mono/birch/convolve_unix.c;/data/code2/stereo-vision/tracker/mono/birch/selectGoodFeatures.c;/data/code2/stereo-vision/tracker/mono/birch/error.c
--
-- /data/code2/stereo-vision/stereo_egomotion/main/egomotion_simple/egomotion_simple.cc;/data/code2/stereo-vision/stereo_egomotion/main/egomotion_simple/../../math_helper.cc;/d
left = imread('input/pair2-L.png');
right = imread('input/pair2-R.png');
left_gray = double(rgb2gray(left))./255.0;
right_gray = double(rgb2gray(right))./255.0;
% define image patch location (topleft [row col]) and size
patch_loc = [120 170];
patch_size = [100 100];