Exemplo n.º 1
0
 public ImageData(IImageArray imageArray, int width, int height, int bitDepth, bool isBayered, ImageMetaData metaData)
 {
     this.Data                  = imageArray;
     this.MetaData              = metaData;
     isBayered                  = metaData.Camera.SensorType != SensorType.Monochrome ? true : isBayered;
     this.Properties            = new ImageProperties(width: width, height: height, bitDepth: bitDepth, isBayered: isBayered, gain: metaData.Camera.Gain);
     this.StarDetectionAnalysis = new StarDetectionAnalysis();
     this.Statistics            = new Nito.AsyncEx.AsyncLazy <IImageStatistics>(async() => await Task.Run(() => ImageStatistics.Create(this)));
 }
Exemplo n.º 2
0
 public ImageData(ushort[] input, int width, int height, int bitDepth, bool isBayered, ImageMetaData metaData)
     : this(
         imageArray : new ImageArray(flatArray : input),
         width : width,
         height : height,
         bitDepth : bitDepth,
         isBayered : isBayered,
         metaData : metaData)
 {
 }