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
Peter Bone (2019). Weave algorithm to approximate an image (https://www.mathworks.com/matlabcentral/fileexchange/59831-weave-algorithm-to-approximate-an-image), MATLAB Central File Exchange. Retrieved .
very nice but how extract points of num_chords
I need (x,y) of start and end point of num_Chords & plot points
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