fixed defects from Xcode
This commit is contained in:
@@ -294,7 +294,7 @@ void ERFilterNM::er_tree_extract( InputArray image )
|
||||
push_new_component = false;
|
||||
|
||||
// explore the (remaining) edges to the neighbors to the current pixel
|
||||
for (current_edge = current_edge; current_edge < 4; current_edge++)
|
||||
for ( ; current_edge < 4; current_edge++)
|
||||
{
|
||||
|
||||
int neighbour_pixel = current_pixel;
|
||||
@@ -1949,7 +1949,6 @@ private:
|
||||
double (dissimilarity::*distfn) (const int_fast32_t, const int_fast32_t) const;
|
||||
|
||||
auto_array_ptr<double> precomputed;
|
||||
double * precomputed2;
|
||||
|
||||
double * V;
|
||||
const double * V_data;
|
||||
|
||||
@@ -574,7 +574,7 @@ public:
|
||||
Size winStride = Size(), Size padding = Size(),
|
||||
const vector<Point>& locations = vector<Point>()) const;
|
||||
|
||||
virtual void compute(const Mat& img, vector<float>& descriptors,
|
||||
virtual void compute(InputArray img, vector<float>& descriptors,
|
||||
Size winStride = Size(), Size padding = Size(),
|
||||
const vector<Point>& locations = vector<Point>()) const;
|
||||
|
||||
@@ -1107,9 +1107,11 @@ void HOGDescriptorTester::detect(const Mat& img, vector<Point>& hits, double hit
|
||||
detect(img, hits, weightsV, hitThreshold, winStride, padding, locations);
|
||||
}
|
||||
|
||||
void HOGDescriptorTester::compute(const Mat& img, vector<float>& descriptors,
|
||||
void HOGDescriptorTester::compute(InputArray _img, vector<float>& descriptors,
|
||||
Size winStride, Size padding, const vector<Point>& locations) const
|
||||
{
|
||||
Mat img = _img.getMat();
|
||||
|
||||
if( winStride == Size() )
|
||||
winStride = cellSize;
|
||||
Size cacheStride(gcd(winStride.width, blockStride.width),
|
||||
|
||||
Reference in New Issue
Block a user