class_docstr: A transform which only has `apply_image` but does nothing in `apply_coords`.
class_docstr_tok: ["A","transform","which","only","has","`","apply_image","`","but","does","nothing","in","`","apply_coords","`","."]
docstr: Args:
      func (img -> img): a function to be used for :meth:`apply_image`
      name (str, optional): the name of this transform
docstr_tok: ["Args",":","func","(","img","-",">","img",")",":","a","function","to","be","used","for",":","meth",":","`","apply_image","`","name","(","str",",","optional",")",":","the","name","of","this","transform"]
code: def __init__(self, func, name=None):
      """
      Args:
          func (img -> img): a function to be used for :meth:`apply_image`
          name (str, optional): the name of this transform
      """
      self._func = func
      self._name = name
  
imports: import numpy
  import cv2
  from ...utils.argtools import log_once
  from .base import ImageAugmentor, _default_repr
label_desc: Use image node_id 1 to create a new PhotometricTransform object from inherited base classes: Transform with example: obj = PhotometricTransform(func, name)