(df, cell_size)
| 152 | return df_result |
| 153 | |
| 154 | def voxel_decimate(df, cell_size): |
| 155 | def grouping_function(row): |
| 156 | return tuple([round(row[c] / cell_size) for c in 'xyz']) |
| 157 | grouped = df.assign(voxel_index=df.apply(grouping_function, axis=1)).groupby('voxel_index') |
| 158 | return grouped.first().reset_index()[[c for c in df.columns if c != 'voxel_index']] |
| 159 | |
| 160 | |
| 161 | def compute_cam_velocities(targetFrame, angularVelocity): |
no outgoing calls
no test coverage detected