How can i input a 2-d extracted features by wavelet scattering to a deep learning network

3 次查看(过去 30 天)
dear all,
please i ask to a way that enable me to add a layer that hold the extracted features from wavelet scattering to a deep network?
the input in the deep network usually an input layer that hold the image datastore

回答(1 个)

Shubham
Shubham 2024-1-23
Hi Nagwa,
To input 2-D extracted features by wavelet scattering into a deep learning network, you can follow these general steps:
  1. Extract Wavelet Scattering Features: Use the Wavelet Scattering Transform to extract features from your images. In MATLAB, you can use the waveletScattering object to perform this operation. The output will be a set of coefficients that represent your image in the scattering domain. Refer to this documentation link: https://in.mathworks.com/help/wavelet/ref/waveletscattering.html
  2. Prepare the Data: Organize the scattering coefficients in a format suitable for training. If you have multiple images, you should have a corresponding set of scattering coefficients for each image. These coefficients can be arranged into a matrix or a cell array, depending on their size and consistency.
  3. Define the Input Layer: Instead of using an imageInputLayer, you will use a featureInputLayer with the size corresponding to the number of scattering coefficients for each image. This will be the first layer of your deep learning network.
  4. Build the Deep Learning Network: Define the rest of the deep learning network architecture using layers like fullyConnectedLayer, reluLayer, softmaxLayer, and classificationLayer. You can also include other types of layers depending on your specific application and network design.
  5. Train the Network: Use the trainNetwork function to train the network. You will need to provide the scattering coefficients as the input data and the corresponding labels as the target data.

类别

Help CenterFile Exchange 中查找有关 AI for Signals and Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by