| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- \hypertarget{classcore_1_1ObjectData2D}{}\section{core\+:\+:Object\+Data2D Class Reference}
- \label{classcore_1_1ObjectData2D}\index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- {\ttfamily \#include $<$Object\+Data2\+D.\+h$>$}
- Inheritance diagram for core\+:\+:Object\+Data2D\+:\begin{figure}[H]
- \begin{center}
- \leavevmode
- \includegraphics[height=3.000000cm]{classcore_1_1ObjectData2D}
- \end{center}
- \end{figure}
- \subsection*{Public Member Functions}
- \begin{DoxyCompactItemize}
- \item
- \hyperlink{classcore_1_1ObjectData2D_adc35e5b8597ea47ad3568259c2e800c6}{Object\+Data2D} (size\+\_\+t frame\+\_\+index, cv\+::\+Point2d position)
- \item
- void \hyperlink{classcore_1_1ObjectData2D_a2850785393bc7a5250427bbda84c1b58}{Set\+Temporal\+Weight} (double weight)
- \item
- void \hyperlink{classcore_1_1ObjectData2D_ad62bf8b2362e8f3547f8040a144fa346}{Set\+Spatial\+Weight} (double weight)
- \item
- cv\+::\+Point2d \hyperlink{classcore_1_1ObjectData2D_a29f86d082602a53722f1139058b2de79}{Get\+Position} () const
- \item
- double \hyperlink{classcore_1_1ObjectData2D_a8c783114ee2ffdc621620019d23175c1}{Get\+Temporal\+Weight} () const
- \item
- double \hyperlink{classcore_1_1ObjectData2D_a537e36b33048c37cabf65532954eb6e9}{Get\+Spatial\+Weight} () const
- \item
- virtual double \hyperlink{classcore_1_1ObjectData2D_a68d56bd5f26a41830a87ae32eabf9126}{Compare\+To} (Object\+Data\+Ptr obj) const override
- \item
- virtual Object\+Data\+Ptr \hyperlink{classcore_1_1ObjectData2D_a59b974e09f74f0a2640e3152893fe79f}{Interpolate} (Object\+Data\+Ptr obj, double fraction) const override
- \item
- virtual void \hyperlink{classcore_1_1ObjectData2D_aff4e8539559f4ce50a7f43b733d6c512}{Visualize} (cv\+::\+Mat \&image, cv\+::\+Scalar \&color) const override
- \end{DoxyCompactItemize}
- \subsection{Detailed Description}
- Class for storing a detection in two dimensional space.
- \subsection{Constructor \& Destructor Documentation}
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Object\+Data2D@{Object\+Data2D}}
- \index{Object\+Data2D@{Object\+Data2D}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \subsubsection[{\texorpdfstring{Object\+Data2\+D(size\+\_\+t frame\+\_\+index, cv\+::\+Point2d position)}{ObjectData2D(size_t frame_index, cv::Point2d position)}}]{\setlength{\rightskip}{0pt plus 5cm}core\+::\+Object\+Data2\+D\+::\+Object\+Data2D (
- \begin{DoxyParamCaption}
- \item[{size\+\_\+t}]{frame\+\_\+index, }
- \item[{cv\+::\+Point2d}]{position}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1ObjectData2D_adc35e5b8597ea47ad3568259c2e800c6}{}\label{classcore_1_1ObjectData2D_adc35e5b8597ea47ad3568259c2e800c6}
- Creates a new detection with the given index and position.
- \begin{DoxyParams}{Parameters}
- {\em frame\+\_\+index} & The frame index \\
- \hline
- {\em position} & The position in three dimensional space \\
- \hline
- \end{DoxyParams}
- \subsection{Member Function Documentation}
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Compare\+To@{Compare\+To}}
- \index{Compare\+To@{Compare\+To}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \subsubsection[{\texorpdfstring{Compare\+To(\+Object\+Data\+Ptr obj) const override}{CompareTo(ObjectDataPtr obj) const override}}]{\setlength{\rightskip}{0pt plus 5cm}double core\+::\+Object\+Data2\+D\+::\+Compare\+To (
- \begin{DoxyParamCaption}
- \item[{Object\+Data\+Ptr}]{obj}
- \end{DoxyParamCaption}
- ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectData2D_a68d56bd5f26a41830a87ae32eabf9126}{}\label{classcore_1_1ObjectData2D_a68d56bd5f26a41830a87ae32eabf9126}
- Compares this object with the given object.
- \begin{DoxyParams}{Parameters}
- {\em obj} & A pointer to the object to compare this object to \\
- \hline
- \end{DoxyParams}
- \begin{DoxyReturn}{Returns}
- A double value indicating the comparison result
- \end{DoxyReturn}
- Reimplemented from \hyperlink{classcore_1_1ObjectData_adcd9fc0dfa93d45668e667237f249553}{core\+::\+Object\+Data}.
- Reimplemented in \hyperlink{classcore_1_1ObjectDataAngular_a2932240c6c082b76f2c04723cdf3e4f9}{core\+::\+Object\+Data\+Angular}, and \hyperlink{classcore_1_1ObjectDataBox_a163c57338778f957ce514611c509558a}{core\+::\+Object\+Data\+Box}.
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Get\+Position@{Get\+Position}}
- \index{Get\+Position@{Get\+Position}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \subsubsection[{\texorpdfstring{Get\+Position() const }{GetPosition() const }}]{\setlength{\rightskip}{0pt plus 5cm}cv\+::\+Point2d core\+::\+Object\+Data2\+D\+::\+Get\+Position (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classcore_1_1ObjectData2D_a29f86d082602a53722f1139058b2de79}{}\label{classcore_1_1ObjectData2D_a29f86d082602a53722f1139058b2de79}
- Gets the position in two dimensional space. \begin{DoxyReturn}{Returns}
- The position
- \end{DoxyReturn}
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Get\+Spatial\+Weight@{Get\+Spatial\+Weight}}
- \index{Get\+Spatial\+Weight@{Get\+Spatial\+Weight}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \subsubsection[{\texorpdfstring{Get\+Spatial\+Weight() const }{GetSpatialWeight() const }}]{\setlength{\rightskip}{0pt plus 5cm}double core\+::\+Object\+Data2\+D\+::\+Get\+Spatial\+Weight (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classcore_1_1ObjectData2D_a537e36b33048c37cabf65532954eb6e9}{}\label{classcore_1_1ObjectData2D_a537e36b33048c37cabf65532954eb6e9}
- Gets the spatial weight \begin{DoxyReturn}{Returns}
- The spatial weight
- \end{DoxyReturn}
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Get\+Temporal\+Weight@{Get\+Temporal\+Weight}}
- \index{Get\+Temporal\+Weight@{Get\+Temporal\+Weight}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \subsubsection[{\texorpdfstring{Get\+Temporal\+Weight() const }{GetTemporalWeight() const }}]{\setlength{\rightskip}{0pt plus 5cm}double core\+::\+Object\+Data2\+D\+::\+Get\+Temporal\+Weight (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classcore_1_1ObjectData2D_a8c783114ee2ffdc621620019d23175c1}{}\label{classcore_1_1ObjectData2D_a8c783114ee2ffdc621620019d23175c1}
- Gets the temporal weight. \begin{DoxyReturn}{Returns}
- The temporal weight
- \end{DoxyReturn}
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Interpolate@{Interpolate}}
- \index{Interpolate@{Interpolate}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \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\+Data2\+D\+::\+Interpolate (
- \begin{DoxyParamCaption}
- \item[{Object\+Data\+Ptr}]{obj, }
- \item[{double}]{fraction}
- \end{DoxyParamCaption}
- ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectData2D_a59b974e09f74f0a2640e3152893fe79f}{}\label{classcore_1_1ObjectData2D_a59b974e09f74f0a2640e3152893fe79f}
- Linearly interpolates between this and the given object. Creates a new object to fit between the two objects.
- \begin{DoxyParams}{Parameters}
- {\em obj} & A pointer to the target object \\
- \hline
- {\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. \\
- \hline
- \end{DoxyParams}
- \begin{DoxyReturn}{Returns}
- The interpolated object
- \end{DoxyReturn}
- Reimplemented from \hyperlink{classcore_1_1ObjectData_a7b8943b13c2c2ce2dfaacb2b98c8f30c}{core\+::\+Object\+Data}.
- Reimplemented in \hyperlink{classcore_1_1ObjectDataAngular_a42962dd1f994b2577133450e755d586e}{core\+::\+Object\+Data\+Angular}, and \hyperlink{classcore_1_1ObjectDataBox_ab2816bceb771dd7442e6c29193dfe267}{core\+::\+Object\+Data\+Box}.
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Set\+Spatial\+Weight@{Set\+Spatial\+Weight}}
- \index{Set\+Spatial\+Weight@{Set\+Spatial\+Weight}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \subsubsection[{\texorpdfstring{Set\+Spatial\+Weight(double weight)}{SetSpatialWeight(double weight)}}]{\setlength{\rightskip}{0pt plus 5cm}void core\+::\+Object\+Data2\+D\+::\+Set\+Spatial\+Weight (
- \begin{DoxyParamCaption}
- \item[{double}]{weight}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1ObjectData2D_ad62bf8b2362e8f3547f8040a144fa346}{}\label{classcore_1_1ObjectData2D_ad62bf8b2362e8f3547f8040a144fa346}
- Sets the spatial weight
- \begin{DoxyParams}{Parameters}
- {\em weight} & The spatial weight \\
- \hline
- \end{DoxyParams}
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Set\+Temporal\+Weight@{Set\+Temporal\+Weight}}
- \index{Set\+Temporal\+Weight@{Set\+Temporal\+Weight}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \subsubsection[{\texorpdfstring{Set\+Temporal\+Weight(double weight)}{SetTemporalWeight(double weight)}}]{\setlength{\rightskip}{0pt plus 5cm}void core\+::\+Object\+Data2\+D\+::\+Set\+Temporal\+Weight (
- \begin{DoxyParamCaption}
- \item[{double}]{weight}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1ObjectData2D_a2850785393bc7a5250427bbda84c1b58}{}\label{classcore_1_1ObjectData2D_a2850785393bc7a5250427bbda84c1b58}
- Sets the temporal weight.
- \begin{DoxyParams}{Parameters}
- {\em weight} & The temporal weight \\
- \hline
- \end{DoxyParams}
- \index{core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}!Visualize@{Visualize}}
- \index{Visualize@{Visualize}!core\+::\+Object\+Data2D@{core\+::\+Object\+Data2D}}
- \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\+Data2\+D\+::\+Visualize (
- \begin{DoxyParamCaption}
- \item[{cv\+::\+Mat \&}]{image, }
- \item[{cv\+::\+Scalar \&}]{color}
- \end{DoxyParamCaption}
- ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1ObjectData2D_aff4e8539559f4ce50a7f43b733d6c512}{}\label{classcore_1_1ObjectData2D_aff4e8539559f4ce50a7f43b733d6c512}
- Visualizes the object in the given image with the given color. This method does nothing, it needs to be overwritten to visualize something.
- \begin{DoxyParams}{Parameters}
- {\em image} & The image to write into \\
- \hline
- {\em color} & The color to use \\
- \hline
- \end{DoxyParams}
- Reimplemented from \hyperlink{classcore_1_1ObjectData_a505eb948f5d857b86f4f452bb39053b9}{core\+::\+Object\+Data}.
- Reimplemented in \hyperlink{classcore_1_1ObjectDataAngular_acb4265f6de511238460df118148bc85c}{core\+::\+Object\+Data\+Angular}, and \hyperlink{classcore_1_1ObjectDataBox_ab29bacb20c258ba572d0372469ec5523}{core\+::\+Object\+Data\+Box}.
- The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
- \item
- core/Object\+Data2\+D.\+h\item
- core/Object\+Data2\+D.\+cpp\end{DoxyCompactItemize}
|