Release CalcBMD.
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include "ImageprocessExport.h"
|
||||
#include "model/AnalyzeChestVesselRequest.h"
|
||||
#include "model/AnalyzeChestVesselResult.h"
|
||||
#include "model/CalcBMDRequest.h"
|
||||
#include "model/CalcBMDResult.h"
|
||||
#include "model/CalcCACSRequest.h"
|
||||
#include "model/CalcCACSResult.h"
|
||||
#include "model/ClassifyFNFRequest.h"
|
||||
@@ -80,6 +82,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AnalyzeChestVesselResult> AnalyzeChestVesselOutcome;
|
||||
typedef std::future<AnalyzeChestVesselOutcome> AnalyzeChestVesselOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::AnalyzeChestVesselRequest&, const AnalyzeChestVesselOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AnalyzeChestVesselAsyncHandler;
|
||||
typedef Outcome<Error, Model::CalcBMDResult> CalcBMDOutcome;
|
||||
typedef std::future<CalcBMDOutcome> CalcBMDOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::CalcBMDRequest&, const CalcBMDOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CalcBMDAsyncHandler;
|
||||
typedef Outcome<Error, Model::CalcCACSResult> CalcCACSOutcome;
|
||||
typedef std::future<CalcCACSOutcome> CalcCACSOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::CalcCACSRequest&, const CalcCACSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CalcCACSAsyncHandler;
|
||||
@@ -154,6 +159,9 @@ namespace AlibabaCloud
|
||||
AnalyzeChestVesselOutcome analyzeChestVessel(const Model::AnalyzeChestVesselRequest &request)const;
|
||||
void analyzeChestVesselAsync(const Model::AnalyzeChestVesselRequest& request, const AnalyzeChestVesselAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AnalyzeChestVesselOutcomeCallable analyzeChestVesselCallable(const Model::AnalyzeChestVesselRequest& request) const;
|
||||
CalcBMDOutcome calcBMD(const Model::CalcBMDRequest &request)const;
|
||||
void calcBMDAsync(const Model::CalcBMDRequest& request, const CalcBMDAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CalcBMDOutcomeCallable calcBMDCallable(const Model::CalcBMDRequest& request) const;
|
||||
CalcCACSOutcome calcCACS(const Model::CalcCACSRequest &request)const;
|
||||
void calcCACSAsync(const Model::CalcCACSRequest& request, const CalcCACSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CalcCACSOutcomeCallable calcCACSCallable(const Model::CalcCACSRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGEPROCESS_MODEL_CALCBMDREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_CALCBMDREQUEST_H_
|
||||
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Imageprocess {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT CalcBMDRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct URLList {
|
||||
std::string uRL;
|
||||
};
|
||||
CalcBMDRequest();
|
||||
~CalcBMDRequest();
|
||||
std::string getOrgName() const;
|
||||
void setOrgName(const std::string &orgName);
|
||||
std::string getSourceType() const;
|
||||
void setSourceType(const std::string &sourceType);
|
||||
std::string getDataFormat() const;
|
||||
void setDataFormat(const std::string &dataFormat);
|
||||
std::vector<URLList> getURLList() const;
|
||||
void setURLList(const std::vector<URLList> &uRLList);
|
||||
std::string getOrgId() const;
|
||||
void setOrgId(const std::string &orgId);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
|
||||
private:
|
||||
std::string orgName_;
|
||||
std::string sourceType_;
|
||||
std::string dataFormat_;
|
||||
std::vector<URLList> uRLList_;
|
||||
std::string orgId_;
|
||||
bool async_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Imageprocess
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_CALCBMDREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGEPROCESS_MODEL_CALCBMDRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_CALCBMDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT CalcBMDResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct DetectionsItem
|
||||
{
|
||||
float vertZScore;
|
||||
float vertTScore;
|
||||
float vertCategory;
|
||||
float vertBMD;
|
||||
std::string vertId;
|
||||
};
|
||||
std::vector<std::string> origin;
|
||||
std::vector<std::string> spacing;
|
||||
std::vector<DetectionsItem> detections;
|
||||
std::string resultURL;
|
||||
};
|
||||
|
||||
|
||||
CalcBMDResult();
|
||||
explicit CalcBMDResult(const std::string &payload);
|
||||
~CalcBMDResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_CALCBMDRESULT_H_
|
||||
Reference in New Issue
Block a user