private void calculateButton_Click(object sender, RoutedEventArgs e) { Console.WriteLine("calculateButton_Click"); //this.writeImageToFirstImageBuffer = true; if (this.verticalProjectingDone && this.horizontalProjectingDone) { this.calculateButton.IsEnabled = false; CorrespondancesBuilder cb = new CorrespondancesBuilder(this.verticalImages, this.horizontalImages, this.projectorWidth, this.projectorHeight); //cb.calculateCorrespondances(); cb.calculateHorizontalCorrespondances(); Console.WriteLine("printTestCorrespondances"); cb.printTestCorrespondances(this.globalDepth, this.coordinateMapper, this.colorMappedToDepthPoints, this.globalDepthFilteredLookup); } }
private void startCalculating() { Console.WriteLine("startCalculating()"); this.calculatingStarted = true; if (this.verticalProjectingDone && this.horizontalProjectingDone) { this.calculateButton.IsEnabled = false; CorrespondancesBuilder cb = new CorrespondancesBuilder(this.verticalImages, this.horizontalImages, this.projectorWidth, this.projectorHeight); //cb.calculateCorrespondances(); cb.calculateHorizontalCorrespondances(); Console.WriteLine("printTestCorrespondances"); cb.printTestCorrespondances(this.globalDepth, this.coordinateMapper, this.colorMappedToDepthPoints, this.globalDepthFilteredLookup); } }