コード例 #1
0
        /// <summary>
        /// get intensity values only for aird file
        /// </summary>
        /// <param name="value"> 压缩的数组 </param>
        /// <param name="start">  起始位置 </param>
        /// <param name="length"> 读取长度 </param>
        /// <returns> 解压缩后的数组 </returns>
        public float[] getLogedIntValues(byte[] value, int start, int length)
        {
            var intValues = CompressUtil.zlibDecoderToFloat(value.Skip(start).Take(length).ToArray());

            float[] intensityValues = new float[intValues.Length];
            for (int index = 0; index < intValues.Length; index++)
            {
                intensityValues[index] = (float)Math.Pow(10, intValues[index]);
            }
            return(intensityValues);
        }
コード例 #2
0
        /// <summary>
        /// get intensity values only for aird file
        /// </summary>
        /// <param name="value"> 压缩的数组 </param>
        /// <returns> 解压缩后的数组 </returns>
        public float[] getLogedIntValues(byte[] value)
        {
            var intValues = CompressUtil.zlibDecoderToFloat(value);

            float[] intensityValues = new float[intValues.Length];
            for (int index = 0; index < intValues.Length; index++)
            {
                intensityValues[index] = (float)Math.Pow(10, intValues[index]);
            }
            return(intensityValues);
        }
コード例 #3
0
 /// <summary>
 /// get intensity values only for aird file
 /// </summary>
 /// <param name="value"> 压缩的数组 </param>
 /// <param name="start">  起始位置 </param>
 /// <param name="length"> 读取长度 </param>
 /// <returns> 解压缩后的数组 </returns>
 public float[] getIntValues(byte[] value, int start, int length)
 {
     return(CompressUtil.zlibDecoderToFloat(value.Skip(start).Take(length).ToArray()));
 }
コード例 #4
0
 /// <summary>
 /// get intensity values only for aird file
 /// </summary>
 /// <param name="value"> 压缩的数组 </param>
 /// <returns> 解压缩后的数组 </returns>
 public float[] getIntValues(byte[] value)
 {
     return(CompressUtil.zlibDecoderToFloat(value));
 }