vitis::ai::MedicalSegcell - 1.4.1 English

Vitis AI Library User Guide (UG1354)

Document ID
Release Date
1.4.1 English
Base class for segmenting nuclei from images of cells.

Input is an image (cv:Mat).

Output is a struct of detection results, named MedicalSegcellResult.

Sample code :

Mat img = cv::imread("sample_medicalsegcell.jpg");
auto medicalsegcell =
auto results = medicalsegcell->run(img);
// results is structure holding cv::Mat.
// please check test samples for detail usage.

Quick Function Reference

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

Table 1. Quick Function Reference
Type Name Arguments
std::unique_ptr< MedicalSegcell > create
  • const std::string & model_name
  • bool need_preprocess
vitis::ai::MedicalSegcellResult run
  • const cv::Mat & img
std::vector< vitis::ai::MedicalSegcellResult > run
  • const std::vector< cv::Mat > & imgs
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void