Hi I am working with Opencv and it has a function cvGetCaptureProperty which returns a double. There is one case where I need to convert the double into char* and the sample code is provided below. The problem is that, the conversion does not return any value.
double f = cvGetCaptureProperty(capture, CV_CAP_PROP_FOURCC);
char* fourcc = (char*) (&f);
cout<<"\nf_double: "<<f<<"\nfourcc: "<<fourcc<<"\n";
Output: f has a value but fourcc has no value.
Any help will be appreciated. Thanks.