http://download.csdn.net/download/whatthehell_laobi/8620387
http://www.pudn.com/downloads590/sourcecode/graph/texture_mapping/detail2415077.html
需要修改
int read_image(Ref<LuminanceSource> source, bool hybrid, string expected) 中的
if (test_mode && results.size() == 1) {
std::string result = results[0]->getText()->getText();if (expected.empty()) {
cout << " Expected text or binary data for image missing." << endl << " Detected: " << CodeFormatConvert::convertUTF8ToGB2312(result.data()) << endl; res = -6; } else { if (expected.compare(result) != 0) { cout << " Expected: " << expected << endl << " Detected: " << CodeFormatConvert::convertUTF8ToGB2312(result.data()) << endl; cell_result = "data did not match"; res = -6; } } }