forked from Exception1984/StringArt
-
Notifications
You must be signed in to change notification settings - Fork 21
/
example_cat.m
20 lines (18 loc) · 1.1 KB
/
example_cat.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clc;
clear;
close all;
% Cat
% INFO: Pass an importance map using 'importanceMapPath', '<path>', ...
stringArt( ...
'inputFilePath', 'input/cat.png', ... % path to the input file
'outputDirPath', 'output/cat', ... % path to the output directory
'outputFileNamePrefix', 'cat', ... % prefix of the output files
'invertInput', true, ... % false -> reconstruct white area, true -> reconstruct black area
'invertOutput', true, ... % false -> white string, true -> black string
'numPins', 256, ... % number of pins that are placed on the frame (default is 256)
'threadThickness', 0.15, ... % physical thickness of the thread in mm (default is 0.15)
'frameDiameter', 614.4, ... % physical diameter of the circular frame in mm (default is 614.4)
'pinSideLength', 2, ... % physical side length of a pin with quadratic cross section in mm (default is 2)
'superSamplingWindowWidth', 8, ... % side length of the super sampling window (default is 8)
'minAngle', pi/8, ... % Minimum angle (measured from frame center) between two connected pins (default is pi/8)
'dataPath', './data');