class InferenceEngine::PreProcessData¶
Overview¶
This class stores pre-process information for exact input. More…
class PreProcessData: public InferenceEngine::IPreProcessData
{
public:
// methods
virtual void setRoiBlob(const Blob::Ptr& blob);
virtual Blob::Ptr getRoiBlob() const;
virtual void execute(
Blob::Ptr& preprocessedBlob,
const PreProcessInfo& info,
bool serial,
int batchSize = -1
);
virtual void isApplicable(const Blob::Ptr& src, const Blob::Ptr& dst);
};
Inherited Members¶
public:
// methods
virtual void setRoiBlob(const Blob::Ptr& blob) = 0;
virtual Blob::Ptr getRoiBlob() const = 0;
virtual void execute(
Blob::Ptr& preprocessedBlob,
const PreProcessInfo& info,
bool serial,
int batchSize = -1
) = 0;
virtual void isApplicable(const Blob::Ptr& src, const Blob::Ptr& dst) = 0;
Detailed Documentation¶
This class stores pre-process information for exact input.
Methods¶
virtual void setRoiBlob(const Blob::Ptr& blob)
Sets ROI blob to be resized and placed to the default input blob during pre-processing.
Parameters:
blob |
ROI blob. |
virtual Blob::Ptr getRoiBlob() const
Gets pointer to the ROI blob used for a given input.
Returns:
Blob pointer.
virtual void execute(
Blob::Ptr& preprocessedBlob,
const PreProcessInfo& info,
bool serial,
int batchSize = -1
)
Executes input pre-processing with a given pre-processing information.
Parameters:
outBlob |
pre-processed output blob to be used for inference. |
info |
pre-processing info that specifies resize algorithm and color format. |
serial |
disable OpenMP threading if the value set to true. |
batchSize |
batch size for pre-processing. |