code: def reorder(self, dst_order, arr, src_order=None):
          
          if dst_order is None:
              dst_order = self.viewer.rgb_order
          if src_order is None:
              src_order = self.rgb_order
          if src_order != dst_order:
              arr = trcalc.reorder_image(dst_order, arr, src_order)
  
          return arr
docs: Reorder the output array to match that needed by the viewer.