vitis::ai::MedicalSegmentation - 3.5 日本語

Vitis AI ライブラリ ユーザー ガイド (UG1354)

Document ID
UG1354
Release Date
2023-06-29
Version
3.5 日本語
Endoscopy Disease Detection and Segmentation データベース (EDD2020) の 5 つのオブジェクトを区分するためのベース クラス。

入力はイメージ (cv:Mat) です。

出力は MedicalSegmentationResult という名前の検出結果の構造体です。

サンプル コード:

Mat img = cv::imread("sample_medicalsegmentation.jpg");
auto medicalsegmentation =
vitis::ai::MedicalSegmentation::create("FPN_Res18_Medical_segmentation",true); 
auto results = medicalsegmentation->run(img); 
// results is  std::vector<cv::Mat>(5) for 5 classes.
// please check test samples for detail usage.

関数クイック リファレンス

次の表に、vitis::ai::MedicalSegmentation クラスに定義されているすべての関数を示します。

表 1. 関数クイック リファレンス
タイプ メンバー 引数
std::unique_ptr< MedicalSegmentation > create
  • const std::string & model_name
  • bool need_preprocess
vitis::ai::MedicalSegmentationResult run
  • const cv::Mat & img
std::vector< vitis::ai::MedicalSegmentationResult > run
  • const std::vector< cv::Mat > & imgs
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void