def _grid_creator(self):
"""Creates a grid according to the GridSpec."""
shape_fa = self.grid_spec.get_interogation_grid_shape()
shape_fb = self.grid_spec.get_search_grid_shape()
strides_fa = self.grid_spec.get_interogation_grid_strides()
strides_fb = self.grid_spec.get_search_grid_strides()
self.grid_a = as_strided(self.frame_a, strides=strides_fa, shape=shape_fa)
self.grid_b = as_strided(self._padded_fb, strides=strides_fb, shape=shape_fb)
评论列表
文章目录