/// <summary> /// Draw the blobs on the image /// </summary> /// <param name="image">The binary mask.</param> /// <param name="blobs">The blobs.</param> /// <param name="type">Drawing type.</param> /// <param name="alpha">The alpha value. 1.0 for solid color and 0.0 for transparent</param> /// <returns>The images with the blobs drawn</returns> public Image <Bgr, Byte> DrawBlobs(Image <Gray, Byte> image, CvBlobs blobs, BlobRenderType type, double alpha) { Image <Bgr, Byte> result = new Image <Bgr, byte>(image.Size); cvbCvRenderBlobs(Ptr, blobs, image, result, type, alpha); return(result); }
/// <summary> /// Draw the blobs on the image /// </summary> /// <param name="image">The binary mask.</param> /// <param name="blobs">The blobs.</param> /// <param name="type">Drawing type.</param> /// <param name="alpha">The alpha value. 1.0 for solid color and 0.0 for transparent</param> /// <returns>The images with the blobs drawn</returns> public Image<Bgr, Byte> DrawBlobs(Image<Gray, Byte> image, CvBlobs blobs, BlobRenderType type, double alpha) { Image<Bgr, Byte> result = new Image<Bgr, byte>(image.Size); CvInvoke.cvbCvRenderBlobs(Ptr, blobs, image, result, type, alpha); return result; }