| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- \hypertarget{classcore_1_1Tracklet}{}\section{core\+:\+:Tracklet Class Reference}
- \label{classcore_1_1Tracklet}\index{core\+::\+Tracklet@{core\+::\+Tracklet}}
- {\ttfamily \#include $<$Tracklet.\+h$>$}
- Inheritance diagram for core\+:\+:Tracklet\+:\begin{figure}[H]
- \begin{center}
- \leavevmode
- \includegraphics[height=2.000000cm]{classcore_1_1Tracklet}
- \end{center}
- \end{figure}
- \subsection*{Public Member Functions}
- \begin{DoxyCompactItemize}
- \item
- \hyperlink{classcore_1_1Tracklet_aedf59b5a9a068a28bb7570f2a031d4e7}{Tracklet} ()
- \item
- void \hyperlink{classcore_1_1Tracklet_ab0b397f2d0685a927de886dbd36c3bc8}{Add\+Path\+Object} (Object\+Data\+Ptr obj, bool overwrite=false)
- \item
- size\+\_\+t \hyperlink{classcore_1_1Tracklet_ae2c79325e151e8401a7a925984bbbe69}{Get\+First\+Frame\+Index} () const
- \item
- size\+\_\+t \hyperlink{classcore_1_1Tracklet_a71487b13697f71abb75949e6fcad9081}{Get\+Last\+Frame\+Index} () const
- \item
- Object\+Data\+Ptr \hyperlink{classcore_1_1Tracklet_a9758349e8f25c479ffc4b21a90149a81}{Get\+Path\+Object} (size\+\_\+t i)
- \item
- size\+\_\+t \hyperlink{classcore_1_1Tracklet_a0d27b17706f6c72c093c76e1f65b960f}{Get\+Path\+Object\+Count} () const
- \item
- void \hyperlink{classcore_1_1Tracklet_a10b56b608b24ef547550540e5a755bce}{Interpolate\+Missing\+Frames} ()
- \item
- virtual double \hyperlink{classcore_1_1Tracklet_a0357f2fa173941800571432dcbc96dc2}{Compare\+To} (Object\+Data\+Ptr obj) const override
- \item
- virtual Object\+Data\+Ptr \hyperlink{classcore_1_1Tracklet_a5fb5e6ab9df668c3477e8b52f115b188}{Interpolate} (Object\+Data\+Ptr obj, double fraction) const override
- \item
- virtual void \hyperlink{classcore_1_1Tracklet_a85f92a4059bf89f24a83f28935675181}{Visualize} (cv\+::\+Mat \&image, cv\+::\+Scalar \&color) const override
- \item
- void \hyperlink{classcore_1_1Tracklet_aee78c9ec0ee80b1b381083c20e1d3f18}{Visualize} (cv\+::\+Mat \&image, cv\+::\+Scalar \&color, size\+\_\+t frame, size\+\_\+t predecessor\+\_\+count, size\+\_\+t successor\+\_\+count) const
- \item
- void \hyperlink{classcore_1_1Tracklet_a2bdb2f2c8249145808e7029dde6e7df0}{Flatten} ()
- \item
- void {\bfseries Combine} (Tracklet\+Ptr other)\hypertarget{classcore_1_1Tracklet_a5bbbf1e2858edaad93c04cc663afeeff}{}\label{classcore_1_1Tracklet_a5bbbf1e2858edaad93c04cc663afeeff}
- \item
- Object\+Data\+Ptr {\bfseries Get\+Frame\+Object} (size\+\_\+t frame\+\_\+index)\hypertarget{classcore_1_1Tracklet_a5a0e56045f8c1868b46db87700658260}{}\label{classcore_1_1Tracklet_a5a0e56045f8c1868b46db87700658260}
- \end{DoxyCompactItemize}
- \subsection{Detailed Description}
- A class for storing multiple object data objects. The object data objects are handled as a path. All objects are stored sorted ascending by their frame index.
- \subsection{Constructor \& Destructor Documentation}
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Tracklet@{Tracklet}}
- \index{Tracklet@{Tracklet}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Tracklet()}{Tracklet()}}]{\setlength{\rightskip}{0pt plus 5cm}core\+::\+Tracklet\+::\+Tracklet (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1Tracklet_aedf59b5a9a068a28bb7570f2a031d4e7}{}\label{classcore_1_1Tracklet_aedf59b5a9a068a28bb7570f2a031d4e7}
- Creates a empty tracklet to store path object in. This is N\+OT a virtual object.
- \subsection{Member Function Documentation}
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Add\+Path\+Object@{Add\+Path\+Object}}
- \index{Add\+Path\+Object@{Add\+Path\+Object}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Add\+Path\+Object(\+Object\+Data\+Ptr obj, bool overwrite=false)}{AddPathObject(ObjectDataPtr obj, bool overwrite=false)}}]{\setlength{\rightskip}{0pt plus 5cm}void core\+::\+Tracklet\+::\+Add\+Path\+Object (
- \begin{DoxyParamCaption}
- \item[{Object\+Data\+Ptr}]{obj, }
- \item[{bool}]{overwrite = {\ttfamily false}}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1Tracklet_ab0b397f2d0685a927de886dbd36c3bc8}{}\label{classcore_1_1Tracklet_ab0b397f2d0685a927de886dbd36c3bc8}
- Adds the path object sorted into the tracklet.
- \begin{DoxyParams}{Parameters}
- {\em obj} & The path object to add \\
- \hline
- {\em overwrite} & If true and an object in the same frame as the given object already exists, the old one will be replaced by the new one \\
- \hline
- \end{DoxyParams}
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Compare\+To@{Compare\+To}}
- \index{Compare\+To@{Compare\+To}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Compare\+To(\+Object\+Data\+Ptr obj) const override}{CompareTo(ObjectDataPtr obj) const override}}]{\setlength{\rightskip}{0pt plus 5cm}double core\+::\+Tracklet\+::\+Compare\+To (
- \begin{DoxyParamCaption}
- \item[{Object\+Data\+Ptr}]{obj}
- \end{DoxyParamCaption}
- ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1Tracklet_a0357f2fa173941800571432dcbc96dc2}{}\label{classcore_1_1Tracklet_a0357f2fa173941800571432dcbc96dc2}
- 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}.
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Flatten@{Flatten}}
- \index{Flatten@{Flatten}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Flatten()}{Flatten()}}]{\setlength{\rightskip}{0pt plus 5cm}void core\+::\+Tracklet\+::\+Flatten (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1Tracklet_a2bdb2f2c8249145808e7029dde6e7df0}{}\label{classcore_1_1Tracklet_a2bdb2f2c8249145808e7029dde6e7df0}
- Flattens the current tracklet one level. That means, that if this tracklet contains other tracklets as path objects, their path objects are all extracted and used as the new path objects of this tracklet. The old tracklet path objects are removed. \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Get\+First\+Frame\+Index@{Get\+First\+Frame\+Index}}
- \index{Get\+First\+Frame\+Index@{Get\+First\+Frame\+Index}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Get\+First\+Frame\+Index() const }{GetFirstFrameIndex() const }}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t core\+::\+Tracklet\+::\+Get\+First\+Frame\+Index (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classcore_1_1Tracklet_ae2c79325e151e8401a7a925984bbbe69}{}\label{classcore_1_1Tracklet_ae2c79325e151e8401a7a925984bbbe69}
- Gets the lowest frame index of all path objects. \begin{DoxyReturn}{Returns}
- The lowest frame index
- \end{DoxyReturn}
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Get\+Last\+Frame\+Index@{Get\+Last\+Frame\+Index}}
- \index{Get\+Last\+Frame\+Index@{Get\+Last\+Frame\+Index}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Get\+Last\+Frame\+Index() const }{GetLastFrameIndex() const }}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t core\+::\+Tracklet\+::\+Get\+Last\+Frame\+Index (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classcore_1_1Tracklet_a71487b13697f71abb75949e6fcad9081}{}\label{classcore_1_1Tracklet_a71487b13697f71abb75949e6fcad9081}
- Gets the highest frame index of all path objects. \begin{DoxyReturn}{Returns}
- The highest frame index
- \end{DoxyReturn}
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Get\+Path\+Object@{Get\+Path\+Object}}
- \index{Get\+Path\+Object@{Get\+Path\+Object}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Get\+Path\+Object(size\+\_\+t i)}{GetPathObject(size_t i)}}]{\setlength{\rightskip}{0pt plus 5cm}Object\+Data\+Ptr core\+::\+Tracklet\+::\+Get\+Path\+Object (
- \begin{DoxyParamCaption}
- \item[{size\+\_\+t}]{i}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1Tracklet_a9758349e8f25c479ffc4b21a90149a81}{}\label{classcore_1_1Tracklet_a9758349e8f25c479ffc4b21a90149a81}
- Gets the path object at the given index. The index is N\+OT the frame index \begin{DoxyReturn}{Returns}
- A pointer to the path object
- \end{DoxyReturn}
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Get\+Path\+Object\+Count@{Get\+Path\+Object\+Count}}
- \index{Get\+Path\+Object\+Count@{Get\+Path\+Object\+Count}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Get\+Path\+Object\+Count() const }{GetPathObjectCount() const }}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t core\+::\+Tracklet\+::\+Get\+Path\+Object\+Count (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classcore_1_1Tracklet_a0d27b17706f6c72c093c76e1f65b960f}{}\label{classcore_1_1Tracklet_a0d27b17706f6c72c093c76e1f65b960f}
- Gets the count of all path objects. \begin{DoxyReturn}{Returns}
- The path object count
- \end{DoxyReturn}
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Interpolate@{Interpolate}}
- \index{Interpolate@{Interpolate}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \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\+::\+Tracklet\+::\+Interpolate (
- \begin{DoxyParamCaption}
- \item[{Object\+Data\+Ptr}]{obj, }
- \item[{double}]{fraction}
- \end{DoxyParamCaption}
- ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1Tracklet_a5fb5e6ab9df668c3477e8b52f115b188}{}\label{classcore_1_1Tracklet_a5fb5e6ab9df668c3477e8b52f115b188}
- 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}.
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Interpolate\+Missing\+Frames@{Interpolate\+Missing\+Frames}}
- \index{Interpolate\+Missing\+Frames@{Interpolate\+Missing\+Frames}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Interpolate\+Missing\+Frames()}{InterpolateMissingFrames()}}]{\setlength{\rightskip}{0pt plus 5cm}void core\+::\+Tracklet\+::\+Interpolate\+Missing\+Frames (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- )}\hypertarget{classcore_1_1Tracklet_a10b56b608b24ef547550540e5a755bce}{}\label{classcore_1_1Tracklet_a10b56b608b24ef547550540e5a755bce}
- Interpolates between the current path objects until every missing frame has an object. Only frames between the first frame index and the last frame index are interpolated. \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Visualize@{Visualize}}
- \index{Visualize@{Visualize}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \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\+::\+Tracklet\+::\+Visualize (
- \begin{DoxyParamCaption}
- \item[{cv\+::\+Mat \&}]{image, }
- \item[{cv\+::\+Scalar \&}]{color}
- \end{DoxyParamCaption}
- ) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}\hypertarget{classcore_1_1Tracklet_a85f92a4059bf89f24a83f28935675181}{}\label{classcore_1_1Tracklet_a85f92a4059bf89f24a83f28935675181}
- 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}.
- \index{core\+::\+Tracklet@{core\+::\+Tracklet}!Visualize@{Visualize}}
- \index{Visualize@{Visualize}!core\+::\+Tracklet@{core\+::\+Tracklet}}
- \subsubsection[{\texorpdfstring{Visualize(cv\+::\+Mat \&image, cv\+::\+Scalar \&color, size\+\_\+t frame, size\+\_\+t predecessor\+\_\+count, size\+\_\+t successor\+\_\+count) const }{Visualize(cv::Mat &image, cv::Scalar &color, size_t frame, size_t predecessor_count, size_t successor_count) const }}]{\setlength{\rightskip}{0pt plus 5cm}void core\+::\+Tracklet\+::\+Visualize (
- \begin{DoxyParamCaption}
- \item[{cv\+::\+Mat \&}]{image, }
- \item[{cv\+::\+Scalar \&}]{color, }
- \item[{size\+\_\+t}]{frame, }
- \item[{size\+\_\+t}]{predecessor\+\_\+count, }
- \item[{size\+\_\+t}]{successor\+\_\+count}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classcore_1_1Tracklet_aee78c9ec0ee80b1b381083c20e1d3f18}{}\label{classcore_1_1Tracklet_aee78c9ec0ee80b1b381083c20e1d3f18}
- Visualizes the tracklet by visualizing the path object in the given frame and the number of path objects in the given range before and after the given frame.
- \begin{DoxyParams}{Parameters}
- {\em image} & The image to write into \\
- \hline
- {\em color} & The color to use \\
- \hline
- {\em frame} & The frame index to visualize the path objects from \\
- \hline
- {\em predecessor\+\_\+count} & The number of path objects to visualize before the given frame \\
- \hline
- {\em successor\+\_\+count} & The number of path objects to visualize after the given frame \\
- \hline
- \end{DoxyParams}
- The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
- \item
- core/Tracklet.\+h\item
- core/Tracklet.\+cpp\end{DoxyCompactItemize}
|