Beispiel #1
0
 public void DefaultNorm()
 {
     using (var alg = LATCH.Create())
     {
         var defnorm = alg.DefaultNorm;
         Assert.Equal(6, defnorm);
     }
 }
Beispiel #2
0
 public void DescriptorSize()
 {
     using (var alg = LATCH.Create())
     {
         var sz = alg.DescriptorSize;
         Assert.Equal(32, sz);
     }
 }
Beispiel #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 latch = LATCH.Create())
                     using (var surf = SURF.Create(500))
                     {
                         var keypoints = surf.Detect(gray);
                         latch.Compute(color, ref keypoints, descriptors);
                     }
 }
Beispiel #4
0
        public void CreateAndDispose()
        {
            var surf = LATCH.Create();

            surf.Dispose();
        }