Bases: object
This is an abstract class from which different types of multiple ROI classes will be derived
Methods
| get_roi_feature | |
| select | This module supports asynchronous I/O on multiple file descriptors. |
| set_roi_feature |
| Parameters : | domain: ROI instance :
k: non-negative int, number of regions considered : id: string, optional, identifier : |
|---|
Select a subset of ROIs and he associated features
Bases: object
This is another implementation of Multiple ROI, where the reference to a given domain is explicit
fixme : make roi_features implementation consistent
Methods
| argmax_feature | |
| check_features | |
| copy | Generic (shallow and deep) copying operations. |
| get_coord | |
| get_feature | |
| get_roi_feature | |
| get_size | |
| get_volume | |
| integrate | |
| make_feature | |
| plot_feature | |
| remove_feature | |
| representative_feature | |
| select | This module supports asynchronous I/O on multiple file descriptors. |
| set_feature | |
| set_roi_feature | |
| to_image |
| Parameters : | domain: ROI instance :
label: array of shape (domain.size), dtype=np.int, :
id: string, optional, identifier : no_empty_label: Bool, optional :
|
|---|
Return the list of roi-level argmax of feature called fid
Returns a copy of self Note that self.domain is not copied
returns self.coord[k]
return self.features[fid]
roi_features accessor
returns size, k-length array
returns self.local_volume[k]
Integrate certain feature on each ROI and return the k results
| Parameters : | fid : string, feature identifier,
|
|---|---|
| Returns : | lsum = array of shape (self.k, self.feature[fid].shape[1]), :
|
Extract a set of ffeatures from a domain map
| Parameters : | fid: string, :
data: array of shape(deomain.size) or (domain, size, dim), :
override: bool, optional, :
|
|---|
boxplot the distribution of features within ROIs Note that this assumes 1-d features
| Parameters : | fid: string, :
ax: axis handle, optional : |
|---|
Remove a certain feature
Compute a statistical representative of the within-Foain feature
| Parameters : | fid: string, feature id : method: string, method used to compute a representative :
|
|---|
returns an instance of multiple_ROI with only the subset of ROIs for which valid
| Parameters : | valid: array of shape (self.k), :
id: string, optional, :
auto: bool, optional, :
no_empty_label: bool, optional, :
|
|---|---|
| Returns : | the instance, if auto==False, nothing otherwise : |
Append a feature ‘fid’
| Parameters : | fid: string, :
data: list of self.k arrays of shape(self.size[k], p) or self.size[k] :
override: bool, optional, :
|
|---|
| Parameters : | fid: string, feature identifier : data: array of shape(self.k, p), with p>0 : |
|---|
Generates and possiblly writes a label image that represents self.
| Parameters : | path: string, optional :
descrip: string, optional, :
write_type: string, optional, :
data: array os shape (self.k), optional, :
|
|---|
Return a SubDomain from an n-d int array
| Parameters : | label: np.array instance :
affine: np.array, optional :
nn: int, neighboring system considered, :
|
|---|
Create discrete ROIs as a set of balls within a certain coordinate systems
| Parameters : | domain: StructuredDomain instance, :
positions: array of shape(k, dim): :
radii: array of shape(k): :
|
|---|
Return a SubDomain instance from the input mask image
| Parameters : | mim: NiftiIImage instance, or string path toward such an image :
nn: int, optional :
|
|---|---|
| Returns : | The MultipleROI instance : |
keeps the set of labels of the image corresponding to a certain index so that their position is closest to the prescribed one Parameters ———- mim: NiftiIImage instance, or string path toward such an image
supposedly a label image