Archive

Archive for January, 2011

common article template

\documentclass[a4paper,11pt,onecolumn]{report}

\usepackage{}

\renewcommand{\baselinestretch}{1.5}

\title{***}

\author{***}

\begin{document}

Hello world

\end{document}

Categories: LaTeX

淡定啊…

又是一个充满怨念的周五 为虾米 为虾米么… 本来平静的水面 总被Friday搅浑 I hate it though I loved it 周五需要淡定

Categories: Jotting

Draw text in frames

CvFont font;

cvInitFont( &font, CV_FONT_HERSHEY_SIMPLEX, 0.7f, 0.7f, 0, 2, 12);

char s[20] = {0};

sprintf(s,”%d”, ind);

CvScalar line_color = CV_RGB(0, 0, 255);

CvPoint center = cvPoint(x, y);

cvPutText(frame1, s, center, &font, line_color);

Categories: OpenCV

Get elements of IplImage

/* get reference to pixel at (col,row),
   for multi-channel images (col) should be multiplied by number of channels */
#define CV_IMAGE_ELEM( image, elemtype, row, col )       \
    (((elemtype*)((image)->imageData + (image)->widthStep*(row)))[(col)])

Categories: OpenCV

周五了~~

寂寞真不是好东西,回深圳~

Categories: Jotting