派生自 Algorithm/baseDetector

Scheaven
2021-06-03 168af40fe9a3cc81c6ee16b3e81f154780c36bdb
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
//
// Created by Scheaven on 2020/11/2.
//
 
#ifndef TYPE_UTILS_H
#define TYPE_UTILS_H
 
#include <fstream>
#include <string>
#include <string.h>
#include <iomanip>
#include <stdlib.h>
#include <vector>
#include <iostream>
 
//bytes流转化文件
struct ReID_Utils{
public:
//        template<typename T>
//        unsigned char * T2bytes(T u);
//        template<typename T>
//        T bytes2T(unsigned char *bytes);
    unsigned char * T2bytes(float u);
    float bytes2T(unsigned char *bytes);
};
 
char* get_subStr(std::string line, const char* split, int which);
 
#endif //TYPE_UTILS_H