class_docstr: The Resels class.
      
class_docstr_tok: ["The","Resels","class","."]
docstr: Initialize resels class
  
  Parameters
  ----------
  coordmap : ``CoordinateMap``
          CoordinateMap over which fwhm and resels are to be estimated.
          Used in fwhm/resel conversion.
  fwhm : ``Image``
      Optional Image of FWHM. Used to convert
      FWHM Image to resels if FWHM is not being estimated.
  resels : ``Image``
      Optional Image of resels. Used to
      compute resels within a mask, for instance, if
      FWHM has already been estimated.
  mask : ``Image``
      Mask over which to integrate resels.
  clobber : ``bool``
      Clobber output FWHM and resel images?
  D : ``int``
      Can be 2 or 3, the dimension of the final volume.
docstr_tok: ["Initialize","resels","class","Parameters","--","--","--","--","--","coordmap",":","``","CoordinateMap","``","CoordinateMap","over","which","fwhm","and","resels","are","to","be","estimated",".","Used","in","fwhm\/resel","conversion",".","fwhm",":","``","Image","``","Optional","Image","of","FWHM",".","Used","to","convert","FWHM","Image","to","resels","if","FWHM","is","not","being","estimated",".","resels",":","``","Image","``","Optional","Image","of","resels",".","Used","to","compute","resels","within","a","mask",",","for","instance",",","if","FWHM","has","already","been","estimated",".","mask",":","``","Image","``","Mask","over","which","to","integrate","resels",".","clobber",":","``","bool","``","Clobber","output","FWHM","and","resel","images","?","D",":","``","int","``","Can","be","2","or","3",",","the","dimension","of","the","final","volume","."]
code: def __init__(
      self,
      coordmap,
      normalized=False,
      fwhm=None,
      resels=None,
      mask=None,
      clobber=False,
      D=3,
  ):
      """Initialize resels class
  
      Parameters
      ----------
      coordmap : ``CoordinateMap``
              CoordinateMap over which fwhm and resels are to be estimated.
              Used in fwhm/resel conversion.
      fwhm : ``Image``
          Optional Image of FWHM. Used to convert
          FWHM Image to resels if FWHM is not being estimated.
      resels : ``Image``
          Optional Image of resels. Used to
          compute resels within a mask, for instance, if
          FWHM has already been estimated.
      mask : ``Image``
          Mask over which to integrate resels.
      clobber : ``bool``
          Clobber output FWHM and resel images?
      D : ``int``
          Can be 2 or 3, the dimension of the final volume.
      """
      self.fwhm = fwhm
      self.resels = resels
      self.mask = mask
      self.clobber = clobber
      self.coordmap = coordmap
      self.D = D
      self.normalized = normalized
      _transform = self.coordmap.affine
      self.wedge = np.power(np.fabs(det(_transform)), 1.0 / self.D)
  
file_path: nipy/nipy/algorithms/fwhm.py
imports: import numpy
  from numpy.linalg import det
  from nipy.core.api import Image
  from .utils.matrices import pos_recipr
label_desc: Use image node_id 1 to create a new Resels object  with example: obj = Resels(coordmap, normalized, fwhm, resels, mask, clobber, D)