DeepLabV3.h 605 Bytes
Newer Older
shangxl's avatar
shangxl committed
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
#ifndef __DEEPLABV3_H__
#define __DEEPLABV3_H__

#include <migraphx/program.hpp>
#include <CommonDefinition.h>



namespace migraphxSamples
{

 class DeepLabV3{
    public:
    DeepLabV3();

    ~DeepLabV3();

    ErrorCode Initialize(InitializationParameterOfSegmentation initParamOfSegmentationUnet);

    ErrorCode Segmentation(const cv::Mat& srcImage, cv::Mat& maskImage);

    private:
    cv::FileStorage configurationFile;

    migraphx::program net;
    cv::Size inputSize;
    std::string inputName;
    migraphx::shape inputShape;
    float scale;
 };   

} // namespace migraphxSamples


#endif