示例#1
0
 public void DefaultNorm()
 {
     using (var alg = LUCID.Create())
     {
         var defnorm = alg.DefaultNorm;
         Assert.Equal(6, defnorm);
     }
 }
示例#2
0
 public void DescriptorSize()
 {
     using (var alg = LUCID.Create())
     {
         var sz = alg.DescriptorSize;
         Assert.Equal(27, sz);
     }
 }
示例#3
0
 public void Compute()
 {
     using (var color = Image("lenna.png", ImreadModes.Color))
         using (var gray = Image("lenna.png", ImreadModes.Grayscale))
             using (var descriptors = new Mat())
                 using (var lucid = LUCID.Create())
                     using (var surf = SURF.Create(500))
                     {
                         var keypoints = surf.Detect(gray);
                         lucid.Compute(color, ref keypoints, descriptors);
                     }
 }
示例#4
0
        public void CreateAndDispose()
        {
            var surf = LUCID.Create();

            surf.Dispose();
        }