code: def segmentation_double_t():
      image = read_image(IMAGE_SIMPLE_SAMPLES.IMAGE_SIMPLE10)
      image = rgb2gray(image)
  
      for pixel_index in range(len(image)):
          if image[pixel_index] < 128:
              image[pixel_index] = 1
          else:
              image[pixel_index] = 0
  
      params = pcnn_parameters()
  
      params.AF = 0.1
      params.AL = 0.1
      params.AT = 0.8
      params.VF = 1.0
      params.VL = 1.0
      params.VT = 20.0
      params.W = 1.0
      params.M = 1.0
  
      ensembles = template_dynamic_pcnn(
          32 * 32, 28, image, params, conn_type.GRID_EIGHT, False
      )
      draw_image_mask_segments(
          IMAGE_SIMPLE_SAMPLES.IMAGE_SIMPLE10, ensembles
      )
  
file_path: pyclustering/pyclustering/nnet/examples/pcnn_examples.py
imports: from pyclustering.utils import draw_dynamics
  from pyclustering.utils import read_image, rgb2gray, draw_image_mask_segments
  from pyclustering.nnet.pcnn import pcnn_network, pcnn_parameters
  from pyclustering.nnet import *
  from pyclustering.samples.definitions import IMAGE_SIMPLE_SAMPLES
  from pyclustering.nnet.pcnn import pcnn_visualizer
label_desc: Use image node_id 8 for calling a global function with example usage: segmentation_double_t() without return types