<commit_before>#include "OpticalFlow.h"
#include "EagleLib/nodes/VideoProc/Tracking.hpp"
#include <EagleLib/rcc/external_includes/cv_cudaarithm.hpp>
#include <EagleLib/rcc/external_includes/cv_cudaimgproc.hpp>
#include <EagleLib/rcc/external_includes/cv_cudawarping.hpp>


using namespace EagleLib;
using namespace EagleLib::Nodes;


#if __linux
RUNTIME_COMPILER_LINKLIBRARY("-lopencv_core -lopencv_cudaoptflow")
#endif


MO_REGISTER_CLASS(SparsePyrLKOpticalFlow)
MO_REGISTER_CLASS(DensePyrLKOpticalFlow)

IPyrOpticalFlow::IPyrOpticalFlow()
{
    greyImg.resize(1);
}

long long IPyrOpticalFlow::PrepPyramid()
{
    if (input->GetChannels() != 1)
    {
        cv::cuda::cvtColor(input->GetGpuMat(Stream()), greyImg, cv::COLOR_BGR2GRAY, 1, Stream());
    }
    else
    {<commit_msg>Minor bug fix.<commit_after>#include "OpticalFlow.h"
#include "EagleLib/nodes/VideoProc/Tracking.hpp"
#include <EagleLib/rcc/external_includes/cv_cudaarithm.hpp>
#include <EagleLib/rcc/external_includes/cv_cudaimgproc.hpp>
#include <EagleLib/rcc/external_includes/cv_cudawarping.hpp>


using namespace EagleLib;
using namespace EagleLib::Nodes;


#if __linux
RUNTIME_COMPILER_LINKLIBRARY("-lopencv_core -lopencv_cudaoptflow")
#endif


MO_REGISTER_CLASS(SparsePyrLKOpticalFlow)
MO_REGISTER_CLASS(DensePyrLKOpticalFlow)

IPyrOpticalFlow::IPyrOpticalFlow()
{
    greyImg.resize(1);
}

long long IPyrOpticalFlow::PrepPyramid()
{
    if (input->GetChannels() != 1)
    {
        cv::cuda::cvtColor(input->GetGpuMat(Stream()), greyImg[0], cv::COLOR_BGR2GRAY, 1, Stream());
    }
    else
    {
{'fraction_non_alphanumeric': 0.1267515923566879, 'fraction_numerical': 0.005732484076433121, 'mean_word_length': 6.341121495327103, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1202832', 'n_tokens_mistral': 634, 'n_tokens_neox': 613, 'n_words': 76}