public static ImageContent CreateForChannel(int channelIndex) { var c = new ImageContent(); c.Channel = channelIndex; c.Exists = false; c.Height = Int32.MinValue; c.Width = Int32.MinValue; c.FrameCount = Int32.MinValue; c.Luminance = Double.NaN; c.FileSize = 0.0; return c; }
public void SetImageContents(int index, ImageContent content) { bool wasComplete = IsComplete; while (Contents.ImageContents.Count <= index) { Contents.ImageContents.Add(new ImageContent() { Luminance = Double.NaN, Channel = Contents.ImageContents.Count }); } Contents.ImageContents[index] = content; OnPropertyChanged("Contents"); if (wasComplete != IsComplete) { OnPropertyChanged("IsComplete"); } }
private void ManageImplicitMetadata(ImageContent content) { if (content.Exists) { lock (_lock) { if (content.FileSize > ImplicitChannelFileSize && content.FrameCount > ImplicitChannelFrameCount) { Trace.TraceInformation("Setting implicit file size requirement for frame count to {0:F0} MB from evaluating {1} tile.", content.FileSize, IsEmerging ? "emerging" : "existing"); ImplicitChannelFileSize = content.FileSize; Trace.TraceInformation("Setting implicit frame count value to {0} frames from evaluating {1} tile.", content.FrameCount, IsEmerging ? "emerging" : "existing"); ImplicitChannelFrameCount = content.FrameCount; } } } }
public ImageContent Assess(string file, ImageContent current) { throw new NotImplementedException(); }