We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0fa983e + d4c7c05 commit 157888aCopy full SHA for 157888a
1 file changed
src/gab/opencv/Flow.java
@@ -59,7 +59,7 @@ public PVector getTotalFlowInRegion(int x, int y, int w, int h) {
59
60
public PVector getAverageFlowInRegion(int x, int y, int w, int h) {
61
PVector total = getTotalFlowInRegion(x, y, w, h);
62
- return new PVector(total.x/(flow.width() * flow.height()), total.y/(flow.width()*flow.height()));
+ return new PVector(total.x/(w*h), total.y/(w*h));
63
}
64
65
public PVector getTotalFlow() {
0 commit comments