JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
24 #include <opencv2/core/core.hpp>
33 #include <condition_variable>
96 public jevois::Parameter<saliency::cweight, saliency::iweight, saliency::oweight, saliency::fweight,
97 saliency::mweight, saliency::centermin, saliency::deltamin, saliency::smscale,
98 saliency::mthresh, saliency::fthresh, saliency::msflick>
102 Saliency(std::string
const & instance);
111 void process(cv::Mat
const & input,
bool do_gist);
172 void env_mt_motion_channel_input(
struct env_motion_channel* chan,
const char* tagName,
177 void processStart(
struct env_dims const & dims,
bool do_gist);
183 mutable std::mutex itsRawImageMtx;
186 mutable std::condition_variable itsRawImageCond;
187 mutable bool itsInputDone;
197 unsigned int bitshift);
201 void drawGist(
jevois::RawImage & img,
unsigned char const * gist,
size_t gistsize,
unsigned int xoff,
unsigned int yoff,
202 unsigned int width,
unsigned int scale);
void drawGist(jevois::RawImage &img, unsigned char const *gist, size_t gistsize, unsigned int xoff, unsigned int yoff, unsigned int width, unsigned int scale)
Draw a gist vector in a YUYV image as a rectangle of width width*scale and correct height.
void getSaliencyMax(int &x, int &y, intg32 &value)
Get location and value of max point in the saliency map.
void() env_chan_status_func(void *userdata, const char *tagName, const struct env_image *img)
JEVOIS_DECLARE_PARAMETER(thresh1, double, "First threshold for hysteresis", 50.0, ParamCateg)
void process(jevois::RawImage const &input, bool do_gist)
Process a raw YUYV image. Results are stored in the Saliency class.
void waitUntilDoneWithInput() const
Wait until process() is done using the input image.
Simple wrapper class around Rob Peter's C-optimized, fixed-point-math visual saliency code.
void inhibitionOfReturn(int const x, int const y, float const sigma)
Inhibit the saliency map around a point, sigma is in pixels at the sacle of the map.
A composite channel containing a set of direction channels.
This class implements a set of images, often used as a dyadic pyramid.
struct env_image salmap
The saliency map.
void drawMap(jevois::RawImage &img, env_image const *fmap, unsigned int xoff, unsigned int yoff, unsigned int scale)
Draw a saliency map or feature map in a YUYV image.
Saliency(std::string const &instance)
Constructor.
ENV_INTG32_TYPE intg32
32-bit signed integer
virtual ~Saliency()
Destructor.
A simple struct to hold a pair of width/height dimensions.
unsigned char * gist
Gist vector has 1152 entries, 72 feature maps * 16 values/map.