81b99bfa02345b83b75488a535a9bd85f49d65e6,invesalius/data/imagedata_utils.py,,ResampleMatrix,#,7
Before Change
size = imagedata.GetDimensions()
width = float(size[0])
height = float(size[1]/value)
resolution = (height/(extent[1]-extent[0])+1)*spacing[1]
resample = vtk.vtkImageResample()
resample.SetInput(imagedata)
resample.SetAxisMagnificationFactor(0, resolution)
After Change
x = 1
y = 2
factor = xy_dimension/float(f+1)
resample = vtk.vtkImageResample()
resample.SetInput(imagedata)
resample.SetAxisMagnificationFactor(0, factor)
resample.SetAxisMagnificationFactor(1, factor)
resample.SetOutputSpacing(spacing[0] * factor, spacing[1] * factor, spacing[2])
resample.Update()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: invesalius/invesalius3
Commit Name: 81b99bfa02345b83b75488a535a9bd85f49d65e6
Time: 2009-07-22
Author: paulojamorim@gmail.com
File Name: invesalius/data/imagedata_utils.py
Class Name:
Method Name: ResampleMatrix
Project Name: librosa/librosa
Commit Name: 4d78e7c936be168db70c65276915688a131ef193
Time: 2015-02-17
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_chroma
Project Name: craffel/mir_eval
Commit Name: 49db0ce411df9d3d185213b5c2f7f4fa7d97369c
Time: 2014-04-23
Author: craffel@gmail.com
File Name: mir_eval/melody.py
Class Name:
Method Name: voicing_measures