Mutual assignment of VC and Halcon data

Source: Internet
Author: User
// Htuple → Vc data type conversion htuple = 1234; int I = htuple [0]. I (); // I = 1234 long l = htuple [0]. L (); // L = 1234 long lnumber = htuple. num (); // lnumber = 1, data count double D = htuple [0]. D (); // d = 1234.0000 htuple = "1234"; cstring strbuffer = htuple [0]. S (); // strbuffer = "1234" // Vc → htuple data type conversion int II = 1234; double dd = 1234.1234; cstring strtemp = "Halcon"; htuple htuple2; htuple2 [0] = II; // htuple2 [0]. I () = 1234htuple2 [1] = dd; // htuple2 [1]. D () = 1234.1234htuple2 [2] = strtemp. getbuffer (); // htuple2 [2]. S () = "Halcon" I = htuple2 [0]. I (); // I = 1234d = htuple2 [1]. D (); // d = 1234.1234 strbuffer = htuple2 [2]. S (); // strbuffer = "Halcon" lnumber = htuple2.num (); // lnumber = 3, Data Count

In addition:
The Halcon path is similar to "D:/ADDR/a.jpg", which is separated.
Different from the "\" used by VC, the conversion is required.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.