Runs forward pass to compute output of layer with name layer_name
out = dnn_forward(net,img,scalefactor,image_size,rgb_mean,swapRB,layer_name);
DNN object loaded in Scilab
Image in Scilab format
DNN input size
Name for layer which output is needed to get
Spatial size for input image
Scalar with mean values which are subtracted from channels. Values are intended to be in (mean-R, mean-G, mean-B) order if image has BGR ordering and swapRB is true.
Flag which indicates that swap first and last channels in 3-channel image is necessary.
flag which indicates whether image will be cropped after resize or not
Output matrix of the results depending on the type of DNN loaded.
This function is used to run forward pass to compute output of layer with name layer_name