Search Results for

    Show / Hide Table of Contents

    Class BaseUsingCopyPartialFilter

    Base class for filters, which require source image backup to make them applicable to source image (or its part) directly.

    Inheritance
    Object
    BaseUsingCopyPartialFilter
    CannyEdgeDetector
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: AForge.Imaging.Filters
    Assembly: TowseyLibrary.dll
    Syntax
    public abstract class BaseUsingCopyPartialFilter
    Remarks

    The base class is used for filters, which can not do direct manipulations with source image. To make effect of in-place filtering, these filters create a background copy of the original image (done by this base class) and then do manipulations with it putting result back to the original source image.

    note

    The background copy of the source image is created only in the case of in-place filtering. Otherwise background copy is not created - source image is processed and result is put to destination image.

    The base class is for those filters, which support as filtering entire image, as partial filtering of specified rectangle only.

    Methods

    | Improve this Doc View Source

    Apply(Image<Rgb24>)

    Apply filter to an image.

    Declaration
    public Image<L8> Apply(Image<Rgb24> imageData)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> imageData

    Source image to apply filter to.

    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.L8>

    Returns filter's result obtained by applying the filter to the source image.

    Remarks

    The filter accepts bitmap data as input and returns the result of image processing filter as new image. The source image data are kept unchanged.

    | Improve this Doc View Source

    ProcessFilter(Image<Rgb24>, Image<L8>, Rectangle)

    Process the filter on the specified image.

    Declaration
    protected abstract void ProcessFilter(Image<Rgb24> sourceData, Image<L8> destinationData, Rectangle rect)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> sourceData

    Source image data.

    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.L8> destinationData

    Destination image data.

    SixLabors.ImageSharp.Rectangle rect

    Image rectangle for processing by the filter.

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top