private void button3_Click(object sender, EventArgs e)
        {
            caller.resetData();

            String sourceImageDirectory = textBox1.Text;
            String sourceXmlDirectory   = textBox2.Text;

            double maxRotation = textBox3.Text.Equals("") ? 360 : Double.Parse(textBox3.Text);
            int    maxShift_x  = textBox4.Text.Equals("") ? -1 : Int32.Parse(textBox4.Text);
            int    maxShift_y  = textBox5.Text.Equals("") ? -1 : Int32.Parse(textBox5.Text);
            int    sampleCount = textBox6.Text.Equals("") ? 30 : Int32.Parse(textBox6.Text);

            ImageCreator.createBoxesFromJson(sourceImageDirectory, sourceXmlDirectory, caller.getImageDirectory(), caller.getAnnotationDirectory(), maxRotation, maxShift_x, maxShift_y, sampleCount);
            //ODImageCreator ic = new ODImageCreator(sourceImageDirectory, sourceXmlDirectory, caller.getImageDirectory(), caller.getAnnotationDirectory(), maxRotation, maxShift_x, maxShift_y, sampleCount);
            LocalConfig.setGenerateSettings(new String[] { textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text });
            caller.reloadImageList();
            caller.reloadXmlList();
            this.Close();
        }