Inheritance diagram for nipy.core.image.roi:
Template region of interest (ROI) module
Bases: nipy.core.image.roi.ROI
Create an ROI with a binary function in a given coordinate system.
Methods
| tocoordmap | |
| todiscrete |
| Parameters : |
|
|---|
Return a CoordinateMapROI instance at the voxels in the ROI.
| Parameters : |
|
|---|---|
| Returns : | CoordinateMapROI |
Return a DiscreteROI instance at the voxels in the ROI.
| Parameters : |
|
|---|---|
| Returns : | DiscreteROI |
Bases: nipy.core.image.roi.DiscreteROI
Methods
| feature | |
| mask | |
| next | |
| pool |
| Parameters : |
|
|---|
Return a feature of an image within the ROI. Feature args are ‘args’, while extra are for the readall method. Default is to reduce a ufunc over the ROI. Any other operations should be able to ignore superfluous keywords arguments, i.e. use extra.
| Parameters : |
|
|---|---|
| Returns : | DiscreteROI |
| Raises ValueError: | |
TODO |
|
| Raises NotImplementedError: | |
TODO |
|
| Returns : | TODO |
|---|
Pool data from an image over the ROI – return fn evaluated at each voxel.
| Parameters : |
|
|---|---|
| Returns : | TODO |
| Raises ValueError: | |
TODO |
|
Bases: nipy.core.image.roi.ROI
TODO
Methods
| feature | |
| next | |
| pool |
| Parameters : |
|
|---|
Return a feature of an image within the ROI. Feature args are ‘args’, while extra are for the readall method. Default is to reduce a ufunc over the ROI. Any other operations should be able to ignore superfluous keywords arguments, i.e. use extra.
| Parameters : |
|
|---|---|
| Returns : | DiscreteROI |
| Raises ValueError: | |
TODO |
|
| Raises NotImplementedError: | |
TODO |
|
| Returns : | TODO |
|---|
Pool data from an image over the ROI – return fn evaluated at each voxel.
| Parameters : |
|
|---|---|
| Returns : | TODO |
Bases: object
This is the basic ROI class, which we model as basically a function defined on Euclidean space, i.e. R^3. For practical purposes, this function is evaluated on the range of a Mapping instance.
| Parameters : |
|
|---|
Bases: list
TODO
Methods
| append | |
| count | |
| extend | |
| index | |
| insert | |
| pop | |
| remove | |
| reverse | |
| sort |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
L.append(object) – append object to end
L.count(value) -> integer – return number of occurrences of value
L.extend(iterable) – extend list by appending elements from the iterable
L.index(value, [start, [stop]]) -> integer – return first index of value. Raises ValueError if the value is not present.
L.insert(index, object) – insert object before index
L.pop([index]) -> item – remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.
L.remove(value) – remove first occurrence of value. Raises ValueError if the value is not present.
L.reverse() – reverse IN PLACE
L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; cmp(x, y) -> -1, 0, 1
Bases: nipy.core.image.roi.CoordinateMapROI
An ROI for an entire coordmap. Save time by avoiding compressing, etc.
Methods
| feature | |
| mask | |
| next | |
| pool |
| Parameters : |
|
|---|
Return a feature of an image within the ROI. Feature args are ‘args’, while extra are for the readall method. Default is to reduce a ufunc over the ROI. Any other operations should be able to ignore superfluous keywords arguments, i.e. use extra.
| Parameters : |
|
|---|---|
| Returns : | DiscreteROI |
| Raises ValueError: | |
TODO |
|
| Raises NotImplementedError: | |
TODO |
|
| Returns : | TODO |
|---|
| Parameters : | image : image.Image |
|---|---|
| Returns : | None |
Ellipse determined by regions where a quadratic form is <= a. The quadratic form is given by the inverse of the ‘form’ argument, so a sphere of radius 10 can be specified as {‘form’:10**2 * identity(3), ‘a’:1} or {‘form’:identity(3), ‘a’:100}.
Form must be positive definite.
| Parameters : |
|
|---|---|
| Returns : | TODO |
Return a CoordinateMapROI from an array (data) on a coordmap. interpolation. Obvious ways to extend this.
| Parameters : |
|
|---|---|
| Returns : | CoordinateMapROI |
| Parameters : |
|
|---|---|
| Returns : | TODO |