C++多媒体处理库 libCVD

openkk 13年前
     <p>libCVD 是一个高可移植和具备高性能的用于处理计算机视觉、图像、视频的C++库。其重点是提供简单高效的高质量的图形和视频处理方法。</p>    <p>示例代码:</p>    <pre class="brush:cpp; toolbar: true; auto-links: false;">#include <cvd/image_io.h> //Very cheap and cheerful X window with OpenGL capabilities #include <cvd/videodisplay.h>  //OpenGL wrappers for various CVD types #include <cvd/gl_helpers.h>  using namespace CVD;  int main() {   Image<Rgb<byte> > in;                        in = img_load("test_image.jpg");           //Create an OpenGL window with the dimensions of `in'   VideoDisplay window(in.size());    glDrawPixels(in);    glColor3f(1,0,0);   glBegin(GL_LINES);   glVertex(in.size()/2);   glVertex(in.size());   glEnd();   glFlush();      std::cin.get();   return 0; }</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1325060150108" target="_blank">http://www.open-open.com/lib/view/home/1325060150108</a></p>    <p></p>