File Exchange

image thumbnail

Weave algorithm to approximate an image

version (3.34 KB) by Peter Bone
Weave algorithm for a circular loom to approximate an image


Updated 19 Oct 2016

View License

This code shows how to form a weave with a single thread to approximate a grayscale image. The result is a list of hooks, stored in 'hook', which can be used to perform the weave using real thread and numbered hooks.
This concept was inspired by Petros Vrellis

Cite As

Peter Bone (2020). Weave algorithm to approximate an image (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

very nice but how extract points of num_chords
I need (x,y) of start and end point of num_Chords & plot points
please Help

Very nice, clever and clean implementation! I dealt with a similar (but not the same) problem, and I was getting high delays due to computational cost. So, it is a very good idea to precompute that "hooks" and get the pixel indexes beforehand :) Thanks!


Remove dependency on image processing toolbox

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux