private void useHaarInsideExternalContour_button_Click(object sender, EventArgs e) { Bitmap bmpWidthGivenEdge = new Bitmap(pictureBox4.Image); Bitmap bmpInsideTheContour = CannyWithHaarWavelet.FindEdgesInsideGivenEdge(bmpWidthGivenEdge, this.imageArray); HaarForm newHaarForm = new HaarForm(Int32.Parse(waveletLength_textBox.Text), Convert.ToDouble(bottomThresholdHaar_textBox.Text), Convert.ToDouble(upperThresholdHaar_textBox.Text), bmp = bmpInsideTheContour); newHaarForm.Show(); }
public AnalysisOfMethods(double sigma, double bottomThresholdCanny, double upperThresholdCanny, int waveletLength, double bottomThresholdHaar, double upperThresholdHaar, int widthOfBrightnessDiffer, double snr = -1) { InitializeComponent(); this.sigma = sigma; this.bottomThresholdCanny = bottomThresholdCanny; this.upperThresholdCanny = upperThresholdCanny; this.waveletLength = waveletLength; this.bottomThresholdHaar = bottomThresholdHaar; this.upperThresholdHaar = upperThresholdHaar; this.widthOfBrightnessDiffer = widthOfBrightnessDiffer; this.snr = snr; double[] prettCrit = DoTheAnalysis(sigma, bottomThresholdCanny, upperThresholdCanny, waveletLength, bottomThresholdHaar, upperThresholdHaar, widthOfBrightnessDiffer, snr); this.Canny_label.Text = prettCrit[0].ToString(); this.Haar_label.Text = prettCrit[1].ToString(); CannyForm.Show(); HaarForm.Show(); }
private void useHaarInCannyMethod_button_Click(object sender, EventArgs e) { HaarForm HaarForm = new HaarForm(filePath, Int32.Parse(waveletLength_textBox.Text), Convert.ToDouble(bottomThresholdHaar_textBox.Text), Convert.ToDouble(upperThresholdHaar_textBox.Text)); //создаем окно для вывода результатов метода Канни, передавая путь к выбранному файлу HaarForm.Show(); }