Tag: addon Page 1 of 6
ofxPower example oF0.9.3 OSX10.11.4 Xcode7.3
ofxTSNE example-images example-imagesGrid 以下の部分を修正しました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
void ofApp::scan_dir_imgs(ofDirectory dir){ ofDirectory new_dir; int size = dir.listDir(); for (int i = 0; i < size; i++){ if (dir.getFile(i).isDirectory()){ new_dir = ofDirectory(dir.getFile(i).getAbsolutePath()); new_dir.listDir(); new_dir.sort(); scan_dir_imgs(new_dir); } else{ //ofLog() << "test: " + ofToString(ofToString(dir.getFile(i).getExtension()).length()); //if (std::find(std::begin(allowed_ext), // std::end(allowed_ext), // dir.getFile(i).getExtension()) != std::end(allowed_ext)) { if( ofToString(dir.getFile(i).getExtension()).length() == 4 ){ imageFiles.push_back(dir.getFile(i)); } } } } |
example oF0.9.3 OSX10…