class_docstr: Generate Gaussian weighted deformation map
class_docstr_tok: ["Generate","Gaussian","weighted","deformation","map"]
docstr: Args:
      anchor: coordinate of the center
docstr_tok: ["Args",":","anchor",":","coordinate","of","the","center"]
code: def get_gaussian_weight(self, anchor):
      """
      Args:
          anchor: coordinate of the center
      """
      ret = np.zeros(self.shape, dtype="float32")
  
      y, x = np.mgrid[: self.shape[0], : self.shape[1]]
      y = y.astype("float32") / ret.shape[0] - anchor[0]
      x = x.astype("float32") / ret.shape[1] - anchor[1]
      g = np.exp(-(x**2 + y**2) / self.sigma)
      # cv2.imshow(" ", g)
      # cv2.waitKey()
      return g
  
file_path: tensorpack/tensorpack/dataflow/imgaug/deform.py
imports: import numpy
  from ...utils import logger
  from .base import ImageAugmentor
  from .transform import TransformFactory
label_desc: Use image node_id 2 for calling the GaussianMap obj's underlying member method code with example usage: obj.get_gaussian_weight(anchor) and returns: g