ScreenChestCTResult.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENCHESTCTRESULT_H_
  17. #define ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENCHESTCTRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/imageprocess/ImageprocessExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Imageprocess
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_IMAGEPROCESS_EXPORT ScreenChestCTResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct LungNodule
  35. {
  36. struct Serie
  37. {
  38. struct Element
  39. {
  40. float imageZ;
  41. float imageY;
  42. std::string lobe;
  43. float imageX;
  44. std::string category;
  45. std::string lung;
  46. float meanValue;
  47. float confidence;
  48. float volume;
  49. float x;
  50. float y;
  51. float z;
  52. std::string sOPInstanceUID;
  53. float diameter;
  54. };
  55. std::vector<std::string> origin;
  56. std::string report;
  57. std::vector<std::string> spacing;
  58. std::vector<Serie::Element> elements;
  59. std::string seriesInstanceUid;
  60. };
  61. std::vector<Serie> series;
  62. };
  63. struct CACS
  64. {
  65. std::string score;
  66. std::string resultUrl;
  67. };
  68. struct Covid
  69. {
  70. std::string newProbability;
  71. std::string otherProbability;
  72. std::string normalProbability;
  73. std::string mask;
  74. std::string lesionRatio;
  75. };
  76. struct DetectRibFracture
  77. {
  78. struct DetectionsItem
  79. {
  80. float fractureConfidence;
  81. long fractureCategory;
  82. std::vector<std::string> coordinateImage;
  83. std::vector<std::string> coordinates;
  84. std::string fractureLocation;
  85. long fractureSegment;
  86. long fractureId;
  87. };
  88. std::vector<std::string> origin2;
  89. std::vector<std::string> spacing1;
  90. std::vector<DetectionsItem> detections;
  91. std::string resultURL;
  92. };
  93. LungNodule lungNodule;
  94. CACS cACS;
  95. Covid covid;
  96. DetectRibFracture detectRibFracture;
  97. std::string errorMessage;
  98. };
  99. ScreenChestCTResult();
  100. explicit ScreenChestCTResult(const std::string &payload);
  101. ~ScreenChestCTResult();
  102. std::string getMessage()const;
  103. Data getData()const;
  104. std::string getCode()const;
  105. protected:
  106. void parse(const std::string &payload);
  107. private:
  108. std::string message_;
  109. Data data_;
  110. std::string code_;
  111. };
  112. }
  113. }
  114. }
  115. #endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENCHESTCTRESULT_H_