Exemplo n.º 1
0
 public void Edit()
 {
     RawTexture2D rawTexture = new RawTexture2D (image);
     rawTexture.Grayscale ();
     rawTexture.OtsuThreshold();
     rawTexture.ZhangSuenThinning ();
     this.GetComponent<RawImage> ().texture = rawTexture.ToTexture2D ();
 }