static int g_closedDepthPoint[2];
-static void printUsage(char *arg0)
+static void printUsage(const char *arg0)
{
- char *filename = arg0;
+ const char *filename = arg0;
while (*filename)
filename++;
- while ((arg0 <= filename) && ('\\' != *filename) && ('//' != *filename))
+ while ((arg0 <= filename) && ('\\' != *filename) && ('/' != *filename))
filename--;
filename++;
exit(-1);
}
}
- if (g_closedDepthPoint && (-1 == g_depthStreamProfileIdx))
+ if (g_showClosedPoint && (-1 == g_depthStreamProfileIdx))
{
cerr << "For --show-closed depth profile has be selected" << endl;
exit(-1);
static void imshowImage(const char *winname, Mat &image, VideoCapture &capture)
{
- if (g_closedDepthPoint)
+ if (g_showClosedPoint)
{
Mat uvMap;
if (capture.retrieve(uvMap, CV_CAP_INTELPERC_UVDEPTH_MAP))
imshow(winname, image);
}
-int _tmain(int argc, char* argv[])
+int main(int argc, char* argv[])
{
parseCMDLine(argc, argv);
if ((-1 != g_depthStreamProfileIdx) && (capture.retrieve(depthImage, CV_CAP_INTELPERC_DEPTH_MAP)))
{
- if (g_closedDepthPoint)
+ if (g_showClosedPoint)
{
double minVal = 0.0; double maxVal = 0.0;
minMaxIdx(depthImage, &minVal, &maxVal, g_closedDepthPoint);