An implementation of rotated monogenic scattering transform network of 2-D signal
Let
and
Denote the rotated signal as
The Risez tranform of the rotated signal is
The rotated monogenic decomposition is
Before running the code, load packages
using CUDA
using ScatteringTransform
using MonogenicFilterFlux
Suppose the feature dimension is (nTrain_x, nTrain_y, 1, nSubsample)
.
The
scale = s;
st = stFlux((nTrain_x, nTrain_y, 1, nSubsample), 2, σ=abs, outputPool = 1, scale = scale);
st = cu(st);
Suppose input_data
is the input of the 2-D signal, and set ang
.
We can find the rotated monogenic decomposition of the scattering output by
img_rot = rotate_image(input_data, ang);
output_rot = st(cu(img_rot))
output_rot = inv_rotate_out(output_rot, img_rot, -ang);