CImg Library's Examples Compiling and Linking
来源:互联网 发布:农行掌上银行网络异常 编辑:程序博客网 时间:2024/05/29 09:16
#define cimg_use_jpeg CIMG_USE_JPEG#undef dimx#include<CImg.h>using namespace cimg_library;int main(){CImg<unsigned char> image("ad1.jpg"),visu(500,400,1,3,0);const unsigned char red[]={255,0,0},green[]={0,255,0},blue[]={0,0,255};image.blur(2.5);CImgDisplay main_disp(image,"Click a point"),draw_disp(visu,"Intensity profile");while( !main_disp.is_closed() && !draw_disp.is_closed()){main_disp.wait();if(main_disp.button() && main_disp.mouse_y() >= 0){const int y = main_disp.mouse_y();visu.fill(0).draw_graph(image.get_crop(0,y,0,0,image.width()-1,y,0,0),red,0,256,0);visu.draw_graph(image.get_crop(0,y,0,1,image.width()-1,y,0,1),green,0,256,0);visu.draw_graph(image.get_crop(0,y,0,2,image.width()-1,y,0,2),blue,0,256,0).display(draw_disp);}}return 0;}
>cl demo217.cpp /link user32.lib gdi32.lib shell32.lib libjpeg.lib
0 0
- CImg Library's Examples Compiling and Linking
- CImg Library's Examples Compiling and Linking
- Compiling, Linking and Debugging Tips for C++
- GCC and Make Compiling, Linking and Building C/C++ Applications
- Compiling and Linking MKL with Microsoft* Visual C/C++*
- GLSL TUTORIAL1 Loading, Compiling and Linking OGLSL Programs
- Creating, compiling and linking MATLAB executables (MEX files): a tutorial
- Compiling TBB programs and examples on Linux Ubuntu
- An Application Program Dynamically Loading and Linking the Shared Library
- Compiling and linking error when using NDK r10 to build cocos2d-x v3.2
- Compiling and linking error when using NDK r10 to build cocos2d-x v3.2
- Compiling and linking error when using NDK r10 to build cocos2d-x v3.2
- COMPILING AND SETTING UP UNIX NETWORK PROGRAMMING (UNP) LIBRARY
- C.1 Configuring and compiling the GNU C Library
- library linking on LINUX
- static linking and dynamic linking
- Library order in static linking
- assembling,compliling and linking
- 大三,在软件工程学习上的感悟
- diff 比较两个文件夹
- VS2010调试程序--Dump文件方式
- @Autowired与@Resource的区别
- MVP——让码代码的累,让看代码的爽!【未完】
- CImg Library's Examples Compiling and Linking
- Unity中什么情况下适用静态变量
- linux 下CodeBlocks 安装
- 获取数字证书信息
- Android 画虚线的问题
- JAVA开发11--获取系统当前时间和简单的时间差
- 5.导航条、分页导航
- Flume 安装, 测试
- mac修改mysql密码