Skip to content

Instantly share code, notes, and snippets.

View arccoder's full-sized avatar

Akshay Chavan arccoder

  • MA, USA
View GitHub Profile
@arccoder
arccoder / fastcv_rgb_to_gray.cpp
Created October 3, 2016 23:57
Convert RGB color image to Grayscale using FastCV
#include "fastcv.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
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
@arccoder
arccoder / meanshift.m
Last active April 23, 2016 17:21
Mean shift - Toy Example
clc; close all; clear all;
% Generate data
org = zeros(200,200,3);
org(100:198,100:198,:) = 255;
I = org(:,:,1);
imshow(I)
tic
% %