This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "fastcv.h" | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
int main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Iteration : 1 | |
Zeroth moment : 1020 | |
First moments : 102510,102510 | |
Center : 101,101 | |
Location : 52,52,98,98 | |
Iteration : 2 | |
Zeroth moment : 689520 | |
First moments : 86534760,86534760 | |
Center : 126,126 | |
Location : 77,77,98,98 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clc; close all; clear all; | |
% Generate data | |
org = zeros(200,200,3); | |
org(100:198,100:198,:) = 255; | |
I = org(:,:,1); | |
imshow(I) | |
tic | |
% % |
NewerOlder