Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }