Lineart: Difference between revisions

From wikiluntti
Line 27: Line 27:
* Convert image array to vectors, and make the linear combination: <math>Ax = b</math>. Solve <math>min_x | Ax-b |^2</math>.  
* Convert image array to vectors, and make the linear combination: <math>Ax = b</math>. Solve <math>min_x | Ax-b |^2</math>.  
* Problems:
* Problems:
** Line darkness; from step function to some other.
** Line darkness. Use some antialiasing algorithm; from step function to some other.
** Pseudoinverse gives not binary result. Greedy algorithm.
** Pseudoinverse gives not binary result. Greedy algorithm.
* FFT in part II gives much better results
* FFT in part II gives much better results

Revision as of 15:55, 24 October 2024

Introduction

String art

  • Radon transform (inverse of)
  • 2d FFT
  • Optimization

Radon Transform

The sum of the intensities in each direction (a line integral).

The new image will be

Virtually Passed YT

White canvas with nails around the circumference and add straight black lines between the nails.

Video: The Mathematics of String Art

  • Starting nail angle and ending nail angle . Maximum number of lines is
  • Convert image array to vectors, and make the linear combination: . Solve .
  • Problems:
    • Line darkness. Use some antialiasing algorithm; from step function to some other.
    • Pseudoinverse gives not binary result. Greedy algorithm.
  • FFT in part II gives much better results

Video: How To Make a Computer Create Something Beautiful: String Art

  • Radon transform; density function .
  • plot sinogram: .
  • Make linear transform where are the binary weights.
  • Need a Radon transform for lines.
  • max because the lines are of different length.

References