docstr: Transform both static and moving bundles to the halfway space.
  
  All this does is apply ``self.matrix1`` and `self.matrix2`` to the
  static and moving bundles, respectively.
  
  Parameters
  ----------
  static : streamlines
  
  moving : streamlines
  
  Returns
  -------
  static : streamlines
  
  moving : streamlines
docstr_tok: ["Transform","both","static","and","moving","bundles","to","the","halfway","space",".","All","this","does","is","apply","``","self.matrix1","``","and","`","self.matrix2","``","to","the","static","and","moving","bundles",",","respectively",".","Parameters","--","--","--","--","--","static",":","streamlines","moving",":","streamlines","Returns","--","--","--","-","static",":","streamlines","moving",":","streamlines"]
code: def transform(self, static, moving):
      """Transform both static and moving bundles to the halfway space.
  
      All this does is apply ``self.matrix1`` and `self.matrix2`` to the
      static and moving bundles, respectively.
  
      Parameters
      ----------
      static : streamlines
  
      moving : streamlines
  
      Returns
      -------
      static : streamlines
  
      moving : streamlines
  
      """
  
      static = transform_streamlines(static, self.matrix1)
      moving = transform_streamlines(moving, self.matrix2)
  
      return static, moving
  
imports: import logging
  import abc
  from itertools import combinations
  import numpy
  from dipy.core.optimize import Optimizer
  from dipy.align.bundlemin import _bundle_minimum_distance, _bundle_minimum_distance_asymmetric, distance_matrix_mdf
  from dipy.tracking.streamline import transform_streamlines, unlist_streamlines, center_streamlines, set_number_of_points, select_random_set_of_streamlines, length, Streamlines
  from dipy.segment.clustering import qbx_and_merge
  from dipy.core.geometry import compose_transformations, compose_matrix, decompose_matrix
  from time import time
label_desc: Use image node_id 2 for calling the JointStreamlineRegistrationMap obj's underlying member method code with example usage: obj.transform(static, moving) and returns: static,  moving