View UbuntuROS14.04.sh
#! /bin/bash
sudo apt-get update
sudo apt-get install openbox tmux cmake vim git suckless-tools
git clone --recursive https://github.com/pppoe/Vim-Bash-Configuration
~/Vim-Bash-Configuration/make_symbolic_links.sh ~/Vim-Bash-Configuration/
sudo apt-get remove resolvconf update-manager network-manager
sudo apt-get install openssh-server
sudo apt-get install libudev-dev libusb-1.0-0-dev
# ROS
View export_3DDFA.m
output_root = 'extracted';
mkdir(output_root);
num_lms = 68;
lines = textread('flist', '%s');
num_lines = length(lines);
for ff = 1:num_lines
fpath = lines{ff};
View Convert COFW dataset
## http://www.vision.caltech.edu/xpburgos/ICCV13/
output_dets_f = './dets-COFW-train.txt'
image_root = './COFW-train-';
load('COFW_train.mat');
imgs = IsTr;
bboxes = bboxesTr;
lms = phisTr;
% output_dets_f = './dets-COFW-test.txt'
View ImageNet_mean_224
This file has been truncated, but you can view the full file.
113.265
113.308
113.436
113.515
113.68
113.75
113.871
113.894
114.026
View cmake-check-system-os
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Mac OS X specific code
SET(OperatingSystem "Mac OS X")
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
SET(OperatingSystem "Linux")
ELSE()
SET(OperatingSystem "Others")
ENDIF()
View discriminativecov.m
function [withincovar, betweencovar] = discriminativecov(X, ids)
arr_ids = int16(ids);
dim = size(X, 2);
num_pts = size(X, 1);
num_class = size(unique(arr_ids), 1);
arr_ids_sets = cell(num_class,1);
arr_ids_count = zeros(num_class,1);
for i = 1:num_class
View binary.cc
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
/* Binary IO*/
/*
View DrawROC.m
function [Tps, Fps] = ROC(scores, labels)
%% Sort Labels and Scores by Scores
sl = [scores; labels];
[d1 d2] = sort(sl(1,:));
sorted_sl = sl(:,d2);
s_scores = sorted_sl(1,:);
s_labels = round(sorted_sl(2,:));
View InitializeStruct.m
typedef struct demoStruct {
int val;
float *point;
} DemoStruct;
@implementation InitStructureAppDelegate
@synthesize window=_window;
View LayoutImageInText.m
//
// TestView.m
// LayoutImageInText
//
// Created by Haoxiang on 6/14/11.
// Copyright 2011 DEV. All rights reserved.
//
#import "TestView.h"
#import "NSString+Extern.h"