classcore_1_1ObjectDataBox.tex 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. \hypertarget{classcore_1_1ObjectDataBox}{}\section{core\+:\+:Object\+Data\+Box Class Reference}
  2. \label{classcore_1_1ObjectDataBox}\index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  3. {\ttfamily \#include $<$Object\+Data\+Box.\+h$>$}
  4. Inheritance diagram for core\+:\+:Object\+Data\+Box\+:\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=3.000000cm]{classcore_1_1ObjectDataBox}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Public Member Functions}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. \hyperlink{classcore_1_1ObjectDataBox_a4e331870ed012d9bc44bc769aee86362}{Object\+Data\+Box} (size\+\_\+t frame\+\_\+index, cv\+::\+Point2d center, cv\+::\+Point2d size)
  14. \item
  15. cv\+::\+Point2d \hyperlink{classcore_1_1ObjectDataBox_a76e9f48dfb685d16de868a129c1f3918}{Get\+Size} () const
  16. \item
  17. virtual double \hyperlink{classcore_1_1ObjectDataBox_a163c57338778f957ce514611c509558a}{Compare\+To} (Object\+Data\+Ptr obj) const override
  18. \item
  19. virtual bool \hyperlink{classcore_1_1ObjectDataBox_a04f4b780b79491270e4838f7504c1917}{Is\+Within\+Constraints} (Object\+Data\+Ptr obj, std\+::unordered\+\_\+map$<$ std\+::string, double $>$ \&constraints) const override
  20. \item
  21. virtual Object\+Data\+Ptr \hyperlink{classcore_1_1ObjectDataBox_ab2816bceb771dd7442e6c29193dfe267}{Interpolate} (Object\+Data\+Ptr obj, double fraction) const override
  22. \item
  23. virtual void \hyperlink{classcore_1_1ObjectDataBox_ab29bacb20c258ba572d0372469ec5523}{Visualize} (cv\+::\+Mat \&image, cv\+::\+Scalar \&color) const override
  24. \item
  25. virtual std\+::string \hyperlink{classcore_1_1ObjectDataBox_a0af10953ccecb7089a3a2841ec7419b9}{To\+String} (char delimiter) const override
  26. \end{DoxyCompactItemize}
  27. \subsection{Detailed Description}
  28. Class for storing an object detection with an bounding box.
  29. \subsection{Constructor \& Destructor Documentation}
  30. \index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}!Object\+Data\+Box@{Object\+Data\+Box}}
  31. \index{Object\+Data\+Box@{Object\+Data\+Box}!core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  32. \subsubsection[{\texorpdfstring{Object\+Data\+Box(size\+\_\+t frame\+\_\+index, cv\+::\+Point2d center, cv\+::\+Point2d size)}{ObjectDataBox(size\_t frame\_index, cv::Point2d center, cv::Point2d size)}}]{\setlength{\rightskip}{0pt plus 5cm}core\+::\+Object\+Data\+Box\+::\+Object\+Data\+Box (
  33. \begin{DoxyParamCaption}
  34. \item[{size\+\_\+t}]{frame\+\_\+index, }
  35. \item[{cv\+::\+Point2d}]{center, }
  36. \item[{cv\+::\+Point2d}]{size}
  37. \end{DoxyParamCaption}
  38. )}\hypertarget{classcore_1_1ObjectDataBox_a4e331870ed012d9bc44bc769aee86362}{}\label{classcore_1_1ObjectDataBox_a4e331870ed012d9bc44bc769aee86362}
  39. Creates a new detection with an bounding box of the given size.
  40. \begin{DoxyParams}{Parameters}
  41. {\em frame\+\_\+index} & The frame index of the detection \\
  42. \hline
  43. {\em center} & The center of the bounding box \\
  44. \hline
  45. {\em size} & The size of the bounding box \\
  46. \hline
  47. \end{DoxyParams}
  48. \subsection{Member Function Documentation}
  49. \index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}!Compare\+To@{Compare\+To}}
  50. \index{Compare\+To@{Compare\+To}!core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  51. \subsubsection[{\texorpdfstring{Compare\+To(\+Object\+Data\+Ptr obj) const override}{CompareTo(ObjectDataPtr obj) const override}}]{\setlength{\rightskip}{0pt plus 5cm}double core\+::\+Object\+Data\+Box\+::\+Compare\+To (
  52. \begin{DoxyParamCaption}
  53. \item[{Object\+Data\+Ptr}]{obj}
  54. \end{DoxyParamCaption}
  55. ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectDataBox_a163c57338778f957ce514611c509558a}{}\label{classcore_1_1ObjectDataBox_a163c57338778f957ce514611c509558a}
  56. Compares this object with the given object.
  57. \begin{DoxyParams}{Parameters}
  58. {\em obj} & A pointer to the object to compare this object to \\
  59. \hline
  60. \end{DoxyParams}
  61. \begin{DoxyReturn}{Returns}
  62. A double value indicating the comparison result
  63. \end{DoxyReturn}
  64. Reimplemented from \hyperlink{classcore_1_1ObjectData2D_a68d56bd5f26a41830a87ae32eabf9126}{core\+::\+Object\+Data2D}.
  65. \index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}!Get\+Size@{Get\+Size}}
  66. \index{Get\+Size@{Get\+Size}!core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  67. \subsubsection[{\texorpdfstring{Get\+Size() const}{GetSize() const}}]{\setlength{\rightskip}{0pt plus 5cm}cv\+::\+Point2d core\+::\+Object\+Data\+Box\+::\+Get\+Size (
  68. \begin{DoxyParamCaption}
  69. {}
  70. \end{DoxyParamCaption}
  71. ) const}\hypertarget{classcore_1_1ObjectDataBox_a76e9f48dfb685d16de868a129c1f3918}{}\label{classcore_1_1ObjectDataBox_a76e9f48dfb685d16de868a129c1f3918}
  72. Gets the size of the bounding box.
  73. \begin{DoxyReturn}{Returns}
  74. The size of the bounding box
  75. \end{DoxyReturn}
  76. \index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}!Interpolate@{Interpolate}}
  77. \index{Interpolate@{Interpolate}!core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  78. \subsubsection[{\texorpdfstring{Interpolate(\+Object\+Data\+Ptr obj, double fraction) const override}{Interpolate(ObjectDataPtr obj, double fraction) const override}}]{\setlength{\rightskip}{0pt plus 5cm}Object\+Data\+Ptr core\+::\+Object\+Data\+Box\+::\+Interpolate (
  79. \begin{DoxyParamCaption}
  80. \item[{Object\+Data\+Ptr}]{obj, }
  81. \item[{double}]{fraction}
  82. \end{DoxyParamCaption}
  83. ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectDataBox_ab2816bceb771dd7442e6c29193dfe267}{}\label{classcore_1_1ObjectDataBox_ab2816bceb771dd7442e6c29193dfe267}
  84. Linearly interpolates between this and the given object. Creates a new object to fit between the two objects.
  85. \begin{DoxyParams}{Parameters}
  86. {\em obj} & A pointer to the target object \\
  87. \hline
  88. {\em fraction} & Describes where the interpolation should be done. A fraction of zero is a clone of this object, a fraction of one is a clone of the target object. \\
  89. \hline
  90. \end{DoxyParams}
  91. \begin{DoxyReturn}{Returns}
  92. The interpolated object
  93. \end{DoxyReturn}
  94. Reimplemented from \hyperlink{classcore_1_1ObjectData2D_a59b974e09f74f0a2640e3152893fe79f}{core\+::\+Object\+Data2D}.
  95. \index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}!Is\+Within\+Constraints@{Is\+Within\+Constraints}}
  96. \index{Is\+Within\+Constraints@{Is\+Within\+Constraints}!core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  97. \subsubsection[{\texorpdfstring{Is\+Within\+Constraints(\+Object\+Data\+Ptr obj, std\+::unordered\+\_\+map$<$ std\+::string, double $>$ \&constraints) const override}{IsWithinConstraints(ObjectDataPtr obj, std::unordered\_map< std::string, double > \&constraints) const override}}]{\setlength{\rightskip}{0pt plus 5cm}bool core\+::\+Object\+Data\+Box\+::\+Is\+Within\+Constraints (
  98. \begin{DoxyParamCaption}
  99. \item[{Object\+Data\+Ptr}]{obj, }
  100. \item[{std\+::unordered\+\_\+map$<$ std\+::string, double $>$ \&}]{constraints}
  101. \end{DoxyParamCaption}
  102. ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectDataBox_a04f4b780b79491270e4838f7504c1917}{}\label{classcore_1_1ObjectDataBox_a04f4b780b79491270e4838f7504c1917}
  103. Checks if the difference between this object and the specified object is within the constraints specified. The difference is calculated for each constraint separately.
  104. \begin{DoxyParams}{Parameters}
  105. {\em obj} & The object to get the difference to \\
  106. \hline
  107. {\em constraints} & The constraints to assure \\
  108. \hline
  109. \end{DoxyParams}
  110. Reimplemented from \hyperlink{classcore_1_1ObjectData2D_a63e855919a72462225a8e69140f1389b}{core\+::\+Object\+Data2D}.
  111. \index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}!To\+String@{To\+String}}
  112. \index{To\+String@{To\+String}!core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  113. \subsubsection[{\texorpdfstring{To\+String(char delimiter) const override}{ToString(char delimiter) const override}}]{\setlength{\rightskip}{0pt plus 5cm}std\+::string core\+::\+Object\+Data\+Box\+::\+To\+String (
  114. \begin{DoxyParamCaption}
  115. \item[{char}]{delimiter}
  116. \end{DoxyParamCaption}
  117. ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectDataBox_a0af10953ccecb7089a3a2841ec7419b9}{}\label{classcore_1_1ObjectDataBox_a0af10953ccecb7089a3a2841ec7419b9}
  118. Returns a string representing the values of this object data.
  119. \begin{DoxyParams}{Parameters}
  120. {\em delimiter} & The delimiter used to separate values \\
  121. \hline
  122. \end{DoxyParams}
  123. \begin{DoxyReturn}{Returns}
  124. The string containing the values
  125. \end{DoxyReturn}
  126. Reimplemented from \hyperlink{classcore_1_1ObjectData2D_a72b2f50ca82ebd9269e1c29cdac6d92a}{core\+::\+Object\+Data2D}.
  127. \index{core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}!Visualize@{Visualize}}
  128. \index{Visualize@{Visualize}!core\+::\+Object\+Data\+Box@{core\+::\+Object\+Data\+Box}}
  129. \subsubsection[{\texorpdfstring{Visualize(cv\+::\+Mat \&image, cv\+::\+Scalar \&color) const override}{Visualize(cv::Mat \&image, cv::Scalar \&color) const override}}]{\setlength{\rightskip}{0pt plus 5cm}void core\+::\+Object\+Data\+Box\+::\+Visualize (
  130. \begin{DoxyParamCaption}
  131. \item[{cv\+::\+Mat \&}]{image, }
  132. \item[{cv\+::\+Scalar \&}]{color}
  133. \end{DoxyParamCaption}
  134. ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectDataBox_ab29bacb20c258ba572d0372469ec5523}{}\label{classcore_1_1ObjectDataBox_ab29bacb20c258ba572d0372469ec5523}
  135. Visualizes the object in the given image with the given color. This method does nothing, it needs to be overwritten to visualize something.
  136. \begin{DoxyParams}{Parameters}
  137. {\em image} & The image to write into \\
  138. \hline
  139. {\em color} & The color to use \\
  140. \hline
  141. \end{DoxyParams}
  142. Reimplemented from \hyperlink{classcore_1_1ObjectData2D_aff4e8539559f4ce50a7f43b733d6c512}{core\+::\+Object\+Data2D}.
  143. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  144. \item
  145. core/Object\+Data\+Box.\+h\item
  146. core/Object\+Data\+Box.\+cpp\end{DoxyCompactItemize}