我想在另一個窗口上顯示一個圖像,但在同一個窗口中。我看過帖子並肩作戰,但我已經知道如何做到這一點。這裏是我到目前爲止有: string firstFile = "";
string secondFile = "";
cout << "Enter the filenames corresponding to the Image and the Logo (in that order): " <<
任何時候我嘗試加載圖像時出現錯誤,說CImg<unsigned char>::load(): Failed to recognize format of file。這發生在jpg和png文件中。 我發現其他職位有關這句話來定義cimg_use_png和cimg_use_jpeg,但後來我得到編譯errorstelling我,我需要png.n和jpeglib.h。不知道我應該從哪裏得到這些信息。 我
我在項目中使用CImg作爲幾個不同的東西,並具有我需要應用jet_LUT256顏色映射的灰度圖像。我不確定我是否在正確的道路上。任何指導將不勝感激。 #include "CImg.h"
using namespace std;
using namespace cimg_library;
int main()
{
CImg<uint8_t> image("test.jpg");