private void DisposeCachedLut() { if (_cachedLut != null) { _cachedLut.Dispose(); _cachedLut = null; } }
private void DisposeCachedLut() { if (_cachedLut == null) { return; } _cachedLut.Dispose(); _cachedLut = null; }
/// <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))); }