Example #1
0
File: Image.cs Project: bHimes/warp
        public Image AsAmplitudes()
        {
            if (IsHalf || !IsComplex)
            {
                throw new Exception("Data type not supported.");
            }

            Image Amplitudes = new Image(IntPtr.Zero, Dims, IsFT, false, false);

            GPU.Amplitudes(GetDevice(Intent.Read), Amplitudes.GetDevice(Intent.Write), ElementsComplex);

            return(Amplitudes);
        }