Changeset 330 in flair-src for trunk/lib/FlairVisionFilter


Ignore:
Timestamp:
09/25/19 15:29:26 (3 years ago)
Author:
Sanahuja Guillaume
Message:

use less bandwidth in vprnlite

Location:
trunk/lib/FlairVisionFilter/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairVisionFilter/src/CvtColor.cpp

    r157 r330  
    5757
    5858void CvtColor::UpdateFrom(const io_data *data) {
    59     IplImage *img=((cvimage*)data)->img;
     59    cvimage *img=(cvimage*)data;
    6060
    6161    data->GetMutex();
     
    6464    switch(conversion) {
    6565    case Conversion_t::ToGray:
    66         switch(((cvimage*)data)->GetDataType().GetFormat()) {
     66        switch(img->GetDataType().GetFormat()) {
    6767        case cvimage::Type::Format::YUYV:
    6868            //dspCvtColor(img,output->img,DSP_YUYV2GRAY);
  • trunk/lib/FlairVisionFilter/src/ImgThreshold.cpp

    r157 r330  
    5353
    5454void ImgThreshold::UpdateFrom(const io_data *data) {
    55     cvimage *cvImage=(cvimage*)data;
     55 /*   cvimage *cvImage=(cvimage*)data;
    5656    IplImage *gimg=cvImage->img;
    57 /*
     57
    5858    data->GetMutex();
    5959    output->GetMutex();
  • trunk/lib/FlairVisionFilter/src/OpticalFlow.cpp

    r187 r330  
    7979
    8080void OpticalFlow::UpdateFrom(const io_data *data)
    81 {
     81{/*
    8282    IplImage *gimg=((cvimage*)data)->img;
    8383    IplImage *gimg_old=((cvimage*)data->Prev(1))->img;
     
    100100        output->Resize(max_features->Value());
    101101    }
    102 /*
     102
    103103    if(is_init==false)
    104104    {
     
    125125    data->Prev(1)->ReleaseMutex();
    126126    data->ReleaseMutex();
    127 */
     127
    128128    //apply rotation
    129129    for(i=0;i<count;i++) {
     
    160160    //rotation
    161161    swap(pyr,pyr_old);
    162 
     162*/
    163163    output->SetDataTime(data->DataTime());
    164164    ProcessUpdate(output);
  • trunk/lib/FlairVisionFilter/src/Sobel.cpp

    r157 r330  
    5555}
    5656
    57 void Sobel::UpdateFrom(const io_data *data) {
     57void Sobel::UpdateFrom(const io_data *data) {/*
    5858    cvimage *cvImage=(cvimage*)data;
    5959    IplImage *gimg=cvImage->img;
    60 /*
     60
    6161    data->GetMutex();
    6262    output->GetMutex();
Note: See TracChangeset for help on using the changeset viewer.