Programming/openCV2015. 10. 20. 16:37

SIFT (Scale-invariant feature transform)

PCA-SIFT (Principle Component Analysis)

SURF (Speeded Up Robust Features)

FLANN (Fast Library for Approximate Nearest Neighbors)

---

opencv 3.0.0 문서중 sift 관련

[링크 : http://docs.opencv.org/master/da/df5/tutorial_py_sift_intro.html]


FLANN stands for Fast Library for Approximate Nearest Neighbors

[링크 : http://docs.opencv.org/master/dc/dc3/tutorial_py_matcher.html]


sift 예제

[링크 : http://thinkpiece.tistory.com/246]


nonfree에 속해있는 모듈이다..

[링크 : http://docs.opencv.org/2.4.1/modules/nonfree/doc/feature_detection.html]

[링크 : http://docs.opencv.org/2.4.1/modules/nonfree/doc/nonfree.html]


SIFT(Scale-invariant feature transform), Lowe, 2004

PCA-SIFT(Principle Component Analysis), Page on y.ke, 2004

SURF(Speeded Up Robust Features), Bay, 2006

[링크 : https://www.quora.com/.../Difference-between-SURF-and-SIFT-where-and-when-to-use-this-algo]

[링크 : http://stackoverflow.com/questions/11172408/surf-vs-sift-is-surf-really-faster]


SIFT는 기본적으로 특징점 주변의 로컬한 gradient 분포특성(밝기 변화의 방향 및 밝기 변화의 급격한 정도)을 표현하는 feature이다. SIFT를 포함한 SURF, ORB 등의 local feature들은 대상의 크기변화, 형태변화, 방향(회전)변화에 강인하면서도 구분력이 뛰어난 어찌보면 서로 상충되는 목표를 동시에 만족시키고자 개발된 것들로서 통상적으로 원래 물체의 기하학적 정보는 무시하고 특징점 단위로 혹은 코드북(code book) 단위로 매칭을 수행한다.

[링크 : http://darkpgmr.tistory.com/116]


surf 예제

[링크 : http://www.haenaki.com/141]

'Programming > openCV' 카테고리의 다른 글

휴 모멘트?  (0) 2015.10.20
opencv 카메라 왜곡 수정  (0) 2015.10.20
시야각 내 각도 계산  (0) 2015.10.14
openCV + openMP 합치는게 잘 안되네?  (0) 2015.10.11
opencv 마우스 이벤트와 빠르게 그리기  (0) 2015.10.05
Posted by 구차니
이론 관련/전기 전자2015. 10. 20. 16:06

programmable DMOS slw rate라는 용어가 나와서

DMOS를 검색..

power mosfet 문서에서나 나오는 걸로 봐서는..

power management ic쪽인 듯?


MOS - metal–oxide–semiconductor

CMOS - Complementary metal–oxide–semiconductor

FET - field-effect transistor 

MOSFET - metal–oxide–semiconductor field-effect transistor 

VDMOS - Vertical Diffused MOS

DMOS - double-diffused MOS


[링크 : https://en.wikipedia.org/wiki/CMOS]

[링크 : https://en.wikipedia.org/wiki/Field-effect_transistor]

[링크 : https://en.wikipedia.org/wiki/Power_MOSFET]

'이론 관련 > 전기 전자' 카테고리의 다른 글

solid state  (0) 2016.01.17
디지털 서보(?)  (0) 2015.11.24
PID 제어 (Proportional Integral Differential)  (0) 2015.10.13
전류제어  (0) 2015.09.11
디지털 필터 - FIR / IIR  (0) 2015.01.23
Posted by 구차니

대충 위키보고 짜고 성능은 나중에 생각하지 머..

국문위키에서 공식대로 따라가야 하는데

순서를 바꾸거나 생략할 수 있는 묘안이 없으려나?


$ ./a.out

alpha : 43.2

beta : 78.1

dist : 10

MC : 8.27144 


$ cat tri.c

#include <iostream>
#include <math.h>

using namespace std;

const double PI = 3.1415926535;

double SIN(double val)
{
        return sin(PI * val / 180.0);
}

double COS(double val)
{
        return cos(PI * val / 180.0);
}

int main(int argc, char** argv)
{
double alpha; // servo angle (left)
double beta; // servo angle (right)
double gamma = 0.0;
double AB; // distance of eye(10cm)
double AC = 0.0;
double BC = 0.0;
double RC = 0.0;
double MR = 0.0;
double MC = 0.0; // result

//alpha = 54;
//beta = 54;
//AB = 10;//

cout << "alpha : ";
cin >> alpha;
cout << "beta : ";
cin >> beta;
cout << "dist : ";
cin >> AB;

gamma = 180 - (alpha + beta);
AC = AB * SIN(beta) / SIN(gamma);
BC = AB * SIN(beta) / SIN(gamma);
RC =  AC * SIN(alpha);

MR = (AB / 2) - (BC * COS(beta));
MC = sqrt((MR * MR) + (RC * RC));

cout << "MC : " << MC << endl;
}


[링크 : https://en.wikipedia.org/wiki/Triangulation]

[링크 : http://linux.die.net/man/3/sin] 항상 그렇지만.. 라디안 값

[링크 : http://enter.tistory.com/60]

'이론 관련 > 사진 광학 관련' 카테고리의 다른 글

포칼 리듀서 / 스피드 부스터  (0) 2016.04.26
안구 해부도?  (0) 2015.11.01
카메라의 원리  (0) 2015.09.09
스테레오 카메라 - 에피폴라 제한조건  (0) 2015.08.25
샤프니스 계산  (0) 2015.05.28
Posted by 구차니
하드웨어/Storage2015. 10. 19. 09:50

svn://으로 접속하게 하네...

일단 집에가서 3690번 포트 열어줘야 할 듯..









'하드웨어 > Storage' 카테고리의 다른 글

synology undelete 시도 T.T  (0) 2015.12.27
synology port  (0) 2015.12.22
microSD 슬롯 락 관련  (2) 2015.08.06
xpenology  (0) 2015.06.30
DS213j 하이버네이트 정상작동중!  (0) 2015.06.25
Posted by 구차니

동일한 맵에서 유닛만 다르게 하는 거네..

MELT DOWN에서 막혀서 멘붕... 크아앙 ㅠㅠ































Posted by 구차니

스팀 161


오리진 44 - 1


'게임 > 오리진&스팀&유플레이' 카테고리의 다른 글

걍 지름 - 위클리 험블번들  (0) 2015.11.06
캡콤 험블번들 지름  (0) 2015.10.23
스팀의 선물(?) - 암네시아  (0) 2015.09.16
오리진의 선물... 재탕이라니!  (0) 2015.09.16
오리진의 선물  (0) 2015.07.12
Posted by 구차니
embeded/raspberry pi2015. 10. 16. 09:48


balanced 모드(기본값)에서는 N/M (date / range)


When MSEN=0, which is the default mode, data to be sent is interpreted as the value N of the algorithm explained above. Number of clock cycles (range) used to send data is the value M of the algorithm. Pulses are sent within this range so that the resulting duty cycle is N/M. Channel sends its output continuously as long as data register is used, or buffer is used and it is not empty.  


mark-space 모드에서는 M/S (data / range)


When MSEN=1, PWM block does not use the algorithm explained above, instead it sends serial data with the M/S ratio as in the picture below. M is the data to be sent, and S is the range. This mode may be preferred if high frequency modulation is not required or has negative effects. Channel sends its output continuously as long as data register is used, or buffer is used and it is not empty. 


[링크 : http://www.farnell.com/datasheets/1521578.pdf] 139page

'embeded > raspberry pi' 카테고리의 다른 글

clcd - bona cm04075 / lc1628  (0) 2015.11.04
라즈베리 파이 CLCD 라이브러리  (0) 2015.11.03
wiringpi pwm 라이브러리 분석?  (0) 2015.10.16
라즈베리 파이 GPIO 유틸 PWM  (0) 2015.10.14
DHT-11 DHT-22 RHT-03  (0) 2015.10.14
Posted by 구차니
embeded/raspberry pi2015. 10. 16. 09:46

데이터 시트상으로는 PWM 1과 PWM 2 채널 독립적으로

모드를 설정하여 사용이 가능해야 하나...

wiringPi에서는 편의상.. 걍 묶어 버렸다!!!!


wiringPi/wiringPi $ vi wiringPi.c

void pwmSetMode (int mode)

{

  if ((wiringPiMode == WPI_MODE_PINS) || (wiringPiMode == WPI_MODE_PHYS) || (wiringPiMode == WPI_MODE_GPIO))

  {

    if (mode == PWM_MODE_MS)

      *(pwm + PWM_CONTROL) = PWM0_ENABLE | PWM1_ENABLE | PWM0_MS_MODE | PWM1_MS_MODE ;

    else

      *(pwm + PWM_CONTROL) = PWM0_ENABLE | PWM1_ENABLE ;

  }

}


void pwmSetRange (unsigned int range)

{

  if ((wiringPiMode == WPI_MODE_PINS) || (wiringPiMode == WPI_MODE_PHYS) || (wiringPiMode == WPI_MODE_GPIO))

  {

    *(pwm + PWM0_RANGE) = range ; delayMicroseconds (10) ;

    *(pwm + PWM1_RANGE) = range ; delayMicroseconds (10) ;

  }

}


void pwmSetClock (int divisor)

{

  uint32_t pwm_control ;

  divisor &= 4095 ;


  if ((wiringPiMode == WPI_MODE_PINS) || (wiringPiMode == WPI_MODE_PHYS) || (wiringPiMode == WPI_MODE_GPIO))

  {

    if (wiringPiDebug)

      printf ("Setting to: %d. Current: 0x%08X\n", divisor, *(clk + PWMCLK_DIV)) ;


    pwm_control = *(pwm + PWM_CONTROL) ;                // preserve PWM_CONTROL


// We need to stop PWM prior to stopping PWM clock in MS mode otherwise BUSY

// stays high.


    *(pwm + PWM_CONTROL) = 0 ;                          // Stop PWM


// Stop PWM clock before changing divisor. The delay after this does need to

// this big (95uS occasionally fails, 100uS OK), it's almost as though the BUSY

// flag is not working properly in balanced mode. Without the delay when DIV is

// adjusted the clock sometimes switches to very slow, once slow further DIV

// adjustments do nothing and it's difficult to get out of this mode.


    *(clk + PWMCLK_CNTL) = BCM_PASSWORD | 0x01 ;        // Stop PWM Clock

      delayMicroseconds (110) ;                 // prevents clock going sloooow


    while ((*(clk + PWMCLK_CNTL) & 0x80) != 0)  // Wait for clock to be !BUSY

      delayMicroseconds (1) ;


    *(clk + PWMCLK_DIV)  = BCM_PASSWORD | (divisor << 12) ;


    *(clk + PWMCLK_CNTL) = BCM_PASSWORD | 0x11 ;        // Start PWM clock

    *(pwm + PWM_CONTROL) = pwm_control ;                // restore PWM_CONTROL


    if (wiringPiDebug)

      printf ("Set     to: %d. Now    : 0x%08X\n", divisor, *(clk + PWMCLK_DIV)) ;

  }

}




'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 CLCD 라이브러리  (0) 2015.11.03
bcm2835 pwm 데이터시트  (0) 2015.10.16
라즈베리 파이 GPIO 유틸 PWM  (0) 2015.10.14
DHT-11 DHT-22 RHT-03  (0) 2015.10.14
dSPIN_raspi / L6470 / sparkfun  (0) 2015.10.12
Posted by 구차니

오랫만에 홈페이지 갔더니

이상한 요금제가 있어서 114 센터 전화하고 물어봐서 변경!

그대로라고 하더니 음성이 조금 더 싸지고 기본료도 싸지고!

그런데 이런 중요한(!) 정보는 좀 지들이 알려줘야 하는거 아냐!?!?

이제 사라진 4500원 짜리 요금제에서 다른걸로 바꾸라고 해줘야지!!! 버럭



기존은 반값기본요금제로 9000->4500원(VAT별도)

음성 1.8 / 문자 15 / 데이터 20.48


에서


후불1500 (1500 VAT별도)

음성 1.5 / 문자 15 / 데이터 20.48 로 더 나아진 서비스가 되려나?



'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

다음달은 5천원을 목표로!!  (0) 2015.11.13
smardi GAM.r  (0) 2015.10.24
디펜스 성공!  (0) 2015.05.15
드디어!! 약정 할부 끝? ㅋㅋ  (0) 2015.03.16
안드로이드 asec / apk  (0) 2015.02.15
Posted by 구차니
embeded/raspberry pi2015. 10. 14. 22:44

1024 로 설정되면

30 ~ 110 범위로 180도를 오가는지라 해상도가 낮아졌는데

100으로 설정하고 range를 키워주면 상당부분 해소 될듯

기존의 80/180=2.25도에서 320/180=0.56도로 4배 정도 해상도가 향상된다.


$ gpio mode 1 pwm

$ gpio pwm-ms


$ gpio pwmc 400

$ gpio pwmr 1024

$ gpio pwm 1 30

$ gpio pwm 1 70

$ gpio pwm 1 110 


$ gpio pwmc 200

$ gpio pwmr 2048

$ gpio pwm 1 60

$ gpio pwm 1 140

$ gpio pwm 1 220


$ gpio pwmc 100

$ gpio pwmr 4096

$ gpio pwm 1 120

$ gpio pwm 1 280

$ gpio pwm 1 440



2015/06/22 - [개소리 왈왈/라즈베리 파이(rpi)] - 라즈베리 파이 2 PWM-MS 모드 servo 제어


'embeded > raspberry pi' 카테고리의 다른 글

bcm2835 pwm 데이터시트  (0) 2015.10.16
wiringpi pwm 라이브러리 분석?  (0) 2015.10.16
DHT-11 DHT-22 RHT-03  (0) 2015.10.14
dSPIN_raspi / L6470 / sparkfun  (0) 2015.10.12
라즈베리 파이 홈페이지 내용 업데이트 - pi 2b  (0) 2015.10.09
Posted by 구차니