MCPcopy Create free account
hub / github.com/InternRobotics/EmbodiedScan / scale

Method scale

embodiedscan/structures/points/base_points.py:308–314  ·  view source on GitHub ↗

Scale the points with horizontal and vertical scaling factors. Args: scale_factors (float): Scale factors to scale the points.

(self, scale_factor: float)

Source from the content-addressed store, hash-verified

306 pass
307
308 def scale(self, scale_factor: float) -> None:
309 """Scale the points with horizontal and vertical scaling factors.
310
311 Args:
312 scale_factors (float): Scale factors to scale the points.
313 """
314 self.tensor[:, :3] *= scale_factor
315
316 def __getitem__(
317 self, item: Union[int, tuple, slice, np.ndarray,

Callers 2

bbox3d_mapping_backFunction · 0.45
_scale_bbox_pointsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected