Permalink
Browse files

possibly fix a compilation error on macOS with xcode4

  • Loading branch information...
1 parent 67273fb commit 951ab397fbb50f4c05f5d356741e902d2f333e7e @hvfrancesco committed Jan 22, 2012
Showing with 12 additions and 3 deletions.
  1. +7 −0 .gitignore
  2. +5 −3 src/homography.cpp
View
@@ -17,6 +17,13 @@ CVS/
/bin/projection_mapping*
/bin/lpmt*
/bin/data/_*.xml
+/bin/data/*red*.xml
+/bin/data/*green*.xml
+/bin/data/*blu*.xml
+/bin/data/*alpha*.xml
+/bin/data/*trigger*.xml
+/bin/data/*elementPosition*.xml
+/bin/data/defaultTimeline*.xml
/bin/data/video/house*
.frag
.xml
View
@@ -184,8 +184,6 @@ ofPoint quad::findWarpedPoint(ofPoint src[4], ofPoint dst[4], ofPoint point) {
ofMatrix4x4 warpMatrix;
ofMatrix3x3 homographyMatrix;
- float multMatrix[3][3];
-
srcPoint.x = (float)point.x;
srcPoint.y = (float)point.y;
srcPoint.z = 1.0;
@@ -195,7 +193,11 @@ ofPoint quad::findWarpedPoint(ofPoint src[4], ofPoint dst[4], ofPoint point) {
homographyMatrix.invert();
- multMatrix = {{homographyMatrix[0], homographyMatrix[1], homographyMatrix[2]}, {homographyMatrix[3], homographyMatrix[4], homographyMatrix[5]}, {homographyMatrix[6], homographyMatrix[7], homographyMatrix[8]}};
+ float multMatrix[3][3] = {
+ {homographyMatrix[0], homographyMatrix[1], homographyMatrix[2]},
+ {homographyMatrix[3], homographyMatrix[4], homographyMatrix[5]},
+ {homographyMatrix[6], homographyMatrix[7], homographyMatrix[8]},
+ };
for (int i=0; i<3; i++) {

0 comments on commit 951ab39

Please sign in to comment.