Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anael-seghezzi/Maratis-Tiny-C-library
tiny math and image processing in C
https://github.com/anael-seghezzi/Maratis-Tiny-C-library
Last synced: 16 days ago
JSON representation
tiny math and image processing in C
- Host: GitHub
- URL: https://github.com/anael-seghezzi/Maratis-Tiny-C-library
- Owner: anael-seghezzi
- License: other
- Created: 2015-04-12T13:27:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-27T17:13:24.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T22:56:14.847Z (3 months ago)
- Language: C
- Homepage:
- Size: 714 KB
- Stars: 196
- Watchers: 15
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Maratis Tiny C library
======================is a collection of small and efficient math and image processing routines written in ANSI C with no dependencies.
The library is divided in independent single files (stb style):
- [m_math.h](https://github.com/anael-seghezzi/Maratis-Tiny-C-library/blob/master/include/m_math.h)
- [m_image.h](https://github.com/anael-seghezzi/Maratis-Tiny-C-library/blob/master/include/m_image.h)
- [m_raster.h](https://github.com/anael-seghezzi/Maratis-Tiny-C-library/blob/master/include/m_raster.h)
- [m_dist.h](https://github.com/anael-seghezzi/Maratis-Tiny-C-library/blob/master/include/m_dist.h)
- [m_path_finding.h](https://github.com/anael-seghezzi/Maratis-Tiny-C-library/blob/master/include/m_path_finding.h)Math
----* vector manipulation
* interpolation (cubic, catmullrom)
* quaternion (basics, slerp...)
* matrix (projection, transformation...)
* random number generator
* 2d routines
* 3d routines
* voxeliser (tri-box overlap)
* raytracing (sphere, plane, box, triangle)Image manipulation
------------------* ubyte, ushort, int, half, float...
* copy, conversions, mirror, reframe, rotate...
* filters (convolution, gaussian blur, sobel, harris)
* resizing, pyrdown
* morphology (floodfill, dilate, erode, thinning...)
* corner detection (harris, non-maxima suppression)Rasterization
-------------* triangle with interpolation (perspective correct)
* basic line, circle and polygonDistance map
------------* distance transform and voronoi
Path finding
------------* path finding on regular grid (floodfill-based)
Asm.js demos
------------* [m_raster](http://maratis3d.org/js/m_raster/m_raster.html)
* [m_voronoi](http://maratis3d.org/js/m_voronoi/m_voronoi.html)
* [m_raytracing](http://maratis3d.org/js/m_raytracing/m_raytracing.html)Games / Demos
-------------* Back on Earth - Ludum Dare 34 Compo
[![BackOnEarth](http://maratis3d.com/download/ludum34/scm.png)](http://maratis3d.com/download/ludum34/b/web_player.html)
Building the demos (CMake)
--------------------------**Unix:**
run:
build_tests_unix.sh
or type:mkdir Build
cd Build
cmake -G "Unix Makefiles" ../ -DCMAKE_INSTALL_PREFIX=../bin
make
make install**Windows:**
mkdir Build
cd Build
cmake -G "Visual Studio 11" ../ -DCMAKE_INSTALL_PREFIX=../binor:
mkdir Build
cd Build
cmake -G "MinGW Makefiles" ../ -DCMAKE_INSTALL_PREFIX=../bin
make
make install**Emscripten:**
./emcc -s LEGACY_GL_EMULATION=1 -s USE_GLFW=3
License (zlib)
--------------Copyright (c) 2015 Anael Seghezzi
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would
be appreciated but is not required.2. Altered source versions must be plainly marked as such, and must not
be misrepresented as being the original software.3. This notice may not be removed or altered from any source
distribution.You may also like
-----------------* [stb](https://github.com/nothings/stb)
* [PAL](https://github.com/parallella/pal)
* [Maratis](http://www.maratis3d.org)
* [BGFX](https://github.com/bkaradzic/bgfx)
* [GLFW](https://github.com/glfw/glfw)