45 int Process(
ImgBuffer& out,
const unsigned char* in,
int width,
int height,
int bitDepth);
46 int Process(
ImgBuffer& out,
const unsigned short* in,
int width,
int height,
int bitDepth);
48 const std::vector<std::string>
GetOrders()
const {
return orders;}
49 const std::vector<std::string>
GetAlgorithms()
const {
return algorithms;}
56 int ProcessT(
ImgBuffer& out,
const T* in,
int width,
int height,
int bitDepth);
58 void ReplicateDecode(
const T* input,
int* out,
int width,
int height,
int bitDepth,
int rowOrder);
60 void SmoothDecode(
const T* input,
int* output,
int width,
int height,
int bitDepth,
int rowOrder);
62 int Convert(
const T* input,
int* output,
int width,
int height,
int bitDepth,
int rowOrder,
int algorithm);
63 unsigned short GetPixel(
const unsigned short* v,
int x,
int y,
int width,
int height);
64 void SetPixel(std::vector<unsigned short>& v,
unsigned short val,
int x,
int y,
int width,
int height);
65 unsigned short GetPixel(
const unsigned char* v,
int x,
int y,
int width,
int height);
67 std::vector<unsigned short> r;
68 std::vector<unsigned short> g;
69 std::vector<unsigned short> b;
71 std::vector<std::string> orders;
72 std::vector<std::string> algorithms;
Utility class to build a color image from a Bayer grayscale image.
Definition Debayer.h:39
const std::vector< std::string > GetOrders() const
Definition Debayer.h:48
const std::vector< std::string > GetAlgorithms() const
Definition Debayer.h:49
~Debayer()
Definition Debayer.cpp:54
void SetOrderIndex(int idx)
Definition Debayer.h:51
void SetAlgorithmIndex(int idx)
Definition Debayer.h:52
int Process(ImgBuffer &out, const ImgBuffer &in, int bitDepth)
Definition Debayer.cpp:58
Debayer()
Definition Debayer.cpp:37
Definition ImgBuffer.h:28