128 inimg.
require(
"input", w,
h, V4L2_PIX_FMT_YUYV);
155 system(
"touch /tmp/jevois-burntest");
158 system(
"( while [ -f /tmp/jevois-burntest ]; do whetstone 2000000000; done ) &");
159 system(
"( while [ -f /tmp/jevois-burntest ]; do whetstone 2000000000; done ) &");
162 system(
"( while [ -f /tmp/jevois-burntest ]; do dhrystone 2000000000; done ) &");
163 system(
"( while [ -f /tmp/jevois-burntest ]; do dhrystone 2000000000; done ) &");
168 cv::Mat gpuout(hh, ww, CV_8UC4);
176 cv::Mat neonresult(hh, ww, CV_8UC4);
177 ne10_size_t src_size { ww, hh }, kernel_size { 5, 5 };
182 ne10_img_boxfilter_rgba8888_neon(
itsRGBAimg.data, neonresult.data, src_size, ww * 4, ww * 4, kernel_size);
185 ne10_img_boxfilter_rgba8888_c(
itsRGBAimg.data, neonresult.data, src_size, ww * 4, ww * 4, kernel_size);
196 int const smfac = (1 << smlev);
197 int const roihw = (smfac * 3) / 2;
198 int const mapdrawfac = smfac / 4;
199 int const mapdw = (w >> smlev) * mapdrawfac;
200 int const mapdh = (
h >> smlev) * mapdrawfac;
203 outimg.require(
"output", w + (w & ~(smfac-1)),
h + mapdh, V4L2_PIX_FMT_YUYV);
209 unsigned int const dmx = (mx << smlev) + (smfac >> 2);
210 unsigned int const dmy = (my << smlev) + (smfac >> 2);
211 int rx = std::min(
int(w) - roihw, std::max(roihw,
int(dmx + 1 + smfac/4)));
212 int ry = std::min(
int(
h) - roihw, std::max(roihw,
int(dmy + 1 + smfac/4)));
218 itsKF->set(dmx, dmy, w,
h);
219 float kfxraw, kfyraw, kfximg, kfyimg;
220 itsKF->get(kfxraw, kfyraw, kfximg, kfyimg, inimg.
width, inimg.
height, 1.0F, 1.0F);
257 unsigned int const gw = outimg.width - dx, gh = outimg.height -
h;
261 unsigned int const gscale = int(sqrt((gw * gh) /
itsSaliency->gist_size));