/// <summary>
 /// Draw keypoint matches from two images on the output image.
 /// </summary>
 /// <param name="image1">The first image.</param>
 /// <param name="keyPoints1">The collection of keypoints from the first image.</param>
 /// <param name="image2">The second image.</param>
 /// <param name="keyPoints2">The collection of keypoints from the second image.</param>
 /// <param name="matches">The matches from the first image to the second image.</param>
 /// <param name="outImage">The image where the keypoint matches are to be drawn.</param>
 public static void DrawMatches(
     Arr image1, KeyPointCollection keyPoints1,
     Arr image2, KeyPointCollection keyPoints2,
     DMatchCollection matches, Arr outImage)
 {
     DrawMatches(image1, keyPoints1, image2, keyPoints2, matches, outImage, Scalar.All(-1));
 }
Esempio n. 2
0
        /// <summary>
        /// Performs per-element bit-wise disjunction of a <see cref="double"/> value and a
        /// <see cref="IplImage"/>.
        /// </summary>
        /// <param name="left">The scalar value.</param>
        /// <param name="right">The image value.</param>
        /// <returns>
        /// The result of performing the bit-wise disjunction of <paramref name="left"/>
        /// and <paramref name="right"/>.
        /// </returns>
        public static IplImage operator |(double left, IplImage right)
        {
            var result = new IplImage(right.Size, right.Depth, right.Channels);

            CV.OrS(right, Scalar.All(left), result);
            return(result);
        }
Esempio n. 3
0
        /// <summary>
        /// Performs per-element bit-wise conjunction of a <see cref="IplImage"/> and a
        /// <see cref="double"/> value.
        /// </summary>
        /// <param name="left">The image value.</param>
        /// <param name="right">The scalar value.</param>
        /// <returns>
        /// The result of performing the bit-wise conjunction of <paramref name="left"/>
        /// and <paramref name="right"/>.
        /// </returns>
        public static IplImage operator &(IplImage left, double right)
        {
            var result = new IplImage(left.Size, left.Depth, left.Channels);

            CV.AndS(left, Scalar.All(right), result);
            return(result);
        }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Font"/> class using Qt based glyphs.
 /// </summary>
 /// <param name="nameFont">
 /// Name of the font. The name should match the name of a system font (such as Times).
 /// If the font is not found, a default one is used.
 /// </param>
 /// <param name="pointSize">
 /// Size of the font. If not specified, equal zero or negative, the point size of the
 /// font is set to a system-dependent default value. Generally, this is 12 points.
 /// </param>
 public Font(string nameFont, int pointSize = -1)
     : this(nameFont, pointSize, Scalar.All(0))
 {
 }
 /// <summary>
 /// Draws a visual representation of detected keypoints in an image.
 /// </summary>
 /// <param name="image">The image on which the keypoints were detected.</param>
 /// <param name="keyPoints">The collection of keypoints to draw.</param>
 /// <param name="output">The image where the keypoints are to be drawn.</param>
 public static void DrawKeypoints(Arr image, KeyPointCollection keyPoints, Arr output)
 {
     DrawKeypoints(image, keyPoints, output, Scalar.All(-1));
 }