(Y, X)
| 171 | return grid_y, grid_x |
| 172 | |
| 173 | def gridcloud2d_py(Y, X): |
| 174 | # we want to sample for each location in the grid |
| 175 | grid_y, grid_x = meshgrid2d_py(Y, X) |
| 176 | x = np.reshape(grid_x, [-1]) |
| 177 | y = np.reshape(grid_y, [-1]) |
| 178 | # these are N |
| 179 | xy = np.stack([x, y], axis=1) |
| 180 | # this is N x 2 |
| 181 | return xy |
| 182 | |
| 183 | def normalize_grid3d(grid_z, grid_y, grid_x, Z, Y, X, clamp_extreme=True): |
| 184 | # make things in [-1,1] |
nothing calls this directly
no test coverage detected