MCPcopy Create free account
hub / github.com/Kitware/VTK / SetMagnificationFactors

Method SetMagnificationFactors

Imaging/Core/vtkImageResample.cxx:75–95  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

73
74//------------------------------------------------------------------------------
75void vtkImageResample::SetMagnificationFactors(double fx, double fy, double fz)
76{
77 const double factors[3] = { fx, fy, fz };
78 bool modified = false;
79
80 for (int axis = 0; axis < 3; axis++)
81 {
82 if (this->MagnificationFactors[axis] != factors[axis])
83 {
84 this->MagnificationFactors[axis] = factors[axis];
85 // Spacing is no longer valid.
86 this->OutputSpacing[axis] = 0.0; // Not computed yet.
87 modified = true;
88 }
89 }
90
91 if (modified)
92 {
93 this->Modified();
94 }
95}
96
97//------------------------------------------------------------------------------
98void vtkImageResample::SetAxisMagnificationFactor(int axis, double factor)

Callers 13

TestMemkindDataFunction · 0.80
cursor3D.pyFile · 0.80
SetUpMethod · 0.80
SetMagnificationFactorsFunction · 0.80
TestShiftScale.pyFile · 0.80
TestShiftScale2.pyFile · 0.80
testAllShrinksMethod · 0.80
TestSkeleton2D.pyFile · 0.80

Calls 1

ModifiedMethod · 0.45

Tested by 3

TestMemkindDataFunction · 0.64
testAllShrinksMethod · 0.64