-
Notifications
You must be signed in to change notification settings - Fork 3
/
writer.h
33 lines (29 loc) · 929 Bytes
/
writer.h
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
/*
* Copyright (C) 2024, Inria
* GRAPHDECO research group, https://team.inria.fr/graphdeco
* All rights reserved.
*
* This software is free for non-commercial, research and evaluation use
* under the terms of the LICENSE.md file.
*
* For inquiries contact george.drettakis@inria.fr
*/
#pragma once
#include "common.h"
#include <map>
class Writer
{
public:
static void writeHierarchy(const char* filename, const std::vector<Gaussian>& gaussian, const ExplicitTreeNode* root, bool compressed = true);
static void makeHierarchy(
const std::vector<Gaussian>& gaussians,
const ExplicitTreeNode* root,
std::vector<Eigen::Vector3f>& positions,
std::vector<Eigen::Vector4f>& rotations,
std::vector<Eigen::Vector3f>& log_scales,
std::vector<float>& opacities,
std::vector<SHs>& shs,
std::vector<Node>& basenodes,
std::vector<Box>& boxes,
std::map<int, const ExplicitTreeNode*>* base2tree = nullptr);
};