vitis::ai::Covid19Segmentation8UC3
The Class of
Covid19Segmentation8UC3
, this class run function return a cv::Mat with the type is cv_8UC3. Quick Function Reference
The following table lists all the functions defined in the vitis::ai::Covid19Segmentation8UC3
class:
Type | Name | Arguments |
---|---|---|
std::unique_ptr< Covid19Segmentation8UC3 > | create |
|
int | getInputWidth |
|
int | getInputHeight |
|
size_t | get_input_batch |
|
Covid19SegmentationResult | run |
|
std::vector< Covid19SegmentationResult > | run |
|
create
Factory function to get an instance of derived classes of class Covid19Segmentation8UC3
.
Prototype
std::unique_ptr< Covid19Segmentation8UC3
> create(const std::string &model_name, bool need_preprocess=true);
Parameters
The following table lists the create
function arguments.
Type | Name | Description |
---|---|---|
const std::string & | model_name | Model name |
bool | need_preprocess | Normalize with mean/scale or not, default value is true. |
Returns
An instance ofCovid19Segmentation8UC3
class. getInputWidth
Function to get InputWidth of the covid19segmentation network (input image columns).
Prototype
int getInputWidth() const;
Returns
InputWidth of the covid19segmentation network.getInputHeight
Function to get InputWidth of the covid19segmentation network (input image rows).
Prototype
int getInputHeight() const;
Returns
InputWidth of the covid19segmentation network.get_input_batch
Function to get the number of images processed by the DPU at one time.
Note: Different DPU core the batch size may be different. This depends on the IP used.
Prototype
size_t get_input_batch() const;
Returns
Batch size.run
Function to get running result of the covid19segmentation network.
Note: The result cv::Mat of the type is CV_8UC3.
Prototype
Covid19SegmentationResult run(const cv::Mat &image);
Parameters
The following table lists the run
function arguments.
Type | Name | Description |
---|---|---|
const cv::Mat & | image | Input data of the image (cv::Mat) |
Returns
Covid19SegmentationResult The result of covid19segmentation network.run
Function to get running results of the covid19segmentation neuron network in batch mode.
Note: The type of CV_8UC3 of the Result's covid19segmentation.
Prototype
std::vector< Covid19SegmentationResult > run(const std::vector< cv::Mat > &images);
Parameters
The following table lists the run
function arguments.
Type | Name | Description |
---|---|---|
const std::vector< cv::Mat > & | images | Input data of input images (std:vector<cv::Mat>). The size of input images equals batch size obtained by get_input_batch. |