Release AnalyzeChestVessel.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-07-02 Version: 1.36.804
|
||||
- Release AnalyzeChestVessel.
|
||||
|
||||
2021-06-28 Version: 1.36.803
|
||||
- Edit ListRetcodeApps.
|
||||
- Edit SearchRetcodeAppByPage.
|
||||
|
||||
@@ -21,6 +21,8 @@ set(imageprocess_public_header
|
||||
include/alibabacloud/imageprocess/ImageprocessExport.h )
|
||||
|
||||
set(imageprocess_public_header_model
|
||||
include/alibabacloud/imageprocess/model/AnalyzeChestVesselRequest.h
|
||||
include/alibabacloud/imageprocess/model/AnalyzeChestVesselResult.h
|
||||
include/alibabacloud/imageprocess/model/CalcCACSRequest.h
|
||||
include/alibabacloud/imageprocess/model/CalcCACSResult.h
|
||||
include/alibabacloud/imageprocess/model/ClassifyFNFRequest.h
|
||||
@@ -54,6 +56,8 @@ set(imageprocess_public_header_model
|
||||
|
||||
set(imageprocess_src
|
||||
src/ImageprocessClient.cc
|
||||
src/model/AnalyzeChestVesselRequest.cc
|
||||
src/model/AnalyzeChestVesselResult.cc
|
||||
src/model/CalcCACSRequest.cc
|
||||
src/model/CalcCACSResult.cc
|
||||
src/model/ClassifyFNFRequest.cc
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ImageprocessExport.h"
|
||||
#include "model/AnalyzeChestVesselRequest.h"
|
||||
#include "model/AnalyzeChestVesselResult.h"
|
||||
#include "model/CalcCACSRequest.h"
|
||||
#include "model/CalcCACSResult.h"
|
||||
#include "model/ClassifyFNFRequest.h"
|
||||
@@ -61,6 +63,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT ImageprocessClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
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::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;
|
||||
@@ -111,6 +116,9 @@ namespace AlibabaCloud
|
||||
ImageprocessClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ImageprocessClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ImageprocessClient();
|
||||
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;
|
||||
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,68 @@
|
||||
/*
|
||||
* 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_ANALYZECHESTVESSELREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_ANALYZECHESTVESSELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT AnalyzeChestVesselRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct URLList
|
||||
{
|
||||
std::string uRL;
|
||||
};
|
||||
|
||||
public:
|
||||
AnalyzeChestVesselRequest();
|
||||
~AnalyzeChestVesselRequest();
|
||||
|
||||
std::string getDataSourceType()const;
|
||||
void setDataSourceType(const std::string& dataSourceType);
|
||||
std::string getOrgName()const;
|
||||
void setOrgName(const std::string& orgName);
|
||||
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 dataSourceType_;
|
||||
std::string orgName_;
|
||||
std::string dataFormat_;
|
||||
std::vector<URLList> uRLList_;
|
||||
std::string orgId_;
|
||||
bool async_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_ANALYZECHESTVESSELREQUEST_H_
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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_ANALYZECHESTVESSELRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_ANALYZECHESTVESSELRESULT_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 AnalyzeChestVesselResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct AortaInfo
|
||||
{
|
||||
float maxArea;
|
||||
std::vector<std::string> area;
|
||||
float maxDiameter;
|
||||
long labelValue;
|
||||
std::vector<std::string> coordinates;
|
||||
long maxAreaIndex;
|
||||
};
|
||||
struct PulmonaryInfo
|
||||
{
|
||||
float maxArea;
|
||||
float maxDiameter;
|
||||
long labelValue;
|
||||
std::vector<std::string> coordinates1;
|
||||
long maxAreaIndex;
|
||||
std::vector<std::string> area2;
|
||||
float nearestAortaArea;
|
||||
};
|
||||
PulmonaryInfo pulmonaryInfo;
|
||||
AortaInfo aortaInfo;
|
||||
std::string resultURL;
|
||||
};
|
||||
|
||||
|
||||
AnalyzeChestVesselResult();
|
||||
explicit AnalyzeChestVesselResult(const std::string &payload);
|
||||
~AnalyzeChestVesselResult();
|
||||
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_ANALYZECHESTVESSELRESULT_H_
|
||||
@@ -36,8 +36,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct DetectionsItem
|
||||
{
|
||||
std::string fractureCategory;
|
||||
float fractureConfidence;
|
||||
std::string fractureCategory;
|
||||
std::vector<std::string> coordinateImage;
|
||||
std::vector<std::string> coordinates;
|
||||
std::string fractureLocation;
|
||||
|
||||
@@ -51,6 +51,42 @@ ImageprocessClient::ImageprocessClient(const std::string & accessKeyId, const st
|
||||
ImageprocessClient::~ImageprocessClient()
|
||||
{}
|
||||
|
||||
ImageprocessClient::AnalyzeChestVesselOutcome ImageprocessClient::analyzeChestVessel(const AnalyzeChestVesselRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AnalyzeChestVesselOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AnalyzeChestVesselOutcome(AnalyzeChestVesselResult(outcome.result()));
|
||||
else
|
||||
return AnalyzeChestVesselOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImageprocessClient::analyzeChestVesselAsync(const AnalyzeChestVesselRequest& request, const AnalyzeChestVesselAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, analyzeChestVessel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImageprocessClient::AnalyzeChestVesselOutcomeCallable ImageprocessClient::analyzeChestVesselCallable(const AnalyzeChestVesselRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AnalyzeChestVesselOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->analyzeChestVessel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImageprocessClient::CalcCACSOutcome ImageprocessClient::calcCACS(const CalcCACSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
99
imageprocess/src/model/AnalyzeChestVesselRequest.cc
Normal file
99
imageprocess/src/model/AnalyzeChestVesselRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imageprocess/model/AnalyzeChestVesselRequest.h>
|
||||
|
||||
using AlibabaCloud::Imageprocess::Model::AnalyzeChestVesselRequest;
|
||||
|
||||
AnalyzeChestVesselRequest::AnalyzeChestVesselRequest() :
|
||||
RpcServiceRequest("imageprocess", "2020-03-20", "AnalyzeChestVessel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AnalyzeChestVesselRequest::~AnalyzeChestVesselRequest()
|
||||
{}
|
||||
|
||||
std::string AnalyzeChestVesselRequest::getDataSourceType()const
|
||||
{
|
||||
return dataSourceType_;
|
||||
}
|
||||
|
||||
void AnalyzeChestVesselRequest::setDataSourceType(const std::string& dataSourceType)
|
||||
{
|
||||
dataSourceType_ = dataSourceType;
|
||||
setBodyParameter("DataSourceType", dataSourceType);
|
||||
}
|
||||
|
||||
std::string AnalyzeChestVesselRequest::getOrgName()const
|
||||
{
|
||||
return orgName_;
|
||||
}
|
||||
|
||||
void AnalyzeChestVesselRequest::setOrgName(const std::string& orgName)
|
||||
{
|
||||
orgName_ = orgName;
|
||||
setBodyParameter("OrgName", orgName);
|
||||
}
|
||||
|
||||
std::string AnalyzeChestVesselRequest::getDataFormat()const
|
||||
{
|
||||
return dataFormat_;
|
||||
}
|
||||
|
||||
void AnalyzeChestVesselRequest::setDataFormat(const std::string& dataFormat)
|
||||
{
|
||||
dataFormat_ = dataFormat;
|
||||
setBodyParameter("DataFormat", dataFormat);
|
||||
}
|
||||
|
||||
std::vector<AnalyzeChestVesselRequest::URLList> AnalyzeChestVesselRequest::getURLList()const
|
||||
{
|
||||
return uRLList_;
|
||||
}
|
||||
|
||||
void AnalyzeChestVesselRequest::setURLList(const std::vector<URLList>& uRLList)
|
||||
{
|
||||
uRLList_ = uRLList;
|
||||
for(int dep1 = 0; dep1!= uRLList.size(); dep1++) {
|
||||
auto uRLListObj = uRLList.at(dep1);
|
||||
std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1);
|
||||
setParameter(uRLListObjStr + ".URL", uRLListObj.uRL);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AnalyzeChestVesselRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void AnalyzeChestVesselRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
bool AnalyzeChestVesselRequest::getAsync()const
|
||||
{
|
||||
return async_;
|
||||
}
|
||||
|
||||
void AnalyzeChestVesselRequest::setAsync(bool async)
|
||||
{
|
||||
async_ = async;
|
||||
setBodyParameter("Async", async ? "true" : "false");
|
||||
}
|
||||
|
||||
98
imageprocess/src/model/AnalyzeChestVesselResult.cc
Normal file
98
imageprocess/src/model/AnalyzeChestVesselResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imageprocess/model/AnalyzeChestVesselResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
AnalyzeChestVesselResult::AnalyzeChestVesselResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AnalyzeChestVesselResult::AnalyzeChestVesselResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AnalyzeChestVesselResult::~AnalyzeChestVesselResult()
|
||||
{}
|
||||
|
||||
void AnalyzeChestVesselResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ResultURL"].isNull())
|
||||
data_.resultURL = dataNode["ResultURL"].asString();
|
||||
auto aortaInfoNode = dataNode["AortaInfo"];
|
||||
if(!aortaInfoNode["MaxAreaIndex"].isNull())
|
||||
data_.aortaInfo.maxAreaIndex = std::stol(aortaInfoNode["MaxAreaIndex"].asString());
|
||||
if(!aortaInfoNode["MaxArea"].isNull())
|
||||
data_.aortaInfo.maxArea = std::stof(aortaInfoNode["MaxArea"].asString());
|
||||
if(!aortaInfoNode["MaxDiameter"].isNull())
|
||||
data_.aortaInfo.maxDiameter = std::stof(aortaInfoNode["MaxDiameter"].asString());
|
||||
if(!aortaInfoNode["LabelValue"].isNull())
|
||||
data_.aortaInfo.labelValue = std::stol(aortaInfoNode["LabelValue"].asString());
|
||||
auto allCoordinates = aortaInfoNode["Coordinates"]["coordinates"];
|
||||
for (auto value : allCoordinates)
|
||||
data_.aortaInfo.coordinates.push_back(value.asString());
|
||||
auto allArea = aortaInfoNode["Area"]["area"];
|
||||
for (auto value : allArea)
|
||||
data_.aortaInfo.area.push_back(value.asString());
|
||||
auto pulmonaryInfoNode = dataNode["PulmonaryInfo"];
|
||||
if(!pulmonaryInfoNode["MaxAreaIndex"].isNull())
|
||||
data_.pulmonaryInfo.maxAreaIndex = std::stol(pulmonaryInfoNode["MaxAreaIndex"].asString());
|
||||
if(!pulmonaryInfoNode["MaxArea"].isNull())
|
||||
data_.pulmonaryInfo.maxArea = std::stof(pulmonaryInfoNode["MaxArea"].asString());
|
||||
if(!pulmonaryInfoNode["MaxDiameter"].isNull())
|
||||
data_.pulmonaryInfo.maxDiameter = std::stof(pulmonaryInfoNode["MaxDiameter"].asString());
|
||||
if(!pulmonaryInfoNode["LabelValue"].isNull())
|
||||
data_.pulmonaryInfo.labelValue = std::stol(pulmonaryInfoNode["LabelValue"].asString());
|
||||
if(!pulmonaryInfoNode["NearestAortaArea"].isNull())
|
||||
data_.pulmonaryInfo.nearestAortaArea = std::stof(pulmonaryInfoNode["NearestAortaArea"].asString());
|
||||
auto allCoordinates1 = pulmonaryInfoNode["Coordinates"]["coordinates"];
|
||||
for (auto value : allCoordinates1)
|
||||
data_.pulmonaryInfo.coordinates1.push_back(value.asString());
|
||||
auto allArea2 = pulmonaryInfoNode["Area"]["area"];
|
||||
for (auto value : allArea2)
|
||||
data_.pulmonaryInfo.area2.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AnalyzeChestVesselResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AnalyzeChestVesselResult::Data AnalyzeChestVesselResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AnalyzeChestVesselResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,22 +46,22 @@ void DetectRibFractureResult::parse(const std::string &payload)
|
||||
for (auto dataNodeDetectionsDetectionsItem : allDetectionsNode)
|
||||
{
|
||||
Data::DetectionsItem detectionsItemObject;
|
||||
if(!dataNodeDetectionsDetectionsItem["FractureCategory"].isNull())
|
||||
detectionsItemObject.fractureCategory = dataNodeDetectionsDetectionsItem["FractureCategory"].asString();
|
||||
if(!dataNodeDetectionsDetectionsItem["FractureId"].isNull())
|
||||
detectionsItemObject.fractureId = std::stoi(dataNodeDetectionsDetectionsItem["FractureId"].asString());
|
||||
if(!dataNodeDetectionsDetectionsItem["FractureConfidence"].isNull())
|
||||
detectionsItemObject.fractureConfidence = std::stof(dataNodeDetectionsDetectionsItem["FractureConfidence"].asString());
|
||||
if(!dataNodeDetectionsDetectionsItem["FractureCategory"].isNull())
|
||||
detectionsItemObject.fractureCategory = dataNodeDetectionsDetectionsItem["FractureCategory"].asString();
|
||||
if(!dataNodeDetectionsDetectionsItem["FractureLocation"].isNull())
|
||||
detectionsItemObject.fractureLocation = dataNodeDetectionsDetectionsItem["FractureLocation"].asString();
|
||||
if(!dataNodeDetectionsDetectionsItem["FractureSegment"].isNull())
|
||||
detectionsItemObject.fractureSegment = std::stol(dataNodeDetectionsDetectionsItem["FractureSegment"].asString());
|
||||
if(!dataNodeDetectionsDetectionsItem["FractureId"].isNull())
|
||||
detectionsItemObject.fractureId = std::stoi(dataNodeDetectionsDetectionsItem["FractureId"].asString());
|
||||
auto allCoordinateImage = value["CoordinateImage"]["CoordinateImage"];
|
||||
for (auto value : allCoordinateImage)
|
||||
detectionsItemObject.coordinateImage.push_back(value.asString());
|
||||
auto allCoordinates = value["Coordinates"]["Coordinates"];
|
||||
for (auto value : allCoordinates)
|
||||
detectionsItemObject.coordinates.push_back(value.asString());
|
||||
auto allCoordinateImage = value["CoordinateImage"]["CoordinateImage"];
|
||||
for (auto value : allCoordinateImage)
|
||||
detectionsItemObject.coordinateImage.push_back(value.asString());
|
||||
data_.detections.push_back(detectionsItemObject);
|
||||
}
|
||||
auto allOrigin = dataNode["Origin"]["Origin"];
|
||||
|
||||
Reference in New Issue
Block a user