Class ImageTargetParameters
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
ImageTargetParameters represents the parameters required to create the `ImageTarget`_.
public class ImageTargetParameters : RefBase, IDisposable
- Inheritance
-
ImageTargetParameters
- Implements
- Inherited Members
Constructors
ImageTargetParameters()
public ImageTargetParameters()
Methods
Clone()
public ImageTargetParameters Clone()
Returns
CloneObject()
protected override object CloneObject()
Returns
image()
Get the image.
public virtual Image image()
Returns
meta()
Get the meta data.
public virtual string meta()
Returns
name()
Get the target name. The name is used to distinguish the target.
public virtual string name()
Returns
scale()
The scaling ratio of the image. Its value is the ratio of the physical size of the image's width to 1 meter, with a default value of 1.
public virtual float scale()
Returns
setImage(Image)
Set the image.
public virtual void setImage(Image image)
Parameters
image
setMeta(string)
Set the meta data.
public virtual void setMeta(string meta)
Parameters
meta
setName(string)
Set the target name.
public virtual void setName(string name)
Parameters
name
setScale(float)
Set the scaling ratio of the image. Its value is the ratio of the physical size of the image's width to 1 meter, with a default value of 1. Also, this model scaling needs to be set separately in the rendering engine.
public virtual void setScale(float scale)
Parameters
scale
setUid(string)
Set the target uid.
public virtual void setUid(string uid)
Parameters
uid
uid()
Get the target uid. The target uid is used in the cloud recognition algorithm. When not accessing cloud recognition, you can set this uid in the json configuration and use it as another way to distinguish targets in your own code.
public virtual string uid()