Commit 78002a6b authored by Andrey Filippov's avatar Andrey Filippov
Browse files

Center of mass calculation for X/Y motion vector

parent 82ae5d53
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -452,7 +452,7 @@ public class Correlation2d {
    		    		tcorr[col],
    		    		tcorr[col],
    		    		fat_zero/scale_value);
    		    		fat_zero/scale_value);


    		 if (first_col < 0) {// accummulate all channels in first non-null color ( 0 for color, 2 for mono?)
    		 if (first_col < 0) {// accumulate all channels in first non-null color ( 0 for color, 2 for mono?)
    			 first_col = col; // first non-empty color (2, green) or 0 for color images
    			 first_col = col; // first non-empty color (2, green) or 0 for color images
    			 for (int n = 0; n < 4; n++) {
    			 for (int n = 0; n < 4; n++) {
    				 for (int i = 0; i < transform_len; i++) {
    				 for (int i = 0; i < transform_len; i++) {
+73 −125

File changed.

Preview size limit exceeded, changes collapsed.

+508 −27

File changed.

Preview size limit exceeded, changes collapsed.

+6 −5
Original line number Original line Diff line number Diff line
@@ -8297,6 +8297,7 @@ if (debugLevel > -100) return true; // temporarily !
			double [][][] pair_sets =
			double [][][] pair_sets =
					opticalFlow.get_pair(
					opticalFlow.get_pair(
							clt_parameters, // CLTParameters  clt_parameters,
							k_prev,
							k_prev,
							quadCLTs[i],
							quadCLTs[i],
							qPrev,
							qPrev,