fixed hundreds of warnings from MSVC 2010.
This commit is contained in:
@@ -376,7 +376,7 @@ void OrbFeaturesFinder::find(const Mat &image, ImageFeatures &features)
|
||||
} else if (image.type() == CV_8UC1) {
|
||||
gray_image=image;
|
||||
} else {
|
||||
CV_Assert(false);
|
||||
CV_Error(CV_StsUnsupportedFormat, "");
|
||||
}
|
||||
|
||||
if (grid_size.area() == 1)
|
||||
|
@@ -700,7 +700,7 @@ string matchesGraphAsString(vector<string> &pathes, vector<MatchesInfo> &pairwis
|
||||
|
||||
for (size_t i = 0; i < comps.size.size(); ++i)
|
||||
{
|
||||
if (comps.size[comps.findSetByElem(i)] == 1)
|
||||
if (comps.size[comps.findSetByElem((int)i)] == 1)
|
||||
{
|
||||
string name = pathes[i];
|
||||
size_t prefix_len = name.find_last_of("/\\");
|
||||
|
@@ -268,7 +268,7 @@ Stitcher::Status Stitcher::composePanorama(InputArray images, OutputArray pano)
|
||||
warper->warp(mask, K, cameras_[img_idx].R, INTER_NEAREST, BORDER_CONSTANT, mask_warped);
|
||||
|
||||
// Compensate exposure
|
||||
exposure_comp_->apply(img_idx, corners[img_idx], img_warped, mask_warped);
|
||||
exposure_comp_->apply((int)img_idx, corners[img_idx], img_warped, mask_warped);
|
||||
|
||||
img_warped.convertTo(img_warped_s, CV_16S);
|
||||
img_warped.release();
|
||||
@@ -374,7 +374,7 @@ Stitcher::Status Stitcher::matchImages()
|
||||
(*features_finder_)(img, features_[i]);
|
||||
else
|
||||
(*features_finder_)(img, features_[i], rois_[i]);
|
||||
features_[i].img_idx = i;
|
||||
features_[i].img_idx = (int)i;
|
||||
LOGLN("Features in image #" << i+1 << ": " << features_[i].keypoints.size());
|
||||
|
||||
resize(full_img, img, Size(), seam_scale_, seam_scale_);
|
||||
|
Reference in New Issue
Block a user