EasyCV  0.9.36
Easy! Computer Vision
processLabels.h
Go to the documentation of this file.
1 
2 /****
3  *CVAC Software Disclaimer
4  *
5  *This software was developed at the Naval Postgraduate School, Monterey, CA,
6  *by employees of the Federal Government in the course of their official duties.
7  *Pursuant to title 17 Section 105 of the United States Code this software
8  *is not subject to copyright protection and is in the public domain. It is
9  *an experimental system. The Naval Postgraduate School assumes no
10  *responsibility whatsoever for its use by other parties, and makes
11  *no guarantees, expressed or implied, about its quality, reliability,
12  *or any other characteristic.
13  *We would appreciate acknowledgement and a brief notification if the software
14  *is used.
15  *
16  *Redistribution and use in source and binary forms, with or without
17  *modification, are permitted provided that the following conditions are met:
18  * * Redistributions of source code must retain the above notice,
19  * this list of conditions and the following disclaimer.
20  * * Redistributions in binary form must reproduce the above notice,
21  * this list of conditions and the following disclaimer in the
22  * documentation and/or other materials provided with the distribution.
23  * * Neither the name of the Naval Postgraduate School, nor the name of
24  * the U.S. Government, nor the names of its contributors may be used
25  * to endorse or promote products derived from this software without
26  * specific prior written permission.
27  *
28  *THIS SOFTWARE IS PROVIDED BY THE NAVAL POSTGRADUATE SCHOOL (NPS) AND CONTRIBUTORS
29  *"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30  *THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31  *ARE DISCLAIMED. IN NO EVENT SHALL NPS OR THE U.S. BE LIABLE FOR ANY
32  *DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
33  *(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
34  *LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
35  *ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36  *(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
37  *SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38  *****/
39 #pragma once
40 
44 #include <Data.h>
45 #include <Services.h>
46 #include <iostream>
47 #include <map>
48 #include <vector>
49 #include <string>
50 #include <utility>
51 #include <util/RunSetIterator.h>
52 #include <util/RunSetWrapper.h>
53 
54 
55 namespace cvac
56 {
57 
58  typedef struct {
59  std::string filename;
60  std::vector<cvac::BBoxPtr> rects;
62 
68  typedef bool (*GetImageSizeFunction)(std::string filename, int &width, int &height);
69 
71  std::string cvacDataDir, cvac::ServiceManager *serviceMan,
72  const CallbackHandlerPrx & callback,
73  GetImageSizeFunction sfunc, int skipFrames,
74  std::vector<RectangleLabels> *result, bool square);
89  std::vector<RectangleLabels> *result, bool square,
90  std::string cvacDataDir);
91 
95  void cleanupRectangleLabels(std::vector<RectangleLabels> *rects);
96 
97 }
Definition: ServiceMan.h:151
Definition: processLabels.h:58
Definition: RunSetIterator.h:60
int processLabelArtifactsToRects(cvac::RunSetWrapper &wrapper, cvac::RunSetConstraint &constraint, std::string cvacDataDir, cvac::ServiceManager *serviceMan, const CallbackHandlerPrx &callback, GetImageSizeFunction sfunc, int skipFrames, std::vector< RectangleLabels > *result, bool square)
Definition: processLabels.cpp:152
std::vector< cvac::BBoxPtr > rects
Definition: processLabels.h:60
sequence< Labelable > LabelableList
Definition: Data.ice:21
bool(* GetImageSizeFunction)(std::string filename, int &width, int &height)
Definition: processLabels.h:68
void cleanupRectangleLabels(std::vector< RectangleLabels > *rects)
Definition: processLabels.cpp:278
std::string filename
Definition: processLabels.h:59
Definition: RunSetWrapper.h:60