int decNum = 123456;
char hexNum[16];
// decimal number to hexadecimal number
sprintf_s(hexNum, 16, "%X", decNum);
printf("%d -> %s \n", decNum, hexNum);
// hexadecimal number to decimal number
sprintf_s(hexNum, 16, "FF");
decNum = (int)strtol(hexNum, nullptr, 16);
printf(" %s -> %d \n", hexNum, decNum);
Subscribe to:
Post Comments (Atom)
-
Linear Intersection for a Stereo Pair There are two images. Object point vs. image point, in the first image: $$ \begin{pmatrix} X \\...
-
Reduced normatrix for photogrammetric bundle adjustment based on the collinearity equations Note: There are $m_1$ photos and $m_2$ obje...
-
-. A-priori reference variable has no unit (unitless). It is typically 1.0 or can be a different value for scaling. -. Weight is determ...
No comments:
Post a Comment