public override ILCell GenerateTestArrays() {
     ILCell byteCell = new ILTestProviderUInt16().GenerateTestArrays(); 
     ILCell ret = new ILCell(byteCell.Dimensions[0],byteCell.Dimensions[1]); 
     int counter = 0; 
     foreach (ILBaseArray arr in byteCell.Values) {
         if (arr is ILArray<UInt16>) {
             ILArray<UInt16> arrB = arr as ILArray<UInt16>; 
             ret[counter++,0] = ILMath.touint32(arrB); 
         }
     }
     return ret; 
 }
示例#2
0
        public override ILCell GenerateTestArrays()
        {
            ILCell byteCell = new ILTestProviderUInt16().GenerateTestArrays();
            ILCell ret      = new ILCell(byteCell.Dimensions[0], byteCell.Dimensions[1]);
            int    counter  = 0;

            foreach (ILBaseArray arr in byteCell.Values)
            {
                if (arr is ILArray <UInt16> )
                {
                    ILArray <UInt16> arrB = arr as ILArray <UInt16>;
                    ret[counter++, 0] = ILMath.touint32(arrB);
                }
            }
            return(ret);
        }