Esempio n. 1
0
        public static IpcImageFits LoadFromFitsDataSingleChannel(FitsData fitsData, int channel)
        {
            var ipcImage = new IpcImageFits(fitsData, channel);

            fitsData.CopyImageSingleChannel(ipcImage.DataPtr, channel);
            return(ipcImage);
        }
Esempio n. 2
0
        public static List <IpcImageFits> LoadFromFitsDataMultiChannel(FitsData fitsData)
        {
            var ipcImageList    = new List <IpcImageFits>();
            var ipcImagePtrList = new List <IntPtr>();

            for (var i = 0; i < fitsData.Channels; i++)
            {
                var ipcImage = new IpcImageFits(fitsData, i);
                fitsData.CopyImageSingleChannel(ipcImage.DataPtr, i);
                ipcImageList.Add(ipcImage);
            }
            return(ipcImageList);
        }