How to Declare byte* ( byte array ) in c++ and how to define as a parameter in function definition?
when I declare like below
Function Declaration:
int Analysis(byte* InputImage,int nHeight,int nWidth);
Getting error : "byte" undefined
There is no type byte in C++. You should use typedef before. Something like
typedef std::uint8_t byte;
in C++11, or
typedef unsigned char byte;
in C++03.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With