class_docstr: Struct holding parameters determining how to apply a transformation to an image.
  
  Args
      fill_mode:             One of: 'constant', 'nearest', 'reflect', 'wrap'
      interpolation:         One of: 'nearest', 'linear', 'cubic', 'area', 'lanczos4'
      cval:                  Fill value to use with fill_mode='constant'
      relative_translation:  If true (the default), interpret translation as a factor of the image size.
                             If false, interpret it as absolute pixels.
class_docstr_tok: ["Struct","holding","parameters","determining","how","to","apply","a","transformation","to","an","image",".","Args","fill_mode",":","One","of",":","'constant","'",",","'nearest","'",",","'reflect","'",",","'wrap'","interpolation",":","One","of",":","'nearest","'",",","'linear","'",",","'cubic","'",",","'area","'",",","'lanczos4'","cval",":","Fill","value","to","use","with","fill_mode='constant'","relative_translation",":","If","true","(","the","default",")",",","interpret","translation","as","a","factor","of","the","image","size",".","If","false",",","interpret","it","as","absolute","pixels","."]
code: def cvBorderMode(self):
      if self.fill_mode == "constant":
          return cv2.BORDER_CONSTANT
      if self.fill_mode == "nearest":
          return cv2.BORDER_REPLICATE
      if self.fill_mode == "reflect":
          return cv2.BORDER_REFLECT_101
      if self.fill_mode == "wrap":
          return cv2.BORDER_WRAP
  
imports: from __future__ import division
  import numpy
  import cv2
  from PIL import Image
  from .transform import change_transform_origin
label_desc: Use image node_id 2 for calling the TransformParameters obj's underlying member method code with example usage: obj.cvBorderMode() and returns: cv2, cv2, cv2, cv2