private void GetPixelValue( ILutPipelineProvider luts, int pixelValue, ref string pixelValueString) { var value = luts.LookupPixelValue(pixelValue, LutPipelineStage.Source); pixelValueString = String.Format(SR.FormatProbeInfo, SR.LabelRawPixel, value); }
private void GetVoiLutValue( ILutPipelineProvider luts, int pixelValue, ref string voiLutString) { if (luts.VoiLut != null) { var voiLutValue = luts.LookupPixelValue(pixelValue, LutPipelineStage.Voi); voiLutString = String.Format(SR.FormatProbeInfo, SR.LabelVOILut, voiLutValue.ToString("F1")); } }
private void GetModalityLutValue( ILutPipelineProvider luts, int pixelValue, ref string modalityLutString) { if (luts.ModalityLut != null) { var modalityLutValue = luts.LookupPixelValue(pixelValue, LutPipelineStage.Modality); var modalityLutValueDisplay = modalityLutValue.ToString(_selectedFrame != null && _selectedFrame.IsSubnormalRescale ? @"G3" : @"F1"); if (_selectedFrame != null) { var units = (_selectedFrame.RescaleUnits ?? RescaleUnits.None).Label; if (!string.IsNullOrEmpty(units)) { modalityLutValueDisplay = string.Format(SR.FormatValueUnits, modalityLutValueDisplay, units); } } modalityLutString = String.Format(SR.FormatProbeInfo, SR.LabelModalityLut, modalityLutValueDisplay); } }