Giter Club home page Giter Club logo

Comments (6)

liuyuan-pal avatar liuyuan-pal commented on June 10, 2024

这里是cam_xyz是相机坐标系下,需要转换到世界坐标系下

from neuray.

Fanqyu avatar Fanqyu commented on June 10, 2024

我明白了,之前忽视了permute把rot转置即求逆了,那我理解的pose中存储的是相机在base坐标下的姿态和相机镜头(i.e. 光线发射点)在cam坐标系中的位置,这样理解对吗?

from neuray.

liuyuan-pal avatar liuyuan-pal commented on June 10, 2024

嗯嗯,是的,我这里用的是opencv习惯下的坐标系,旋转平移都是表示从世界坐标系转换到相机坐标系的。x_cam = R @ x_wrd + t

from neuray.

Fanqyu avatar Fanqyu commented on June 10, 2024

好的,谢谢学长

from neuray.

liuyuan-pal avatar liuyuan-pal commented on June 10, 2024

好的,我不是学姐哈,我是男生

from neuray.

SYSUykLin avatar SYSUykLin commented on June 10, 2024

hello同学你好,我想请问一下,NeRF Synthetic数据集在获取外参矩阵的时候,为什么还要乘上一个diag[1, -1, -1]呢?
在database.py下的类class NeRFSyntheticDatabase(BaseDatabase)的parse_info函数,读取pose文件:
` for frame in img_info['frames']:
img_ids.append('-'.join(frame['file_path'].split('/')[1:]))

            pose=np.asarray(frame['transform_matrix'], np.float32)

            R = pose[:3,:3].T
            t = -R @ pose[:3,3:]

            R = np.diag(np.asarray([1,-1,-1])) @ R
            t = np.diag(np.asarray([1,-1,-1])) @ t

            poses.append(np.concatenate([R,t],1))`

正常来说,c2w到w2c就R = $R^T$, T = -RT就行,为什么要多乘一个呢?

from neuray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.