This class stores pre-process information for the input. More...
#include <ie_preprocess.hpp>
Public Member Functions | |
PreProcessChannel::Ptr & | operator[] (size_t index) |
Overloaded [] operator to safely get the channel by an index. More... | |
const PreProcessChannel::Ptr & | operator[] (size_t index) const |
operator [] to safely get the channel preprocessing information by index. More... | |
size_t | getNumberOfChannels () const |
Returns a number of channels to preprocess. More... | |
void | init (const size_t numberOfChannels) |
Initializes with given number of channels. More... | |
void | setMeanImage (const Blob::Ptr &meanImage) |
Sets mean image values if operation is applicable. More... | |
void | setMeanImageForChannel (const Blob::Ptr &meanImage, const size_t channel) |
Sets mean image values if operation is applicable. More... | |
void | setVariant (const MeanVariant &variant) |
Sets a type of mean operation. More... | |
MeanVariant | getMeanVariant () const |
Gets a type of mean operation. More... | |
void | setResizeAlgorithm (const ResizeAlgorithm &alg) |
Sets resize algorithm to be used during pre-processing. More... | |
ResizeAlgorithm | getResizeAlgorithm () const |
Gets preconfigured resize algorithm. More... | |
void | setColorFormat (ColorFormat fmt) |
Changes the color format of the input data provided by the user. More... | |
ColorFormat | getColorFormat () const |
Gets a color format associated with the input. More... | |
This class stores pre-process information for the input.
|
inline |
Gets a color format associated with the input.
By default, the color format is ColorFormat::RAW meaning there is no particular color format assigned to the input
|
inline |
Gets a type of mean operation.
|
inline |
Returns a number of channels to preprocess.
|
inline |
Gets preconfigured resize algorithm.
|
inline |
Initializes with given number of channels.
numberOfChannels | Number of channels to initialize |
|
inline |
Overloaded [] operator to safely get the channel by an index.
Throws an exception if channels are empty
index | Index of the channel to get |
|
inline |
operator [] to safely get the channel preprocessing information by index.
Throws exception if channels are empty or index is out of border
index | Index of the channel to get |
|
inline |
Changes the color format of the input data provided by the user.
This function should be called before loading the network to the plugin Setting color format different from ColorFormat::RAW enables automatic color conversion (as a part of built-in preprocessing routine)
fmt | A new color format associated with the input |
|
inline |
Sets mean image values if operation is applicable.
Also sets the mean type to MEAN_IMAGE for all channels
meanImage | Blob with a mean image |
|
inline |
Sets mean image values if operation is applicable.
Also sets the mean type to MEAN_IMAGE for a particular channel
meanImage | Blob with a mean image |
channel | Index of a particular channel |
|
inline |
Sets resize algorithm to be used during pre-processing.
alg | Resize algorithm |
|
inline |
Sets a type of mean operation.
variant | Type of mean operation to set |