def build(cls, dim, nb_pts, sigma, gd=None, tan=None, cotan=None, label=None): return cls(Landmarks(dim, nb_pts, gd=gd, tan=tan, cotan=cotan), sigma, label)
def __init__(self, aabb, resolution, label=None): self.__aabb = aabb self.__resolution = resolution grid = generate_mesh_grid(aabb, resolution) points_grid = grid2vec(grid) manifold = Landmarks(aabb.dim, points_grid.shape[0], gd=points_grid) super().__init__(manifold, label)
def build(cls, dim, nb_pts, sigma, descstr, f_support, f_vectors, coeff=1., gd=None, tan=None, cotan=None, label=None): return cls(Landmarks(dim, nb_pts, gd=gd, tan=tan, cotan=cotan), sigma, descstr, f_support, f_vectors, coeff, label)
def build(cls, A, coeff=1., gd=None, tan=None, cotan=None, label=None): return cls(Landmarks(A.shape[0], 1, gd=gd, tan=tan, cotan=cotan), A, coeff, label)
def __init__(self, points, label=None): super().__init__() self.__silent_module = SilentBase(Landmarks(points.shape[1], points.shape[0], gd=points), label=label)