The Data Conditioner module shall be used in support of the DNN module in order to make the input data format compatible with the network input format. This can be done on a batch of images having the same size in parallel. In addition, the Data Conditioner module provides several pre-processing functionalities that can be used to further modify the input images, e.g., pixel value scaling, mean image subtraction, etc.
The output of the dwDataConditioner module is a Tensor which is an input to the dwDNN module or TensorRT directly. The output's layout can be as follows:
Calling dwDNNTensor_getLayoutView()
allows to retrieve the information needed to traverse manually a raw tensor. Given a chosen dimension to traverse, the function returns the offset, which dictates the location of the next plane in that dimension, the stride dictates the length in memory of each element in the plane