本文整理汇总了C++中vpImage::init方法的典型用法代码示例。如果您正苦于以下问题:C++ vpImage::init方法的具体用法?C++ vpImage::init怎么用?C++ vpImage::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vpImage
的用法示例。
在下文中一共展示了vpImage::init方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VScam
VScam()
: it_(nh_)
{
// Subscrive to input video feed and publish output video feed
image_sub_ = it_.subscribe("vrep/Vision_sensorIT", 1, &VScam::imageCb, this);
lastHeaderSeq_ = 0;
I.init(480,640);
display.init(I, 0, 0, "Camera view");
//image_pub_ = it_.advertise("/image_converter/output_video", 1);
}
示例2: initCamera
/*!
Initialization of the grabber using a color image.
\param I : color image.
*/
void
vp1394CMUGrabber::open(vpImage<vpRGBa> &I)
{
initCamera();
I.init(this->height,this->width);
// start acquisition
if (camera->StartImageAcquisition() != CAM_SUCCESS)
{
close();
vpERROR_TRACE("vp1394CMUGrabber error: Can't start image acquisition from IEEE 1394 camera number %i",index);
throw (vpFrameGrabberException(vpFrameGrabberException::otherError,
"Error while strating image acquisition") );
}
}
示例3: main
int main(int argc, char ** argv)
{
ros::init(argc, argv, "edgetracker");
ros::NodeHandle n;
I.init(480, 640);
ros::Subscriber sub = n.subscribe("image_raw", 100, imageCallback);
display = new vpDisplayX(I, 0, 0, "Image");
vpDisplay::display(I);
vpDisplay::flush(I);
// initialize moving edges
me.setRange(25);
me.setThreshold(15000);
me.setSampleStep(10);
xLine1.setMe(&me);
xLine1.setDisplay(vpMeSite::RANGE_RESULT);
ros::spin();
}