MATLAB Answers

CNN Layers: high pass filters and truncation layer

32 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!


Sign in to comment.

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.


Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by