public void AddData(XRayEnergyEnum energy, PixelDataType dataType, Pixel[] data)
 {
     if (dataType == PixelDataType.Air)
     {
         AddAirData(energy, data);
     }
     else if (dataType == PixelDataType.Dark)
     {
         AddDarkData(energy, data);
     }
 }
 public void AddData(XRayEnergyEnum energy, PixelDataType dataType, Pixel[] data)
 {
     if (dataType == PixelDataType.Air)
     {
         AddAirData(energy, data);
     }
     else if (dataType == PixelDataType.Dark)
     {
         AddDarkData(energy, data);
     }
 }
        public bool IsComplete(XRayEnergyEnum energy, PixelDataType dataType)
        {
            bool ret = false;

            if (_calibrationData.ContainsKey(energy))
            {
                if (dataType == PixelDataType.Air)
                {
                    ret = _calibrationData[energy].IsAirDataComplete;
                }
                else if (dataType == PixelDataType.Dark)
                {
                    ret = _calibrationData[energy].IsDarkDataComplete;
                }
            }

            return ret;
        }
        public bool IsComplete(XRayEnergyEnum energy, PixelDataType dataType)
        {
            bool ret = false;

            if (_calibrationData.ContainsKey(energy))
            {
                if (dataType == PixelDataType.Air)
                {
                    ret = _calibrationData[energy].IsAirDataComplete;
                }
                else if (dataType == PixelDataType.Dark)
                {
                    ret = _calibrationData[energy].IsDarkDataComplete;
                }
            }

            return(ret);
        }
 public Pixel[] GetAirData(XRayEnergyEnum energy)
 {
     return _calibrationData[energy].AirData;
 }
 public void ClearReferenceData(XRayEnergyEnum energy)
 {
     _calibrationData[energy].ClearReferenceData();
 }
Beispiel #7
0
 public override void GetLowEnergyData() { EnergyType = XRayEnergyEnum.LowEnergy; }
Beispiel #8
0
 public XRayInfoIDStruct(XRayEnergyEnum energy, byte pulseWidth)
 {
     byte xrayEnergy = (byte)(energy);
     _xRayInfoID = (byte)((pulseWidth << 1) | (xrayEnergy & 1));
 }
Beispiel #9
0
 public override void GetHighEnergyData()
 {
     EnergyType = XRayEnergyEnum.HighEnergy;
 }
 public float[] GetScaleFactor(XRayEnergyEnum energy)
 {
     return(_calibrationData[energy].ScaleFactor);
 }
 public Pixel[] GetDarkDataCollection(XRayEnergyEnum energy)
 {
     return(_calibrationData[energy].DarkDataCollection);
 }
 public Pixel[] GetAirData(XRayEnergyEnum energy)
 {
     return(_calibrationData[energy].AirData);
 }
 public void ClearReferenceData(XRayEnergyEnum energy)
 {
     _calibrationData[energy].ClearReferenceData();
 }
 public void AddReferenceData(XRayEnergyEnum energy, double data)
 {
     _calibrationData[energy].AddReferenceData(data);
 }
 public void AddDarkData(XRayEnergyEnum energy, Pixel[] data)
 {
     _calibrationData[energy].Add(PixelDataType.Dark, data);
 }
 public Pixel[] GetDarkDataCollection(XRayEnergyEnum energy)
 {
     return _calibrationData[energy].DarkDataCollection;
 }
 public float[] GetScaleFactor(XRayEnergyEnum energy)
 {
     return _calibrationData[energy].ScaleFactor;
 }
 public float[] GetReferenceData(XRayEnergyEnum energy)
 {
     return _calibrationData[energy].ReferenceData;
 }
Beispiel #19
0
 public override void GetLowEnergyData()
 {
     EnergyType = XRayEnergyEnum.LowEnergy;
 }
 public void AddDarkData(XRayEnergyEnum energy, Pixel[] data)
 {
     _calibrationData[energy].Add(PixelDataType.Dark, data);
 }
Beispiel #21
0
 public override void GetHighEnergyData() { EnergyType = XRayEnergyEnum.HighEnergy; }
 public void AddReferenceData(XRayEnergyEnum energy, double data)
 {
     _calibrationData[energy].AddReferenceData(data);
 }
Beispiel #23
0
        public XRayInfoIDStruct(XRayEnergyEnum energy, byte pulseWidth)
        {
            byte xrayEnergy = (byte)(energy);

            _xRayInfoID = (byte)((pulseWidth << 1) | (xrayEnergy & 1));
        }
 public float[] GetReferenceData(XRayEnergyEnum energy)
 {
     return(_calibrationData[energy].ReferenceData);
 }