EIMResult.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _IMTResult_h_
  2. #define _IMTResult_h_
  3. namespace imt
  4. {
  5. typedef struct Point
  6. {
  7. int x;
  8. int y;
  9. } Point;
  10. typedef struct IMTResult
  11. {
  12. /// IMT values in mm.
  13. double imt_max;
  14. double imt_mean;
  15. double imt_standardDeviation;
  16. /// Separate intima and media measurement
  17. double intima_mean;
  18. double media_mean;
  19. /// Quality index of the measurement. 0.0 <= QI <= 1.0
  20. double qualityIndex;
  21. /// The distance between p0 and p1 in mm.
  22. double distance;
  23. /// Length of the user defined segment in image pixels (= number of points in vect_intima and vect_adventitia)
  24. int numberOfPoints;
  25. /** Arrays of length = numberOfPoints.
  26. They contain the coordinates of detected points.
  27. If no IMT detection was possible, then the corresponding point has coordinates (-1.0, -1.0).
  28. **/
  29. Point* vect_intima;
  30. Point* vect_media;
  31. Point* vect_adventitia;
  32. /// The points delimiting the user defined segment. A distance of 10mm is recommended here.
  33. Point p0;
  34. Point p1;
  35. } IMTResult;
  36. }
  37. #endif