Giter VIP home page Giter VIP logo

Comments (5)

rodrigodzf avatar rodrigodzf commented on July 24, 2024

A similar follow-up question, what is the function of the scale matrix? is the K-matrix already scaled?

from differentiable_volumetric_rendering.

m-niemeyer avatar m-niemeyer commented on July 24, 2024

Hi @jay-thakur, @rodrigodzf , thanks a lot for your interest in the project! In think both questions are pointing at what the matrices are, here my explanations:

world_mat: This is the extrinsics 4x4 matrix, often referred to as "Rt". When applying this matrix to a point, you transform this point from world space to camera space.
camera_mat: This is the intrinsics 4x4 matrix, often referred to as "K". The only special thing we do is that we define the final pixel coordinates to be in the interval [-1, 1]. In contrast, the ordinary definition is to have pixel values in [0, W] and [0, H], where (H, W) are the image dimensions. (We use this special definition because we think it fits better the Pytorch framework.)
scale_mat: We introduce this additional 4x4 matrix for the case when the objects are not centred at the world origin and not in the unit cube. This matrix transforms a 3D point from the "object-centric" space where the object is centred at the origin and in the unit cube to the original world space. You can see that this matrix is just the identity for e.g. the ShapeNet datasets. We only use this matrix for the DTU dataset, where objects are not centred. Have a look at this closed issue for more information.

from differentiable_volumetric_rendering.

rodrigodzf avatar rodrigodzf commented on July 24, 2024

Thank you for the explanation! As suggested in the other closed issue, maybe would be good idea to put this information in the readme since I imagine others will have the same question in the future

from differentiable_volumetric_rendering.

m-niemeyer avatar m-niemeyer commented on July 24, 2024

Thanks for the feedback @rodrigodzf , I will try to do it soon!

from differentiable_volumetric_rendering.

jay-thakur avatar jay-thakur commented on July 24, 2024

Hi @m-niemeyer ,

I have my own 3D model. Below is my viewpoints for 3D model using open3d library.

{
	"class_name" : "PinholeCameraParameters",
	"extrinsic" : 
	[
		1.0,
		-0.0,
		-0.0,
		0.0,
		0.0,
		-1.0,
		-0.0,
		0.0,
		0.0,
		-0.0,
		-1.0,
		0.0,
		-0.0,
		-0.061849594116210938,
		117.97353744733314,
		1.0
	],
	"intrinsic" : 
	{
		"height" : 1050,
		"intrinsic_matrix" : 
		[
			909.3266739736606,
			0.0,
			0.0,
			0.0,
			909.3266739736606,
			0.0,
			959.5,
			524.5,
			1.0
		],
		"width" : 1920
	},
	"version_major" : 1,
	"version_minor" : 0
}

How to rescale camera_mat and world_mat for 64*64 size projection?

I hope you got my question.

Thanks,
Jay

from differentiable_volumetric_rendering.

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.