{"id":16631991,"url":"https://github.com/kalwalt/webarkit-jsfeat-cpp","last_synced_at":"2025-10-30T04:30:19.196Z","repository":{"id":51686402,"uuid":"520545279","full_name":"kalwalt/webarkit-jsfeat-cpp","owner":"kalwalt","description":"c++ jsfeat version","archived":false,"fork":false,"pushed_at":"2023-03-06T10:22:40.000Z","size":165024,"stargazers_count":6,"open_issues_count":7,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T06:23:52.638Z","etag":null,"topics":["computer-vision","emscripten","image-processing","imgproc","imgprocessing","jsfeat","jsfeat-next","wasm","webar","webarkit","webarkitlib","webassembly"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kalwalt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-02T15:07:21.000Z","updated_at":"2023-05-11T08:09:26.000Z","dependencies_parsed_at":"2022-08-13T01:01:39.808Z","dependency_job_id":null,"html_url":"https://github.com/kalwalt/webarkit-jsfeat-cpp","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalwalt%2Fwebarkit-jsfeat-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalwalt%2Fwebarkit-jsfeat-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalwalt%2Fwebarkit-jsfeat-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalwalt%2Fwebarkit-jsfeat-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalwalt","download_url":"https://codeload.github.com/kalwalt/webarkit-jsfeat-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238930129,"owners_count":19554122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","emscripten","image-processing","imgproc","imgprocessing","jsfeat","jsfeat-next","wasm","webar","webarkit","webarkitlib","webassembly"],"created_at":"2024-10-12T04:57:20.785Z","updated_at":"2025-10-30T04:30:17.465Z","avatar_url":"https://github.com/kalwalt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webarkit-jsfeat-cpp\nc++ [jsfeat](https://github.com/inspirit/jsfeat) version to build a WASM version thanks to Emscripten.\nThe project is a Work in Progress, not all the features are released to make a comparison with the original jsfeat code. \nAt the moment only some classes are implemented and a bunch of functions are under testing. Anyway the main idea is to provide c++ code to build a WASM version, it's not intended to be used as a c++ library.\nMaybe this will become the future of [webarkit](https://github.com/webarkit)\n## Classes\n### **Matrix_t**\nThis class is responsible to hold different types of data, to be used by all classes.\n\n### **Matrix_smart**\nExperimental class very similar to Matrix_t but use shared_ptr in the core\n\n### **Imgproc**\nIt is one of important classes to manipulate image data for image processing. For now we have these functions:\n- gaussain_blur\n- grayscale\n- grayscale_m\n- pyrdown\n- equalize_histogram\n- resample\n- warp_affine\n\n### **Orb**\nOriented FAST and rotated BRIEF (ORB) is one most important class for feature tracking. Ths feature is under testing.\n\n### **Keypoint_t**\nA class to store key points for image tracking algorithms.\n\n### **Keypoints**\nA class to store a vector of keypoint_t for image tracking algorithms.\n\n### **Yape06**\nFeature detector from Computer Vision Lab, Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland.\n\n### **Pyramid_t**\nA class to handle multiple pyramidal images.\n\nThis project is quite experimental so do not expect great results. More classes will be implemented in the future.\n\n### Useful functions\n\nAt the moment you can try `load_jpeg_data` function to load a jpeg file and get important jpeg data (width, height, dpi and raw data).\nSee grayscale_example or grayscale_m_example to see the function in action.\nTry `yape06_detect` function as a compact version for the yape06 detect routine. See it in action in the  yape06_detect_video_example.html\n\n## Libs\nLibs are stored in `build` folder: \n- **jsfeatcpp.js** the Release lib.\n- **jsfeatES6cpp.js** the ES6 Release lib.\n- **jsfeatcpp_debug.js** the Debug lib.\n- **jsfeatES6cpp_debug.js** the ES6 Debug lib.\n## Usage\nYou can import the libs as a ES6 module in a script tag:\n\n```html\n\u003cscript type=\"module\"\u003e\n    import jsfeatCpp from \"./../build/jsfeatcpp.js\"\n\u003c/script\u003e\n```\n\nThere isn't a npm package yet, so this is the only way.\n\nor the non ES6 version :\n\n```html\n \u003cscript src=\"../build/jsfeatcpp.js\"\u003e\u003c/script\u003e\n```\n\nbut the Module object will be available only when it is full loaded, so wrap your code into the listener:\n\n```js\nwindow.addEventListener('jsfeatCpp-loaded', function (e) {\n    //your code here...\n    })\n```\n\n## Examples\nTake a look at our examples in the examples folder:\n\n- equalize_histogram_video_example.html\n- gaussian_blur_video_example.html\n- grayscale_example.html\n- grayscale_m_example.html\n- grayscale_rgba_example.html\n- grayscale_video_example.html\n- keypoint_t_test.html\n- keypoints_test.html\n- matrix_t_test.html\n- orb_test.html\n- pyrdown_video_example.html\n- resample_video_example.html\n- sample_orb_mixed.html\n- yape06_image_example.html\n- yape06_video_example.html\n- yape06_detect_video_example.html\n\nBoth examples use the debug version of the lib but, of course you can use the non-debug version as well.\n\n## NPM\nnpm is used to build the `libar.bc` and `libar_debug.bc` libs inside the build folder. You don't need to run `npm install` but it is required to have node and npm installed globally.\n\n## Building the library\nIf you make changes and/or if you make some enhancement to the C++ code ypu need to build the library. Run the shell script in the main folder:\nFor the first time run:\n`./build.sh emscripten-all`\nthis will build all the libs. After that if you need to compile and build only jsfeat libs:\n`./build.sh emscripten`\nand the two libs will be compiled in the build directory.\n\nIf you run under Windows use the `./build.Unix.sh` script instead.\n\nWe used emsdk 3.1.20.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalwalt%2Fwebarkit-jsfeat-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalwalt%2Fwebarkit-jsfeat-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalwalt%2Fwebarkit-jsfeat-cpp/lists"}