'Programming'에 해당되는 글 1721건

  1. 2016.09.07 glxgears 소스
  2. 2016.07.18 cpp this
  3. 2016.07.18 stitch / opencv / python
  4. 2016.07.18 class 기본 접근제한자
  5. 2016.07.18 cpp 매크로 __PRETTY_FUNCTION__
  6. 2016.07.14 php hiphop
  7. 2016.07.14 opencv stitch
  8. 2016.07.13 opencv rtsp
  9. 2016.07.12 cpp dlopen / gcc -l
  10. 2016.07.11 cpp thread.... / pthread
Programming/openGL2016. 9. 7. 14:46

웬지 벤치마크 용으로 쓰이는 예제

카메라 위치 라던가 애니메이션이라던가

기어 크기라던가 중심으로 분석해봐야지


[링크 : https://fossies.org/dox/mesa-demos-8.3.0/glxgears_8c_source.html]

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

openGL Stereoscopic  (0) 2018.04.25
openGL cardboard lens distortion  (0) 2018.04.25
opencv opengl  (0) 2016.02.26
opengl camera의 이해  (0) 2016.02.02
myAHRS cube 예제  (0) 2016.02.02
Posted by 구차니
Programming/C++ STL2016. 7. 18. 20:57



[링크 : http://www.learncpp.com/cpp-tutorial/8-8-the-hidden-this-pointer/]


문득 this를 쓰면 잘못된게 아닐까? 라는 생각

문법으로도 지원하는 자기자신을 의미하지만

크게 쓸 의미도 없고 (명시적으로 표기한다면야 머...)

굳이 명시적으로 써야할 멤버 함수 인자의 명칭과 클래스 멤버 변수가 충돌할경우?


[링크 : http://stackoverflow.com/questions/6779645/use-of-this-keyword-in-c]

[링크 : http://stackoverflow.com/questions/2337540/when-should-you-use-the-this-keyword-in-c]

'Programming > C++ STL' 카테고리의 다른 글

c++ 함수 인자 기본값  (0) 2017.11.08
cpp string compare 와 ==  (0) 2017.01.31
class 기본 접근제한자  (0) 2016.07.18
cpp 매크로 __PRETTY_FUNCTION__  (0) 2016.07.18
cpp dlopen / gcc -l  (0) 2016.07.12
Posted by 구차니
Programming/openCV2016. 7. 18. 19:01

라즈베리에서 돌릴려고 하니 이미지가 큰지 segmentation fault가 뜨네 ㅠㅠ



소스는 해당 링크에서 다운로드..

클래스는 소스가 웹상에 없으니 이메일 써주고 받는게 속 편함

[링크 : http://www.pyimagesearch.com/2016/01/11/opencv-panorama-stitching/]



ImportError: No module named cv2

요런 에러 뜨면 패키지가 덜 설치 된거니 추가 설치 필요함


$ sudo apt-get install libopencv-dev python-opencv

[링크 : http://raspberrypi.stackexchange.com/questions/29148/python-cannot-import-opencv-module]

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

openCV release mode와 debug mode 속도 차이  (0) 2018.03.19
openCV multicore support  (0) 2018.03.19
opencv stitch  (0) 2016.07.14
opencv rtsp  (0) 2016.07.13
openMP + openCV 실패한 이유가..  (0) 2015.11.27
Posted by 구차니
Programming/C++ STL2016. 7. 18. 17:47

말은 거창한데..


결론

class 내에 기본적으로 모든 유형에 대해서 

private:로 설정됨


[링크 : http://www.cplusplus.com/doc/tutorial/classes/]



근데 이런것도 정리 안해놧었나 -ㅁ-?!?!??

'Programming > C++ STL' 카테고리의 다른 글

cpp string compare 와 ==  (0) 2017.01.31
cpp this  (0) 2016.07.18
cpp 매크로 __PRETTY_FUNCTION__  (0) 2016.07.18
cpp dlopen / gcc -l  (0) 2016.07.12
cpp thread.... / pthread  (0) 2016.07.11
Posted by 구차니
Programming/C++ STL2016. 7. 18. 17:39

__FUNC__

는 매크로에서 지원하는 함수명 출력명인데..

클래스를 포함하려면


비표준이지만(gcc/clagn)

__PRETTY_FUNCTION__

를 쓰면 클래스:함수명 이렇게 나온다고 한다.


[링크 : http://stackoverflow.com/questions/11988895/g-function-on-methods-with-class-name]


$ cat func.cpp

#include <iostream>


using namespace std;


class AAA

{

public:

        int a;

        int get();

        int set(int val);

};


int AAA::get()

{

        cout << __func__ << endl;

        cout << __PRETTY_FUNCTION__ << endl;

        return a;

}


int AAA::set(int val)

{

        cout << __func__ << endl;

        cout << __PRETTY_FUNCTION__ << endl;

        a = val;

}


int main()

{

        AAA a;

        a.set(1);

        a.get();

        return 0;


$ g++ func.cpp

$ ./a.out

set

int AAA::set(int)

get

int AAA::get()


'Programming > C++ STL' 카테고리의 다른 글

cpp this  (0) 2016.07.18
class 기본 접근제한자  (0) 2016.07.18
cpp dlopen / gcc -l  (0) 2016.07.12
cpp thread.... / pthread  (0) 2016.07.11
객체지향과 if문?  (0) 2016.07.11
Posted by 구차니
Programming/php2016. 7. 14. 20:47

페이스 북에서 먼가 한다고 듣긴했었는데..

php 를 미리 컴파일 해서 더 빠른 서비스를 위한 녀석?

zend optimzer라던가 opcache야 

서비스 재시작하면 메모리에 있던거라 날아 가지만

얘네는 파일로 아예 저장해서 적용 하는 듯?


[링크 : http://hhvm.com/blog/2027/faster-and-cheaper-the-evolution-of-the-hhvm-jit]

[링크 : http://stackoverflow.com/questions/1408417/can-you-compile-php-code]

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

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

php 디버그 메시지 출력하게 하기  (0) 2016.10.10
php 구버전 post 변수.  (0) 2016.10.10
php chunked encdoing  (0) 2015.02.02
PHP 웹 다국어 지원 트릭  (0) 2015.02.02
php 콘솔 디버깅  (0) 2015.01.13
Posted by 구차니
Programming/openCV2016. 7. 14. 11:38

rtsp로 받아서 stitch 한번 해볼까나

(cpu의 온기가 남아있습니다?)


[링크 : http://www.pyimagesearch.com/2016/01/11/opencv-panorama-stitching/]

[링크 : http://study.marearts.com/2013/11/opencv-stitching-example-stitcher-class.html]

[링크 : http://docs.opencv.org/2.4/modules/stitching/doc/stitching.html]

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

openCV multicore support  (0) 2018.03.19
stitch / opencv / python  (0) 2016.07.18
opencv rtsp  (0) 2016.07.13
openMP + openCV 실패한 이유가..  (0) 2015.11.27
openMP + openCV 미스테리..  (0) 2015.11.09
Posted by 구차니
Programming/openCV2016. 7. 13. 18:37

예제는 mjpeg 같은데 h264 도 되려나?

다만 라즈베리 openmax 지원여부는 별개일 기분?


[링크 : http://blog.daum.net/pg365/195]

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

stitch / opencv / python  (0) 2016.07.18
opencv stitch  (0) 2016.07.14
openMP + openCV 실패한 이유가..  (0) 2015.11.27
openMP + openCV 미스테리..  (0) 2015.11.09
휴 모멘트?  (0) 2015.10.20
Posted by 구차니
Programming/C++ STL2016. 7. 12. 08:41

dlopen은 c 시절의 녀석이라 class 자체를 끌어올수는 없다.

[링크 : http://www.joinc.co.kr/w/Site/C++/Documents/Dynamic_Class_Loading]


다만.. gcc 에서 컴파일시 -l 링커이름으로 주면 바로 사용가능

[링크 : http://stackoverflow.com/questions/58058/using-c-classes-in-so-libraries]




근데 문득.. 둘다 so인데

dlopen과 -l을 통한것의 차이를 모르겠네?

'Programming > C++ STL' 카테고리의 다른 글

class 기본 접근제한자  (0) 2016.07.18
cpp 매크로 __PRETTY_FUNCTION__  (0) 2016.07.18
cpp thread.... / pthread  (0) 2016.07.11
객체지향과 if문?  (0) 2016.07.11
cpp 클래스 구성  (0) 2016.07.11
Posted by 구차니
Programming/C++ STL2016. 7. 11. 13:46

아.. 어렵다 ㅠㅠ


쓰레드 join()

[링크 : http://arer.tistory.com/45]

[링크 : http://linux.die.net/man/3/pthread_cond_wait]

[링크 : http://linux.die.net/man/3/pthread_join]

[링크 : http://www.joinc.co.kr/w/Site/Thread/Beginning/PthreadApiReference#AEN144]

[링크 : http://www.joinc.co.kr/w/man/3/pthread_create]


main()이 return 0;로 되어도

쓰레드가 종료 되기 전에는 main()이 못 죽는 신기한 현상? 이라고 해야하려나?


[링크 : http://www.cplusplus.com/reference/thread/thread/]

[링크 : http://www.cplusplus.com/reference/thread/thread/join/]


[링크 : http://www.morenice.kr/75]

[링크 : http://linux.die.net/man/3/pthread_attr_setdetachstate]


자식쓰레드를 부모쓰레드로 부터 분리하기

pthread_join의 사용으로 발생할 수 있는 문제점을 해결하기 위한, 가장 좋은 방법중의 하나는 pthread_detach 를 이용해서, 자식 쓰레드를 부모쓰레드와 완전히 분리해 버리는 방법이다. 이 경우 자식 쓰레드가 종료되면, 모든 자원이 즉시 반환된다. 반면, 자식 쓰레드의 종료상태를 알 수 없다는 문제가 발생한다. 대게의 경우 자식 쓰레드의 종료상태가 중요한 문제가 되지는 않을 것이다.

[링크 : http://www.joinc.co.kr/w/Site/system_programing/Book_LSP/ch07_Thread]

'Programming > C++ STL' 카테고리의 다른 글

cpp 매크로 __PRETTY_FUNCTION__  (0) 2016.07.18
cpp dlopen / gcc -l  (0) 2016.07.12
객체지향과 if문?  (0) 2016.07.11
cpp 클래스 구성  (0) 2016.07.11
cpp enum in class  (0) 2016.07.01
Posted by 구차니