示例#1
0
        /// <inheritdoc />
        public DicomRange<double> GetMinMax(int padding)
        {
            if (Data == null || Data.Length == 0)
            {
                return default(DicomRange<double>);
            }

            var range = new DicomRange<double>(double.MaxValue, double.MinValue);
            Data.Where(v => v != padding).Each(v => range.Join(v));
            return range;
        }
示例#2
0
        /// <inheritdoc />
        public DicomRange <double> GetMinMax()
        {
            if (Data == null || Data.Length == 0)
            {
                return(default(DicomRange <double>));
            }

            var range = new DicomRange <double>(double.MaxValue, double.MinValue);

            Data.Each(v => range.Join(v));
            return(range);
        }