maxval = MAX(maxval, ival);
}
return i < len ? CV_64F :
- minval >= 0 && maxval <= UCHAR_MAX ? CV_8U :
- minval >= SCHAR_MIN && maxval <= SCHAR_MAX ? CV_8S :
- minval >= 0 && maxval <= USHRT_MAX ? CV_16U :
- minval >= SHRT_MIN && maxval <= SHRT_MAX ? CV_16S :
+ minval >= 0 && maxval <= (int)UCHAR_MAX ? CV_8U :
+ minval >= (int)SCHAR_MIN && maxval <= (int)SCHAR_MAX ? CV_8S :
+ minval >= 0 && maxval <= (int)USHRT_MAX ? CV_16U :
+ minval >= (int)SHRT_MIN && maxval <= (int)SHRT_MAX ? CV_16S :
CV_32S;
}
int main(int argc, char* argv[])
{
+#if ENABLE_LOG
int64 app_start_time = getTickCount();
+#endif
+
cv::setBreakOnError(true);
int retval = parseCmdArgs(argc, argv);
bool is_work_scale_set = false, is_seam_scale_set = false, is_compose_scale_set = false;
LOGLN("Finding features...");
+#if ENABLE_LOG
int64 t = getTickCount();
+#endif
Ptr<FeaturesFinder> finder;
if (features_type == "surf")
LOGLN("Finding features, time: " << ((getTickCount() - t) / getTickFrequency()) << " sec");
LOG("Pairwise matching");
+#if ENABLE_LOG
t = getTickCount();
+#endif
vector<MatchesInfo> pairwise_matches;
BestOf2NearestMatcher matcher(try_gpu, match_conf);
matcher(features, pairwise_matches);
}
LOGLN("Warping images (auxiliary)... ");
+#if ENABLE_LOG
t = getTickCount();
+#endif
vector<Point> corners(num_images);
vector<Mat> masks_warped(num_images);
masks.clear();
LOGLN("Compositing...");
+#if ENABLE_LOG
t = getTickCount();
+#endif
Mat img_warped, img_warped_s;
Mat dilated_mask, seam_mask, mask, mask_warped;