Visualize the DNN feature map
dnn_showfeature(feature_map,out_num,c);
Feature maps to be visualized
Number of outputs to be shown
Colormap for visualization
This function is used to visualize the DNN feature maps
// Initialize dnn_unloadallmodels dnn_path = fullfile(getIPCVpath(),'images','dnn'); net = dnn_readmodel(fullfile(dnn_path,'lenet5.pb'),'','tensorflow'); // Read Image S = imread(fullfile(dnn_path,'3.jpg')); // Forward Pass out1 = dnn_forward(net,~S,[28,28],"conv2d/Conv2D"); scf();dnn_showfeature(out1); // Clean Up dnn_unloadallmodels(); | ![]() | ![]() |