Changeset 64 in pacpussensors for trunk/PtGreyCameras/Flea3Grabber.cpp
- Timestamp:
- Sep 4, 2014, 11:19:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PtGreyCameras/Flea3Grabber.cpp
r56 r64 43 43 this->nbrCamera_ = 1; 44 44 this->masterCamera_ = 0; 45 this->img2send_ = 0; 45 46 } 46 47 … … 951 952 //++imageCount; 952 953 } 953 954 // Has to change 955 this->img_sending_->write((void*)correctedImg[0].data, settings_[0].mMaxImageOutputSize); 956 } 954 955 switch (img2send_) 956 { 957 case 0: 958 this->img_sending_->write((void*)convertedImage[0].GetData(), settings_[0].mMaxImageOutputSize); 959 break; 960 case 1: 961 this->img_sending_->write((void*)correctedImg[0].data, settings_[0].mMaxImageOutputSize); 962 break; 963 case 2: 964 this->img_sending_->write((void*)convertedImage[1].GetData(), settings_[0].mMaxImageOutputSize); 965 break; 966 case 3: 967 this->img_sending_->write((void*)correctedImg[1].data, settings_[0].mMaxImageOutputSize); 968 break; 969 default: 970 // Should not happen 971 break; 972 } 973 } 957 974 958 975 for (int i = 0; i < this->nbrCamera_; i++) … … 989 1006 } 990 1007 } 1008 1009 1010 //////////////////////////////////////////////////////////////////////////////// 1011 /// Slot to change the image 1012 //////////////////////////////////////////////////////////////////////////////// 1013 void Flea3Grabber::changeImage() 1014 { 1015 img2send_ = ++img2send_ & 0x03; 1016 }
Note:
See TracChangeset
for help on using the changeset viewer.