コード例 #1
0
 /// <summary>
 /// Writes an object to file storage.
 /// </summary>
 /// <param name="name">
 /// Name of the written object. Should be <b>null</b> if and only if the parent structure is a sequence.
 /// </param>
 /// <param name="handle">Handle to the written object.</param>
 /// <param name="attributes">The attributes of the object. They are specific for each particular type.</param>
 public void Write(string name, CVHandle handle, AttrList attributes = default(AttrList))
 {
     NativeMethods.cvWrite(this, name, handle, attributes);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Moments"/> structure from the
 /// specified polygon or rasterized shape.
 /// </summary>
 /// <param name="arr">
 /// The handle to the polygon (<see cref="Seq"/>) or rasterized shape (<see cref="IplImage"/>)
 /// from which to compute the moments.
 /// </param>
 /// <param name="binary">
 /// If <b>true</b>, all non-zero image pixels are treated as one.
 /// Used for images only.
 /// </param>
 public Moments(CVHandle arr, bool binary = false)
 {
     NativeMethods.cvMoments(arr, out this, binary ? 1 : 0);
 }