gausplat_renderer::render::gaussian_3d::backward

Struct RenderInput

source
pub struct RenderInput<B: Backend> {
Show 31 fields pub colors_rgb_3d: B::FloatTensorPrimitive, pub colors_sh: B::FloatTensorPrimitive, pub colors_sh_degree_max: u32, pub conics: B::FloatTensorPrimitive, pub depths: B::FloatTensorPrimitive, pub focal_length_x: f32, pub focal_length_y: f32, pub image_size_half_x: f32, pub image_size_half_y: f32, pub image_size_x: u32, pub image_size_y: u32, pub is_colors_rgb_3d_not_clamped: B::FloatTensorPrimitive, pub opacities_3d: B::FloatTensorPrimitive, pub point_count: u32, pub point_indices: B::IntTensorPrimitive, pub point_rendered_counts: B::IntTensorPrimitive, pub positions_2d: B::FloatTensorPrimitive, pub positions_3d: B::FloatTensorPrimitive, pub positions_3d_in_normalized: B::FloatTensorPrimitive, pub radii: B::IntTensorPrimitive, pub rotations: B::FloatTensorPrimitive, pub rotations_matrix: B::FloatTensorPrimitive, pub scalings: B::FloatTensorPrimitive, pub tile_count_x: u32, pub tile_count_y: u32, pub tile_point_ranges: B::IntTensorPrimitive, pub transmittances: B::FloatTensorPrimitive, pub view_bound_x: f32, pub view_bound_y: f32, pub view_position: [f32; 3], pub view_transform: [[f32; 4]; 4],
}
Expand description

Rendering inputs (backward).

Fields§

§colors_rgb_3d: B::FloatTensorPrimitive

The shape is [P, 3]

§colors_sh: B::FloatTensorPrimitive

The shape is [P, M * 3] <- [P, M, 3]

§colors_sh_degree_max: u32

(0 ~ 3)

§conics: B::FloatTensorPrimitive

The shape is [P, 3]

§depths: B::FloatTensorPrimitive

The shape is [P]

§focal_length_x: f32

f_x <- I_x / tan(Fov_x / 2) / 2

§focal_length_y: f32

f_y <- I_y / tan(Fov_y / 2) / 2

§image_size_half_x: f32

I_x / 2

§image_size_half_y: f32

I_y / 2

§image_size_x: u32

I_x

§image_size_y: u32

I_y

§is_colors_rgb_3d_not_clamped: B::FloatTensorPrimitive

The shape is [P, 3]

§opacities_3d: B::FloatTensorPrimitive

The shape is [P, 1]

§point_count: u32

P

§point_indices: B::IntTensorPrimitive

The shape is [T]

§point_rendered_counts: B::IntTensorPrimitive

The shape is [I_y, I_x]

§positions_2d: B::FloatTensorPrimitive

The shape is [P, 2]

§positions_3d: B::FloatTensorPrimitive

The shape is [P, 3]

§positions_3d_in_normalized: B::FloatTensorPrimitive

The shape is [P, 2]

§radii: B::IntTensorPrimitive

The shape is [P]

§rotations: B::FloatTensorPrimitive

The shape is [P, 4]

§rotations_matrix: B::FloatTensorPrimitive

The shape is [P, 3, 3]

§scalings: B::FloatTensorPrimitive

The shape is [P, 3]

§tile_count_x: u32

I_x / T_x

§tile_count_y: u32

I_y / T_y

§tile_point_ranges: B::IntTensorPrimitive

The shape is [I_y / T_y, I_x / T_x, 2]

§transmittances: B::FloatTensorPrimitive

The shape is [I_y, I_x]

§view_bound_x: f32

tan(Fov_x / 2) * (C_f + 1)

§view_bound_y: f32

tan(Fov_y / 2) * (C_f + 1)

§view_position: [f32; 3]

[3]

§view_transform: [[f32; 4]; 4]

[3 (+ 1), 3 + 1]

Trait Implementations§

source§

impl<B: Clone + Backend> Clone for RenderInput<B>

source§

fn clone(&self) -> RenderInput<B>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<B: Debug + Backend> Debug for RenderInput<B>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,