This code triangulates any given image using the TRIM algorithm in , which aims at producing a content-aware coarse triangulation image representation. It can be used for image compression, simplification, registration as well as artistic design.
Any comments and suggestions are welcome.
If you use this code in your own work, please cite the following paper:
 C. P. Yung, G. P. T. Choi, K. Chen and L. M. Lui,
"Efficient feature-based image registration by mapping sparsified surfaces."
Journal of Visual Communication and Image Representation, 55, pp. 561-571, 2018.
For more information, please visit: https://scholar.harvard.edu/choi
Edited the imtriangulate function.
Slightly modified the description.
Create scripts with code, output, and formatted text in a single executable document.