当前位置:网站首页>Nerfplusplus parameter format sorting
Nerfplusplus parameter format sorting
2022-07-03 19:39:00 【Long Tailed Fox】
GitHub - Kai-46/nerfplusplus: improves over nerf in 360 capture of unbounded scenes
Output Format — COLMAP 3.7 documentation
We're running colmap It's the back , Three parameters are output :camera,images,points3D
In the official interpretation , The structure of these three parameters is as follows :



And in the nerfplusplus Format data set , What we use is such a data set :


see pose file , The discovery parameter is composed of the following format :

( To make it easier to watch, I hit enter )
see intrinsics file , It is found that the parameters are composed of the following formats :

Now I share my data conversion methods , The specific steps are: : obtain colmap file — Import ecxel— Invalid information filtering — Matrix transformation — Matrix adjustment — Segmented export , The whole process is as follows :
First of all pose file
(1)colmap export : Select export as txt Format
(2) Import excel, Invalid information filtering : Select from text in the data , This can be done in excel Auto wrap in . Import excel And then we found out , The information of each image is composed of two lines , The first line is the image pose information we need , The other line is the pixel information of the image itself , Let's get rid of the useless second line , Leave only useful information . Do this for every picture .
(3) Matrix transformation : This is the most critical ,colmap In the output mode of , Posture is quaternion QW,QX,QY,QZ Composed of . They and 3*3 The matrix transformation relation of is as follows :

Use excel It can be easily transformed , after , We readjust the table according to the following format :
(4) Export to TXT Format ( I wrote a simple code ):
import xlrd
def read_excel_data(filepath):
workbook = xlrd.open_workbook(filepath)
sheet = workbook.sheet_by_index(0)
i = '1';
for index in range(1, sheet.nrows):
row_value = sheet.row_values(index)
print(row_value)
file_handle=open('%s.txt'%(i),mode='w')
file_handle.seek(0,0)
for j in range(16):
file_handle.write(str(row_value[j]))
file_handle.write(' ')
j=0
file_handle.close()
i = str(int(i) + 1)
if __name__ == '__main__':
read_excel_data('round8.xls')
边栏推荐
- Day10 -- forced login, token refresh and JWT disable
- 2022-06-27 advanced network engineering (XII) IS-IS overhead type, overhead calculation, LSP processing mechanism, route revocation, route penetration
- Pecan — @expose()
- Latex image rotates with title
- Basic principle of LSM tree
- OSPF - detailed explanation of stub area and full stub area
- 第一章:求所有阶乘和数,大奖赛现场统分程序设计,三位阶乘和数,图形点扫描,递归求n的阶乘n!,求n的阶乘n!,舍罕王失算
- Chapter 2: find the box array, complete number in the specified interval, and improve the complete number in the specified interval
- Ae/pr/fcpx super visual effects plug-in package fxfactory
- IPv6 experiment
猜你喜欢

2022-06-25 advanced network engineering (XI) IS-IS synchronization process of three tables (neighbor table, routing table, link state database table), LSP, cSNP, psnp, LSP
![Meso tetra [P - (p-n-carbazole benzylidene imino)] phenylporphyrin (tcipp) /eu (tcipp) [pc( α- 2-oc8h17) 4] and euh (tcipp) [pc (a-2-oc8h17) 4] supplied by Qiyue](/img/5b/fc776a1982e24b82984d82be6a016f.jpg)
Meso tetra [P - (p-n-carbazole benzylidene imino)] phenylporphyrin (tcipp) /eu (tcipp) [pc( α- 2-oc8h17) 4] and euh (tcipp) [pc (a-2-oc8h17) 4] supplied by Qiyue

Merge K ascending linked lists

Chapter 1: find the algebraic sum of odd factors, find the same decimal sum s (D, n), simplify the same code decimal sum s (D, n), expand the same code decimal sum s (D, n)

第一章:递归求n的阶乘n!

Valentine's Day - make an exclusive digital collection for your lover

PR 2021 quick start tutorial, how to create new projects and basic settings of preferences?

SQL injection for Web Security (1)

BOC protected tryptophan zinc porphyrin (Zn · TAPP Trp BOC) / copper porphyrin (Cu · TAPP Trp BOC) / cobalt porphyrin (cobalt · TAPP Trp BOC) / iron porphyrin (Fe · TAPP Trp BOC) / Qiyue supply

CMD implements the language conversion of locale non Unicode programs
随机推荐
[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
Day_ 18 IO stream system
Titles can only be retrieved in PHP via curl - header only retrieval in PHP via curl
Luogu-p1107 [bjwc2008] Lei Tao's kitten
PR FAQ: how to set PR vertical screen sequence?
2022-06-25 网工进阶(十一)IS-IS-三大表(邻居表、路由表、链路状态数据库表)、LSP、CSNP、PSNP、LSP的同步过程
Sentinel source code analysis part II - sentinel dashboard console startup and configuration
Zhang Fei hardware 90 day learning notes - personal record on day 5. Please see my personal profile / homepage for the complete record
Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
FPGA 学习笔记:Vivado 2019.1 工程创建
Buuctf's different flags and simplerev
Today's work summary and plan: February 14, 2022
Chapter 1: find the algebraic sum of odd factors, find the same decimal sum s (D, n), simplify the same code decimal sum s (D, n), expand the same code decimal sum s (D, n)
Chapter 1: sum of three factorials, graph point scanning
Free year-end report summary template Welfare Collection
Random numbers in a long range, is that right- Random number in long range, is this the way?
第一章:三位阶乘和数,图形点扫描
Bad mentality leads to different results
Pecan - route
Ae/pr/fcpx super visual effects plug-in package fxfactory