Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/algorithms/segmentation/brain_segmentation.py   nipy(Download)
import numpy as np
 
from .segmentation import (Segmentation,
                           moment_matching,
                           map_from_ppm)
            self.convert()
        else:
            self.label = map_from_ppm(self.ppm, self.mask)
 
    def _init_parameters(self, ref_params):
    def convert(self):
        if self.ppm.shape[-1] == self.mixmat.shape[0]:
            self.ppm = np.dot(self.ppm, self.mixmat)
            self.label = map_from_ppm(self.ppm, self.mask)