void cv::Mesh3D::buildOctree() { if (octree.getNodes().empty()) octree.buildTree(vtx); }
void cv::Mesh3D::clearOctree(){ octree = Octree(); }
-float cv::Mesh3D::estimateResolution(float tryRatio)
+float cv::Mesh3D::estimateResolution(float /*tryRatio*/)
{
#if 0
const int neighbors = 3;
ctype = std::max(std::max(CV_MAT_DEPTH(ctype >= 0 ? ctype : type), _mean.depth()), CV_32F);
- Mat _data(src.size(), size.area(), type);
+ Mat _data(static_cast<int>(src.size()), size.area(), type);
int i = 0;
for(vector<cv::Mat>::iterator each = src.begin(); each != src.end(); each++, i++ )
std::vector<cv::Mat> srcVec;
for(size_t i = 0; i < vector_size; i++)
{
- srcVec.push_back(src.row(i).reshape(0,col_problem_size));
+ srcVec.push_back(src.row(static_cast<int>(i)).reshape(0,col_problem_size));
}
cv::Mat actual;
std::vector<cv::Mat> srcVec;
for(size_t i = 0; i < vector_size; i++)
{
- srcVec.push_back(src.row(i).reshape(0,col_problem_size));
+ srcVec.push_back(src.row(static_cast<int>(i)).reshape(0,col_problem_size));
}
cv::Mat actual;
#include <zlib.h>
#include "grfmt_png.hpp"
+#if defined _MSC_VER && _MSC_VER >= 1200
+ // disable warnings related to _setjmp
+ #pragma warning( disable: 4611 )
+#endif
+
namespace cv
{
int total = 0;
for( ; sit != sizes.end(); ++sit )
total += *sit;
- assert( _means.rows == (int)sizes.size() && covs.size() == sizes.size() );
- assert( !data.empty() && data.rows == total );
- assert( data.type() == dataType );
+ CV_Assert( _means.rows == (int)sizes.size() && covs.size() == sizes.size() );
+ CV_Assert( !data.empty() && data.rows == total );
+ CV_Assert( data.type() == dataType );
labels.create( data.rows, 1, labelType );
{
for( int y = stepY / 2; y < height; y += stepY )
{
- Point2f pt(x,y);
+ Point2f pt(static_cast<float>(x), static_cast<float>(y));
points.push_back(pt);
}
}
template <typename T> inline T& at(int index, std::vector<T> &items)
{
- return at(index, &items[0], items.size());
+ return at(index, &items[0], static_cast<int>(items.size()));
}
template <typename T> inline const T& at(int index, const std::vector<T> &items)
{
- return items[cv::borderInterpolate(index, items.size(), cv::BORDER_WRAP)];
+ return items[cv::borderInterpolate(index, static_cast<int>(items.size()), cv::BORDER_WRAP)];
}
#endif