Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     urect = new UserRect(new Rectangle(30, 30, 100, 100));
     urect.fixedAR = true;
     //urect2 = new UserRect(new Rectangle(0, 0, 25, 25), Color.Yellow); // could be used for cropping
     urect.SetPictureBox(this.imageBox1);
     //urect2.SetPictureBox(this.imageBox1);
     imageBox1.FunctionalMode = Emgu.CV.UI.ImageBox.FunctionalModeOption.Minimum;
     imageBox1.SizeMode = PictureBoxSizeMode.Zoom;
     srcImage = new Image<Gray, byte>(@"E:\cadelias's Docs\Downloads\Tel Aviv 050.JPG");
     imageBox1.Image = srcImage;
 }
Ejemplo n.º 2
0
 public Form1()
 {
     InitializeComponent();
     urect         = new UserRect(new Rectangle(30, 30, 100, 100));
     urect.fixedAR = true;
     //urect2 = new UserRect(new Rectangle(0, 0, 25, 25), Color.Yellow); // could be used for cropping
     urect.SetPictureBox(this.imageBox1);
     //urect2.SetPictureBox(this.imageBox1);
     imageBox1.FunctionalMode = Emgu.CV.UI.ImageBox.FunctionalModeOption.Minimum;
     imageBox1.SizeMode       = PictureBoxSizeMode.Zoom;
     srcImage        = new Image <Gray, byte>(@"E:\cadelias's Docs\Downloads\Tel Aviv 050.JPG");
     imageBox1.Image = srcImage;
 }