-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathOpenCVUtils.hpp
More file actions
36 lines (26 loc) · 803 Bytes
/
Copy pathOpenCVUtils.hpp
File metadata and controls
36 lines (26 loc) · 803 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
#ifndef __OPENCVUTILS_H_
#define __OPENCVUTILS_H_
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include "common.hpp"
#ifndef __XCODE__
#include "cv.h"
#include "highgui.h"
#else
#include <OpenCV/OpenCV.h>
#endif
// matPrint(prefixString, M)
void matPrint(std::string, const CvArr *);
double matMedian(const CvArr *M);
void matRotate(const CvArr *src, CvArr *dst, double);
void matCopyStuffed(const CvArr *src, CvArr *dst);
void matNormalize(CvArr *, CvArr *, double, double);
// showImage(titleString, M)
void showImage(std::string, const CvArr *);
// showImageSc(titleString, M), like imagesc in MATLAB
void showImageSc(std::string, const CvArr *, int width, int height);
IplImage *readImage(const char *fileName, int useColorImage);
#endif