问题描述:

I use CImg for my image processing work. I had written a small piece of code which is follows:

#include "../CImg.h"

#include <iostream>

using namespace std;

using namespace cimg_library;

int main(int argc,char**argv)

{

CImg<int> img(argv[1]);

CImgDisplay disp;

disp.assign(img);

while(!disp.is_closed)

disp.wait();

return 0;

}

Now I want to select an area from the displayed image.

Can some one tell me how to select an area from displayed image and store the selected pixels, and display the selected region in different display window. If some one can provide code, it will be of great help to me.

Thank you.

网友答案:

I had got the answer myself. Please follow this link if interested: Answer

相关阅读:
Top