MCPcopy Index your code
hub / github.com/InternRobotics/EmbodiedScan / color

Method color

embodiedscan/structures/points/base_points.py:115–122  ·  view source on GitHub ↗

Tensor or None: Returns a vector with color of each point in shape (N, 3).

(self)

Source from the content-addressed store, hash-verified

113
114 @property
115 def color(self) -> Union[Tensor, None]:
116 """Tensor or None: Returns a vector with color of each point in shape
117 (N, 3)."""
118 if self.attribute_dims is not None and \
119 'color' in self.attribute_dims.keys():
120 return self.tensor[:, self.attribute_dims['color']]
121 else:
122 return None
123
124 @color.setter
125 def color(self, tensor: Union[Tensor, np.ndarray]) -> None:

Callers

nothing calls this directly

Calls 1

catMethod · 0.45

Tested by

no test coverage detected