/// <summary> /// Apply a processor to strip out Bayer metadata from a JPEG frame. /// </summary> /// <param name="context">The image context.</param> /// <param name="version">The camera version.</param> /// <returns>The active image context.</returns> public static IFrameProcessingContext StripBayerMetadata(this IFrameProcessingContext context, CameraVersion version) => context.Apply(new BayerMetaProcessor(version));
/// <summary> /// Apply a processor to apply a Demosaic to raw Bayer metadata. /// </summary> /// <param name="context">The image context.</param> /// <returns>The active image context.</returns> public static IFrameProcessingContext Demosaic(this IFrameProcessingContext context) => context.Apply(new DemosaicProcessor());
/// <summary> /// WIP. /// </summary> /// <param name="context">The image context.</param> /// <param name="text">The text to draw.</param> /// <param name="c">The color of the font.</param> /// <returns>The current <see cref="IFrameProcessingContext"/>.</returns> public static IFrameProcessingContext DrawFont(this IFrameProcessingContext context, string text, Color c) => context.Apply(new FontProcessor(text, c));