Struct ModelList

Struct Documentation

struct ModelList

AIAA ModelList.

This class provides APIs to connect to AIAA server and perform operations like dextra3d, fixPolygon etc…

Public Functions

Model getMatchingModel(const std::string &label)

Get the first matching model for a given label First preference goes to exact match. Otherwise prefix match will be preferred.

Note
Here, the matching type is case-insensitive
Return
Model
Parameters
  • label: Organ Name

std::string toJson(int space = 0) const

convert ModelList to JSON String

Return
JSON String
Parameters
  • space: If space > 0; then JSON string will be formatted accordingly

Public Members

std::vector<Model> models

List of Model Objects where each Model Object carries relevant information about the model being supported by AIAA Server.

Public Static Functions

static ModelList fromJson(const std::string &json)

create Model from JSON String

Example:

[
{"labels": ["brain_tumor_core"], "internal name": "Dextr3dCroppedEngine", "description": "", "name": "Dextr3DBrainTC", "padding": 20.0 "roi": [128,128,128], "sigma": 3.0},
{"labels": ["liver"], "internal name": "Dextr3dCroppedEngine", "description": "", "name": "Dextr3DLiver", "padding": 10.0 "roi": [96,96,96], "sigma": 3.0},
{"labels": ["brain_whole_tumor"], "internal name": "Dextr3dCroppedEngine", "description": "", "name": "Dextr3DBrainWT", "padding": 20.0 "roi": [128,128,128], "sigma": 3.0}
]
Parameters
  • json: JSON String.

Return
ModelList object