Changeset 330 in flair-src for trunk/lib/FlairVisionFilter/src
- Timestamp:
- Sep 25, 2019, 3:29:26 PM (5 years ago)
- Location:
- trunk/lib/FlairVisionFilter/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairVisionFilter/src/CvtColor.cpp
r157 r330 57 57 58 58 void CvtColor::UpdateFrom(const io_data *data) { 59 IplImage *img=((cvimage*)data)->img;59 cvimage *img=(cvimage*)data; 60 60 61 61 data->GetMutex(); … … 64 64 switch(conversion) { 65 65 case Conversion_t::ToGray: 66 switch( ((cvimage*)data)->GetDataType().GetFormat()) {66 switch(img->GetDataType().GetFormat()) { 67 67 case cvimage::Type::Format::YUYV: 68 68 //dspCvtColor(img,output->img,DSP_YUYV2GRAY); -
trunk/lib/FlairVisionFilter/src/ImgThreshold.cpp
r157 r330 53 53 54 54 void ImgThreshold::UpdateFrom(const io_data *data) { 55 cvimage *cvImage=(cvimage*)data;55 /* cvimage *cvImage=(cvimage*)data; 56 56 IplImage *gimg=cvImage->img; 57 /* 57 58 58 data->GetMutex(); 59 59 output->GetMutex(); -
trunk/lib/FlairVisionFilter/src/OpticalFlow.cpp
r187 r330 79 79 80 80 void OpticalFlow::UpdateFrom(const io_data *data) 81 { 81 {/* 82 82 IplImage *gimg=((cvimage*)data)->img; 83 83 IplImage *gimg_old=((cvimage*)data->Prev(1))->img; … … 100 100 output->Resize(max_features->Value()); 101 101 } 102 /* 102 103 103 if(is_init==false) 104 104 { … … 125 125 data->Prev(1)->ReleaseMutex(); 126 126 data->ReleaseMutex(); 127 */ 127 128 128 //apply rotation 129 129 for(i=0;i<count;i++) { … … 160 160 //rotation 161 161 swap(pyr,pyr_old); 162 162 */ 163 163 output->SetDataTime(data->DataTime()); 164 164 ProcessUpdate(output); -
trunk/lib/FlairVisionFilter/src/Sobel.cpp
r157 r330 55 55 } 56 56 57 void Sobel::UpdateFrom(const io_data *data) { 57 void Sobel::UpdateFrom(const io_data *data) {/* 58 58 cvimage *cvImage=(cvimage*)data; 59 59 IplImage *gimg=cvImage->img; 60 /* 60 61 61 data->GetMutex(); 62 62 output->GetMutex();
Note:
See TracChangeset
for help on using the changeset viewer.