Exemple #1
0
 private void DisposeCachedLut()
 {
     if (_cachedLut != null)
     {
         _cachedLut.Dispose();
         _cachedLut = null;
     }
 }
Exemple #2
0
        private void DisposeCachedLut()
        {
            if (_cachedLut == null)
            {
                return;
            }

            _cachedLut.Dispose();
            _cachedLut = null;
        }
Exemple #3
0
        /// <summary>
        /// Gets the output LUT of the pipeline,
        /// </summary>
        public IComposedLut GetOutputLut(int minOutputValue, int maxOutputValue)
        {
            this.MinOutputValue = this.PresentationLut.MinOutputValue = minOutputValue;
            this.MaxOutputValue = this.PresentationLut.MaxOutputValue = maxOutputValue;

            this.LutCollection.SyncMinMaxValues();
            this.LutCollection.Validate();

            return(_cachedLut ?? (_cachedLut = ComposedLutCache.GetLut(LutCollection)));
        }