/// <summary> /// Initializes a new instance of the <see cref="AndroidChestXRayAIClient"> class. /// This constructor is private since this class is responsible for both instantiating and disposing of the IAIImageModel objects, /// so we want to limit the instantiation of this class to within this class itself (to prevent externally created IAIImageModel objects from being passed into the class). /// </summary> /// <param name="model">An AI model that can produce outputs for both scores and CAMs (index 0 of the model output should be scores, index 1 should be CAM data)</param> /// <param name="camProcessor">An instance of <see cref="CAMProcessor"/> that can process the CAM output from the provided model.</param> private AndroidChestXRayAIClient(IAIImageModel <float[][]> model, CAMProcessor camProcessor) : base(camProcessor) { this.model = model; }
/// <summary> /// Initializes a new instance of the <see cref="iOSChestXRayAIClient"> class. /// This constructor is private since this class is responsible for both instantiating and disposing of the IAIImageModel objects, /// so we want to limit the instantiation of this class to within this class itself (to prevent externally created IAIImageModel objects from being passed into the class). /// </summary> private iOSChestXRayAIClient(IAIImageModel <float[]> scoreModel, IAIImageModel <float[]> camModel, CAMProcessor camProcessor) : base(camProcessor) { this.scoreModel = scoreModel; this.camModel = camModel; }