class_docstr: Interface for classes that convert binary masks to color images.
class_docstr_tok: ["Interface","for","classes","that","convert","binary","masks","to","color","images","."]
docstr: Convert a binary image to a colorized one.
  
  Parameters
  ----------
  image_binary : ndarray
      Boolean ``(H,W)`` image.
  
  image_original : ndarray
      Original ``(H,W,C)`` input image.
  
  nth_image : int
      Index of the image in the batch.
  
  random_state : imgaug.random.RNG
      Random state to use.
  
  Returns
  -------
  ndarray
      Colorized form of `image_binary`.
docstr_tok: ["Convert","a","binary","image","to","a","colorized","one",".","Parameters","--","--","--","--","--","image_binary",":","ndarray","Boolean","``","(","H",",","W",")","``","image",".","image_original",":","ndarray","Original","``","(","H",",","W",",","C",")","``","input","image",".","nth_image",":","int","Index","of","the","image","in","the","batch",".","random_state",":","imgaug.random.RNG","Random","state","to","use",".","Returns","--","--","--","-","ndarray","Colorized","form","of","`","image_binary","`","."]
code: def colorize(
      self, image_binary, image_original, nth_image, random_state
  ):
      """
      Convert a binary image to a colorized one.
  
      Parameters
      ----------
      image_binary : ndarray
          Boolean ``(H,W)`` image.
  
      image_original : ndarray
          Original ``(H,W,C)`` input image.
  
      nth_image : int
          Index of the image in the batch.
  
      random_state : imgaug.random.RNG
          Random state to use.
  
      Returns
      -------
      ndarray
          Colorized form of `image_binary`.
  
      """
  
imports: from __future__ import print_function, division, absolute_import
  from abc import ABCMeta, abstractmethod
  import numpy
  import cv2
  import six
  import imgaug
  from imgaug.imgaug import _normalize_cv2_input_arr_
  from .None import meta
  from .None import blend
  from ..None import parameters
  from ..None import dtypes
label_desc: Use image node_id 1 for calling the IBinaryImageColorizer obj's underlying member method code with example usage: obj.colorize(image_binary, image_original, nth_image, random_state) without return types