22 lines
553 B
C++
22 lines
553 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "frame/frame.h"
|
|
#include "utils/result.h"
|
|
|
|
namespace rk3588 {
|
|
|
|
class IImageProcessor {
|
|
public:
|
|
virtual ~IImageProcessor() = default;
|
|
|
|
virtual Status Resize(const Frame& src, Frame& dst) = 0;
|
|
virtual Status CvtColor(const Frame& src, Frame& dst, PixelFormat dst_format) = 0;
|
|
virtual Status Normalize(const Frame& src, std::vector<float>& out,
|
|
const std::vector<float>& mean,
|
|
const std::vector<float>& std) = 0;
|
|
};
|
|
|
|
} // namespace rk3588
|