Dicom.Imaging.LUT.PrecalculatedLUT.Recalculate C# (CSharp) Method

Recalculate() public method

public Recalculate ( ) : void
return void
        public void Recalculate()
        {
            if (IsValid)
                return;

            for (int i = _minValue; i <= _maxValue; i++) {
                _table[i + _offset] = _lut[i];
            }
        }

Usage Example

Beispiel #1
0
        public void Indexer_Get_AlwaysReturnValidValue(int input, int expected)
        {
            var lut = new PrecalculatedLUT(new MockLUT(-100, 100), -50, 50);
            lut.Recalculate();

            var actual = lut[input];
            Assert.Equal(expected, actual);
        }
All Usage Examples Of Dicom.Imaging.LUT.PrecalculatedLUT::Recalculate