示例#1
0
        private void InvokeFill(MediaVisionSource source, ImageFillConfiguration config, Rectangle?area)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            InvokeFill(source.Handle, EngineConfiguration.GetHandle(config), area).
            Validate("Failed to fill the image object");
        }
示例#2
0
 /// <summary>
 /// Fills the image object.<br/>
 /// Extracts data from source image which will be needed for recognition of depicted object
 /// in location.
 /// </summary>
 /// <param name="source">The source image where image object is depicted.</param>
 /// <param name="config">The configuration used for extract recognition data from source. This value can be null.</param>
 /// <param name="rect">Rectangular bound of the image object on the source image.</param>
 /// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
 /// <exception cref="ObjectDisposedException">
 ///     The <see cref="ImageObject"/> has already been disposed of.<br/>
 ///     -or-<br/>
 ///     <paramref name="source"/> has already been disposed of.<br/>
 ///     -or-<br/>
 ///     <paramref name="config"/> has already been disposed of.
 /// </exception>
 /// <since_tizen> 4 </since_tizen>
 public void Fill(MediaVisionSource source, ImageFillConfiguration config, Rectangle rect)
 {
     InvokeFill(source, config, rect);
 }
示例#3
0
 /// <summary>
 /// Fills the image object.<br/>
 /// Extracts data from source image which will be needed for recognition of depicted object.
 /// </summary>
 /// <param name="source">The source image where image object is depicted.</param>
 /// <param name="config">The configuration used for extract recognition data from source. This value can be null.</param>
 /// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
 /// <exception cref="ObjectDisposedException">
 ///     The <see cref="ImageObject"/> has already been disposed of.<br/>
 ///     -or-<br/>
 ///     <paramref name="source"/> has already been disposed of.<br/>
 ///     -or-<br/>
 ///     <paramref name="config"/> has already been disposed of.
 /// </exception>
 /// <since_tizen> 4 </since_tizen>
 public void Fill(MediaVisionSource source, ImageFillConfiguration config)
 {
     InvokeFill(source, config, null);
 }