Exemple #1
0
 public void TestMSER()
 {
     Image<Gray, Byte> image = new Image<Gray, byte>("stuff.jpg");
      MCvMSERParams param = MCvMSERParams.GetDefaultParameter();
      using (MemStorage storage = new MemStorage())
      {
     Seq<Point>[] mser = image.ExtractMSER(null, ref param, storage);
     {
        foreach(Seq<Point> region in mser)
           image.Draw(region, new Gray(255.0), 2);
     }
      }
 }