-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathROIData.cpp
More file actions
49 lines (41 loc) · 807 Bytes
/
Copy pathROIData.cpp
File metadata and controls
49 lines (41 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// ROIData.cpp
// opencv
//
// Created by 심지훈 on 2020/01/23.
// Copyright © 2020 Shim. All rights reserved.
//
#include "ROIData.hpp"
template <typename T>
void ROIData<T>::setSrcPts(vector<T> &pts)
{
this->srcPts = pts;
}
template <typename T>
void ROIData<T>::setDestPts(vector<T> &pts)
{
this->destPts = pts;
}
template <typename T>
bool ROIData<T>::isEmpty(vector<T> &pts)
{
return pts.empty();
}
template <typename T>
vector<T> ROIData<T>::getSrcPts()
{
if(isEmpty(srcPts)){
cerr<<"Empty Point has returned\n";
return vector<T>();
}
return destPts;
}
template <typename T>
vector<T> ROIData<T>::getDestPts()
{
if(isEmpty(destPts)){
cerr<<"Empty Point has returned\n";
return vector<T>();
}
return destPts;
}