Class ImageTrackingModel

    Definition

    Namespace:
    Tizen.Multimedia.Vision
    Assembly:
    Tizen.Multimedia.Vision.dll

    Represents the image tracking model interface.

    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    public class ImageTrackingModel : IDisposable
    Inheritance
    object
    ImageTrackingModel
    Implements
    System.IDisposable

    Constructors

    View Source

    ImageTrackingModel()

    Initializes a new instance of the ImageTrackingModel class.

    Declaration
    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    public ImageTrackingModel()
    Exceptions
    Type Condition
    System.NotSupportedException

    The feature is not supported.

    View Source

    ImageTrackingModel(string)

    Initializes a new instance of the ImageTrackingModel class with the specified path.

    Declaration
    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    public ImageTrackingModel(string modelPath)
    Parameters
    Type Name Description
    string modelPath

    Path to the model to load.

    Remarks

    Model saved by Save(string) can be loaded.

    Exceptions
    Type Condition
    System.ArgumentNullException

    modelPath is null.

    System.IO.FileNotFoundException

    modelPath is invalid.

    System.NotSupportedException

    The feature is not supported.
    -or-
    modelPath is not supported format.

    System.UnauthorizedAccessException

    No permission to access the specified file.

    See Also
    Save(string)

    Methods

    View Source

    Dispose()

    Releases all resources used by the ImageTrackingModel object.

    Declaration
    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    public void Dispose()
    View Source

    Dispose(bool)

    Releases the resources used by the ImageTrackingModel object.

    Declaration
    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources.

    View Source

    ~ImageTrackingModel()

    Finalizes an instance of the ImageTrackingModel class.

    Declaration
    protected ~ImageTrackingModel()
    View Source

    Refresh()

    Refreshes the state of image tracking model.
    Clears the moving history and change state to undetected. It is usually called each time before tracking is started for the new sequence of sources, which is not the direct continuation of the sequence for which tracking has been performed before. Tracking algorithm will try to find image by itself.

    Declaration
    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    public void Refresh()
    Exceptions
    Type Condition
    System.ObjectDisposedException

    The ImageTrackingModel has already been disposed of.

    View Source

    Save(string)

    Saves the tracking model to the file.

    Declaration
    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    public void Save(string path)
    Parameters
    Type Name Description
    string path

    Path to the file to save the model.

    Exceptions
    Type Condition
    System.ArgumentNullException

    path is null.

    System.UnauthorizedAccessException

    No permission to write to the specified path.

    System.ObjectDisposedException

    The ImageTrackingModel has already been disposed of.

    System.IO.DirectoryNotFoundException

    The directory for path does not exist.

    View Source

    SetTarget(ImageObject)

    Sets the target of the image tracking model.
    Sets the image object which will be tracked by using tracking functionality with this tracking model.

    Declaration
    [Obsolete("Deprecated since API12. Will be removed in API15.")]
    public void SetTarget(ImageObject imageObject)
    Parameters
    Type Name Description
    ImageObject imageObject

    Image object which will be set as the target for tracking.

    Exceptions
    Type Condition
    System.ArgumentNullException

    imageObject is null.

    System.ObjectDisposedException

    The ImageTrackingModel has already been disposed of.
    -or-
    imageObject has already been disposed of.

    System.InvalidOperationException

    Internal error.(Since API level 10)

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX