forked from bdring/StringArt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_einstein_200pins.m
20 lines (18 loc) · 1.13 KB
/
example_einstein_200pins.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;
% Albert Einstein
% INFO: Pass an importance map using 'importanceMapPath', '<path>', ...
stringArt( ...
'inputFilePath', 'input/einstein.png', ... % path to the input file
'outputDirPath', 'output/einstein200', ... % path to the output directory
'outputFileNamePrefix', 'einstein200', ... % prefix of the output files
'invertInput', true, ... % false -> reconstruct white area, true -> reconstruct black area
'invertOutput', true, ... % false -> white string, true -> black string
'numPins', 200, ... % 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, ...
'dataPath', './data'); % Minimum angle (measured from frame center) between two connected pins (default is pi/8)