#include <stdio.h>
#include <math.h>
in A[2][2] = {{ -4, -6},{ 3, 5}}
int main()
{
int a = A[0][0];
int b = A[0][1];
int c = A[1][0];
int d = A[1][1];
布拉怡 發表在 痞客邦 留言(2) 人氣(734)

利用sobel遮罩來做測邊:
測y方向的灰階變化的Mask為 int y[3][3] = { { -1, -2, -1 }, { 0, 0, 0 }, { 1, 2, 1 } };
測x方向的灰階變化的Mask為 int x[3][3] = { { -1, 0, 1 }, { -2, 0, 2 }, {-1, 0, 1 } };
#include<iostream>
#include <cv.h>
#include <highgui.h>
布拉怡 發表在 痞客邦 留言(0) 人氣(857)

步驟
1. 到官網下載最新版OPENCV 官網: http://opencv.org/
布拉怡 發表在 痞客邦 留言(0) 人氣(1,647)