Inheritance diagram for nipy.algorithms.fwhm:
This module provides classes and definitions for using full width at half maximum (FWHM) to be used in conjunction with Gaussian Random Field Theory to determine resolution elements (resels).
A resolution element (resel) is defined as a block of pixels of the same size as the FWHM of the smoothed image.
There are two methods implemented to estimate (3d, or volumewise) FWHM based on a 4d Image:
fastFHWM: used if the entire 4d Image is available iterFWHM: used when 4d Image is being filled in by slices of residuals
Bases: nipy.algorithms.fwhm.Resels
Parameters: |
|
---|
Bases: object
The Resels class.
Parameters: |
|
---|
Parameters: |
|
---|---|
Returns: | resels |
Parameters: |
|
---|---|
Returns: | (total_resels, FWHM, nvoxel) total_resels: the resels contained in the mask FWHM: an estimate of FWHM based on the average resel per voxel nvoxel: the number of voxels in the mask |
Parameters: |
|
---|---|
Returns: | FWHM |
Bases: nipy.algorithms.fwhm.Resels
Given a 4d image of residuals, i.e. not one filled in step by step by an iterator, estimate FWHM and resels.
Parameters: |
|
---|---|
Returns: | None |
Bases: nipy.algorithms.fwhm.Resels
Estimate FWHM on an image of residuals sequentially. This is handy when, say, residuals from a linear model are written out slice-by-slice.
Resulting FWHM is clipped at self.FWHMmax, which defaults to 50.
Setup a FWHM estimator.
Parameters: |
|
---|
Normalize residuals subtracting mean, and fixing length to 1.
Parameters: | resid : Array of residuals. |
---|---|
Returns: | Normalized residuals. |
Returns: | None |
---|
Pass a slice of residuals into slicewise estimate of FWHM.
Parameters: |
|
---|---|
Returns: | None |