vitis::ai::MedicalDetectionPostProcess

Class of the MedicalDetection post-process. It initializes the parameters once instead of computing them every time when the program execute.

Quick Function Reference

The following table lists all the functions defined in the vitis::ai::MedicalDetectionPostProcess class:

Table 1. Quick Function Reference
TypeNameArguments
std::unique_ptr< MedicalDetectionPostProcess >create
  • const std::vector< vitis::ai::library::InputTensor > & input_tensors
  • const std::vector< vitis::ai::library::OutputTensor > & output_tensors
  • const vitis::ai::proto::DpuModelParam & config
MedicalDetectionResultmedicaldetection_post_process
  • void
std::vector< MedicalDetectionResult >medicaldetection_post_process
  • void

create

Create an MedicalDetectionPostProcess object.

Prototype

std::unique_ptr< MedicalDetectionPostProcess > create(const std::vector< vitis::ai::library::InputTensor > &input_tensors, const std::vector< vitis::ai::library::OutputTensor > &output_tensors, const vitis::ai::proto::DpuModelParam &config, int &real_batch_size);

Parameters

The following table lists the create function arguments.

Table 2. create Arguments
Type Name Description
const std::vector< vitis::ai::library::InputTensor > & input_tensors A vector of all input-tensors in the network. Usage: input_tensors[input_tensor_index].
const std::vector< vitis::ai::library::OutputTensor > & output_tensors A vector of all output-tensors in the network. Usage: output_tensors[output_index].
const vitis::ai::proto::DpuModelParam & config The dpu model configuration information.

Returns

An unique printer of MedicalDetectionPostProcess.

medicaldetection_post_process

The post-processing function of the MedicalDetection network.

Prototype


            MedicalDetectionResult medicaldetection_post_process(unsigned int idx)=0;

Returns

The struct of MedicalDetectionResult.

medicaldetection_post_process

The batch mode post-processing function of the MedicalDetection network.

Prototype

std::vector< MedicalDetectionResult > medicaldetection_post_process()=0;

Returns

The vector of struct of MedicalDetectionResult.