Follow

Quick FScape 2 hack to render an image.

val in1 = ImageFileIn("in1")
val in2 = ImageFileIn("in2")
val width = 1116
val height = 372
val f1 = Real2FullFFT(in1,rows = height, columns = width)
val f2 = Real2FullFFT(in2,rows = height, columns = width)
val mixA = f1 atan2 f2
val mixB = f1 roundTo f2
val mix = mixA.complex * mixB
val back = Real2FullIFFT(mix, rows = height, columns = width)
val fOut = ???
val spec = ???
ImageFileOut(back,fOut,spec)

Sign in to participate in the conversation
Octodon

Octodon is a nice general purpose instance. more