CNN Layers: high pass filters and truncation layer

3 views (last 30 days)
I would like to create two layers for my CNN design where the input image is high-pass filtered via convolution with 16 (4 × 4) high-pass DCT filters, and then a Truncation layer (Truncation Linear Unit) activation function.
These layers are not built in matlab deep learning toolbox. How can I make them?
Thank you in adavance!

Accepted Answer

Srivardhan Gadila
Srivardhan Gadila on 17 Dec 2020
You can write your own Custom Layer using Deep Learning Toolbox in MATLAB. To get started you can refer to Define Custom Deep Learning Layers & Deep Learning Custom Layers.

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!