public FusionTestDataContainer(TestDataFunction function, Vector3D baseSpacing, Vector3D overlaySpacing, Vector3D orientationX, Vector3D orientationY, Vector3D orientationZ) : this(function, true, baseSpacing, orientationX, orientationY, orientationZ, true, overlaySpacing, orientationX, orientationY, orientationZ) { }
public FusionTestDataContainer(TestDataFunction function, bool baseIsSigned, Vector3D baseSpacing, Vector3D baseOrientationX, Vector3D baseOrientationY, Vector3D baseOrientationZ, bool overlayIsSigned, Vector3D overlaySpacing, Vector3D overlayOrientationX, Vector3D overlayOrientationY, Vector3D overlayOrientationZ) { _baseSops = function.CreateSops(baseIsSigned, Modality.CT, baseSpacing, baseOrientationX, baseOrientationY, baseOrientationZ); _overlaySops = function.CreateSops(overlayIsSigned, Modality.PT, overlaySpacing, overlayOrientationX, overlayOrientationY, overlayOrientationZ); _testDisplaySetGenerator = new TestDisplaySetGenerator(_baseSops, _overlaySops); }
public NormalizedVolumeFunction(int width, int height, int depth, TestDataFunction function) : base(function._name, function._function) { float rangeMin = float.MaxValue; float rangeMax = float.MinValue; for (int z = 0; z < depth; z++) { for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { float v = function._function(x, y, z); rangeMin = Math.Min(rangeMin, v); rangeMax = Math.Max(rangeMax, v); } } } _offset = -rangeMin; _scale = 65535 / (rangeMax - rangeMin); }
public FusionTestDataContainer(TestDataFunction function, Vector3D spacing, Vector3D orientationX, Vector3D orientationY, Vector3D orientationZ) : this(function, spacing, spacing, orientationX, orientationY, orientationZ) { }