<< dnn_readmodel Deep Learning dnn_showparam >>

IPCV >> Deep Learning > dnn_showfeature

dnn_showfeature

Visualize the DNN feature map

Syntax

dnn_showfeature(feature_map,out_num,c);

Parameters

feature_map :

Feature maps to be visualized

out_num :

Number of outputs to be shown

c :

Colormap for visualization

Description

This function is used to visualize the DNN feature maps

Examples

// 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();

See also

Authors


Report an issue
<< dnn_readmodel Deep Learning dnn_showparam >>