示例#1
0
 def compute_gradient_on_grid(self, grid, affine_grid_to_world=None, verify_mapping=True): 
     resampled_data = resample_image_on_grid(self, grid, affine_grid_to_world, verify_mapping, self.background, self.use_gpu)
     # create new Image3D object
     #print resampled_data.max()
     gradient_data = numpy.gradient(resampled_data) #FIXME: use NiftyPy
     return gradient_data
示例#2
0
文件: Core.py 项目: lynch829/occiput
 def compute_gradient_on_grid(self, grid, affine_grid_to_world=None, verify_mapping=True): 
     resampled_data = resample_image_on_grid(self, grid, affine_grid_to_world, verify_mapping, self.background, self.use_gpu)
     # create new Image3D object
     #print resampled_data.max()
     gradient_data = numpy.gradient(resampled_data) #FIXME: use NiftyPy
     return gradient_data
示例#3
0
 def compute_resample_on_grid(self,grid,affine_grid_to_world=None, verify_mapping=True,interpolation_mode=INTERPOLATION_LINEAR): 
     resampled_data = resample_image_on_grid(self, grid, affine_grid_to_world, verify_mapping, self.background, self.use_gpu, interpolation_mode)
     # create new Image3D object
     return Image3D(data=resampled_data) #FIXME: perhaps just return the raw resampled data
示例#4
0
文件: Core.py 项目: lynch829/occiput
 def compute_resample_on_grid(self,grid,affine_grid_to_world=None, verify_mapping=True,interpolation_mode=INTERPOLATION_LINEAR): 
     resampled_data = resample_image_on_grid(self, grid, affine_grid_to_world, verify_mapping, self.background, self.use_gpu, interpolation_mode)
     # create new Image3D object
     return Image3D(data=resampled_data) #FIXME: perhaps just return the raw resampled data