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


Ignore:
Timestamp:
03/04/17 15:29:18 (7 years ago)
Author:
Sanahuja Guillaume
Message:

iadded isready to iodevice:
avoid problem of imu not ready in ardrone2

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

Legend:

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

    r124 r157  
    3737        Err("conversion not supported\n");
    3838    }
     39   
     40    SetIsReady(true);
    3941}
    4042
  • trunk/lib/FlairVisionFilter/src/HoughLines.cpp

    r148 r157  
    5656        if(imageType.GetFormat()!=cvimage::Type::Format::Gray) {
    5757            Err("input image is not gray\n");
     58            return;
    5859        }
    5960    } catch(std::bad_cast& bc) {
    6061        Err("io type mismatch\n");
     62        return;
    6163    }
     64   
     65    SetIsReady(true);
    6266}
    6367
  • trunk/lib/FlairVisionFilter/src/ImgThreshold.cpp

    r124 r157  
    3636        } else {
    3737            Err("input image is not gray\n");
     38            return;
    3839        }
    3940    } catch(std::bad_cast& bc) {
    4041        Err("io type mismatch\n");
     42        return;
    4143    }
     44    SetIsReady(true);
    4245}
    4346
  • trunk/lib/FlairVisionFilter/src/OpticalFlow.cpp

    r144 r157  
    4848        pyr=NULL;
    4949        pyr_old=NULL;
     50        return;
    5051    }
    5152
     
    6364    found_feature=(char *)cvAlloc(max_features->Value()*sizeof(char));
    6465    feature_error=(unsigned int *)cvAlloc(max_features->Value()*sizeof(unsigned int));
     66   
     67    SetIsReady(true);
    6568}
    6669
  • trunk/lib/FlairVisionFilter/src/OpticalFlowSpeed.cpp

    r148 r157  
    3434
    3535        AddDataToLog(output);
     36 
     37  SetIsReady(true);
    3638}
    3739
  • trunk/lib/FlairVisionFilter/src/Sobel.cpp

    r124 r157  
    3838        } else {
    3939            Err("input image is not gray\n");
     40            return;
    4041        }
    4142
    4243    } catch(std::bad_cast& bc) {
    4344        Err("io type mismatch\n");
     45        return;
    4446    }
     47    SetIsReady(true);
    4548}
    4649
Note: See TracChangeset for help on using the changeset viewer.