Test - Gramian Angular Field

The Gramian Angular Field is usually used in machine learning for machine vision, it allows the encoding of data as a visual queue / matrix.
リリースノート: updated contrast following THE_REAL_BCT advise. corrected the missing volume option.




Can't wait to see your version of cnn on TV :)
Not familiar with gram, but it looks like the definition of your polars will affect the "vision" of your algo - by defaut, it "sees" up to 2*pi then goes back around. If your src data moves by much more than that, it'll effectively scramble its vision, no?
RicardoSantos THE_REAL_BCT
@THE_REAL_BCT, thats why the data is detrended bound to range (1, 0) before getting the polar, but i see what you meant, thanks for feedback.
THE_REAL_BCT RicardoSantos
@RicardoSantos, ah you're right (as always?) - I've read too fast. That said you could use more of the 0-pi (or even 2pi since you have both sin & cos) range vs 0-1 perhaps. Gets you just a little extra juice out of that non-linearity... Not sure it matters a ton in the end through a cnn through.
Anyway, beautiful script again. Thanks for sharing!