MCPcopy Index your code
hub / github.com/apple/ml-pointersect / drop_features

Method drop_features

pointersect/inference/structures.py:149–158  ·  view source on GitHub ↗

Drop features related to camera pose used to capture the point

(self, drop_normal: bool = True)

Source from the content-addressed store, hash-verified

147 return PointCloud(**data_dict)
148
149 def drop_features(self, drop_normal: bool = True):
150 """Drop features related to camera pose used to capture the point"""
151 for attr_name in [
152 'captured_z_direction_w', 'captured_view_direction_w',
153 'captured_dps', 'captured_dps_u_w', 'captured_dps_v_w',
154 ]:
155 setattr(self, attr_name, None)
156
157 if drop_normal:
158 setattr(self, 'normal_w', None)
159
160 def check_dim(self):
161 """Check all attributes have the same number of points."""

Callers 2

render_meshFunction · 0.80
render_rgbdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected