code: def wavelet_center(f, border=0, dtype=float, cval=0.0):
      """
      fc = wavelet_center(f, border=0, dtype=float, cval=0.0)
  
      ``fc`` is a centered version of ``f`` with a shape that is composed of
      powers of 2.
  
      Parameters
      ----------
      f : ndarray
          input image
      border : int, optional
          The border to use (default is no border)
      dtype : type, optional
          Type of ``fc``
      cval : float, optional
          Which value to fill the border with (default is 0)
  
      Returns
      -------
      fc : ndarray
  
      See Also
      --------
      wavelet_decenter : function
          Reverse function
      """
      nshape, position = _wavelet_center_compute(f.shape, border)
      nimage = np.zeros(nshape, dtype=dtype)
      nimage += cval
      nimage[tuple(position)] = f
      return nimage
  
imports: import numpy
  from .None import _convolve
  from .None import morph
  from .internal import _get_output, _normalize_sequence, _verify_is_floatingpoint_type, _as_floating_point_array
  from ._filters import mode2int, modes, _check_mode
label_desc: Use image node_id 12 for calling a global function with example usage: wavelet_center(f, border, dtype, cval) and returns: nimage