コード例 #1
0
        /// <summary>
        /// Draw the keypoints found on the image.
        /// </summary>
        /// <param name="image">The image</param>
        /// <param name="keypoints">The keypoints to be drawn</param>
        /// <param name="color">The color used to draw the keypoints</param>
        /// <param name="type">The drawing type</param>
        /// <param name="outImage">The image with the keypoints drawn</param>
        public static void DrawKeypoints(
            IInputArray image,
            VectorOfKeyPoint keypoints,
            IInputOutputArray outImage,
            Bgr color,
            Features2DToolbox.KeypointDrawType type = KeypointDrawType.Default)
        {
            MCvScalar c = color.MCvScalar;

            using (InputArray iaImage = image.GetInputArray())
                using (InputOutputArray ioaOutImage = outImage.GetInputOutputArray())
                    Features2DInvoke.drawKeypoints(iaImage, keypoints, ioaOutImage, ref c, type);
        }