JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
3 #include <opencv2/core/core.hpp>
4 #include <opencv2/imgproc/imgproc.hpp>
16 public jevois::Parameter<thresh1, thresh2, aperture, l2grad>
Data collection mode RAW means that the latest available raw data is returned each time get() is called
Exception-safe wrapper around a raw image to be sent over USB.
JEVOIS_REGISTER_MODULE(TutorialEdgeDetection)
A raw image as coming from a V4L2 Camera and/or being sent out to a USB Gadget.
A category to which multiple ParameterDef definitions can belong.
cv::Mat convertToCvGray(RawImage const &src)
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV gray byte.
void require(char const *info, unsigned int w, unsigned int h, unsigned int f) const
Require a particular image size and format, issue a fatal error message and throw if no match.
unsigned int width
Image width in pixels.
JEVOIS_DECLARE_PARAMETER(help, bool, "Print this help message", false, ParamCateg)
Parameter.
static const ParameterCategory ParamCateg("General Options")
Parameter category.
Virtual base class for a vision processing module.
void onParamChange(l2grad const ¶m, bool const &newval) override
virtual ~TutorialEdgeDetection()
unsigned int height
Image height in pixels.
virtual void process(jevois::InputFrame &&inframe, jevois::OutputFrame &&outframe) override
Processing function, version that receives a frame from camera and sends a frame out over USB.
std::string to_string(T const &val)
Convert from type to string.
cv::Mat cvImage(RawImage const &src)
Create an OpenCV image from the existing RawImage data, sharing the pixel memory rather than copying ...
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(loglevel, LogLevel, "Set the minimum log level to display", LogLevel::info, LogLevel_Values, ParamCateg)
Parameter.
#define LINFO(msg)
Convenience macro for users to print out console or syslog messages, INFO level.