-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.m
55 lines (45 loc) · 1.73 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
% Copyright (c) 2023 Centrum Wiskunde & Informatica (CWI), The Netherlands
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Author:
% Evangelos Alexiou ([email protected])
%
% Reference:
% E. Alexiou, X. Zhou, I. Viola and P. Cesar, "PointPCA: Point Cloud
% Objective Quality Assessment Using PCA-Based Descriptors," under
% submission
%
%
% This script provides a simple example of a main for the computation of
% PointPCA. The two point clouds under comparison are loaded, and the
% metric is executed using the recommended configurations for the
% estimation of descriptors and statistical features. In the output, a
% table with 46 predictors is returned.
clear all;
close all;
clc;
%% Configuration
cfg.ratio = 0.008;
cfg.knn = 9;
%% Load point clouds
A = pcread('datasets/Dxx/stimuli/original.ply');
B = pcread('datasets/Dxx/stimuli/distorted_yy.ply');
%% Compute pointpca predictors
[Q] = pointpca(A, B, cfg);
%% Include point cloud name and save table
stimulus = {'distorted_yy.ply'};
Q = [table(stimulus), Q];
writetable(Q, 'datasets/Dxx/objective scores/obj_pointpca_predictors.csv')