File Exchange

image thumbnail

Weave algorithm to approximate an image

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

5 Downloads

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
http://artof01.com/vrellis/works/knit.html

Cite As

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 .

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!

Updates

1.1.0.0

Remove dependency on image processing toolbox

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