-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.m
62 lines (47 loc) · 1.34 KB
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%-----------------------------------------------------------
% Finds planes in Point cloud
% author: ayman mukhaimer
% Oct 2019
%-----------------------------------------------------------
clear
close all
addpath('./utils','./data');
%% training data
% load training data
load('data/train_data','data')
load('data/train_data','label')
% load('data/train_data','normals')
folder='data/files/train/';
outputname='data/train.h5';
% add augmentation
% data=noise(data,.01);
% find planes in data
disp('training data')
status = mkdir(folder)
tic
processdata_mc(data,label,folder) % processdata(data,1,2,label,folder) %
toc
% collect data in one h5 file
disp(outputname)
collect_data(folder,outputname,length(label))
%% testing data
% load testing data
load('data/test_data','data')
load('data/test_data','label')
% load('data/train_data','normals')
folder='data/files/test/';
outputname='data/test.h5';
% add augmentation
% data=noise(data,.01);
% data=outliers(data,.1,[-1 1]);
% data=missing_points(data,.5);
% data=cluster_outliers(data,.2,20,.04);
disp('test data')
status = mkdir(folder)
% find planes in data
tic
processdata_mc(data,label,folder) % processdata(data,1,2,label,folder)
toc
% collect data in one h5 file
disp(outputname)
collect_data(folder,outputname,length(label))