#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <chrono>
#include <arm_neon.h>
#include "opencv2/imgproc/imgproc.hpp"
//extern "C" void fanicCvtBGR2GrayNEON(void *pDst, void *pSrc, unsigned int size);
extern "C" void sfNEONbad1(unsigned short * pDst, short * pSrc, short coeff, short intercept, unsigned int count);//single register
extern "C" void sfNEONbad2(unsigned short * pDst, short * pSrc, short coeff, short intercept, unsigned int count);//serveral registers
extern "C" void sfNEONbad3(unsigned short * pDst, short * pSrc, short coeff, short intercept, unsigned int count);//preload
class q_timer {
public:
void start()
{
m_start = std::chrono::steady_clock::now();
}
double stop()
{
std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();
return std::chrono::duration_cast<std::chrono::duration<double> >(end - m_start).count();
}
void time_display(const char *disp = "", int nr_frame = 1)
{
printf("Running time (%s) is: %5.5f Seconds.\n", disp, stop() / nr_frame);
}
void fps_display(const char *disp = "", int nr_frame = 1)
{
printf("Running time (%s) is: %5.5f frame per
#include "opencv2/highgui/highgui.hpp"
#include <chrono>
#include <arm_neon.h>
#include "opencv2/imgproc/imgproc.hpp"
//extern "C" void fanicCvtBGR2GrayNEON(void *pDst, void *pSrc, unsigned int size);
extern "C" void sfNEONbad1(unsigned short * pDst, short * pSrc, short coeff, short intercept, unsigned int count);//single register
extern "C" void sfNEONbad2(unsigned short * pDst, short * pSrc, short coeff, short intercept, unsigned int count);//serveral registers
extern "C" void sfNEONbad3(unsigned short * pDst, short * pSrc, short coeff, short intercept, unsigned int count);//preload
class q_timer {
public:
void start()
{
m_start = std::chrono::steady_clock::now();
}
double stop()
{
std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();
return std::chrono::duration_cast<std::chrono::duration<double> >(end - m_start).count();
}
void time_display(const char *disp = "", int nr_frame = 1)
{
printf("Running time (%s) is: %5.5f Seconds.\n", disp, stop() / nr_frame);
}
void fps_display(const char *disp = "", int nr_frame = 1)
{
printf("Running time (%s) is: %5.5f frame per