mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
-Cleanup of white space after last commit
This commit is contained in:
parent
ef39f323c7
commit
b5228ae209
@ -295,7 +295,7 @@ NAN_METHOD(Contour::Serialize) {
|
||||
Local<Array> contours_data = Nan::New<Array>(self->contours.size());
|
||||
|
||||
for (std::vector<int>::size_type i = 0; i != self->contours.size(); i++) {
|
||||
std::vector<cv::Point> points = self->contours[i];
|
||||
std::vector<cv::Point> points = self->contours[i];
|
||||
Local<Array> contour_data = Nan::New<Array>(points.size());
|
||||
|
||||
for (std::vector<int>::size_type j = 0; j != points.size(); j++) {
|
||||
@ -341,7 +341,7 @@ NAN_METHOD(Contour::Deserialize) {
|
||||
|
||||
for (int i = 0; i < contours_length; i++) {
|
||||
Local<Array> contour_data = Local<Array>::Cast(contours_data->Get(i));
|
||||
std::vector<cv::Point> points;
|
||||
std::vector<cv::Point> points;
|
||||
|
||||
int contour_length = contour_data->Length();
|
||||
for (int j = 0; j < contour_length; j++) {
|
||||
|
||||
@ -669,7 +669,7 @@ NAN_METHOD(Matrix::ToBuffer) {
|
||||
class AsyncToBufferWorker: public Nan::AsyncWorker {
|
||||
public:
|
||||
AsyncToBufferWorker(Nan::Callback *callback, Matrix* matrix, std::string ext,
|
||||
std::vector<int> params) :
|
||||
std::vector<int> params) :
|
||||
Nan::AsyncWorker(callback),
|
||||
matrix(matrix),
|
||||
ext(ext),
|
||||
@ -2203,13 +2203,13 @@ NAN_METHOD(Matrix::TemplateMatches) {
|
||||
int max_x = maxSize.width - 1;
|
||||
int max_y = maxSize.height - 1;
|
||||
cv::Point top_left = cv::Point(std::max(0, pt.x - min_x_distance),
|
||||
std::max(0, pt.y - min_y_distance));
|
||||
std::max(0, pt.y - min_y_distance));
|
||||
cv::Point top_right = cv::Point(std::min(max_x, pt.x + min_x_distance),
|
||||
std::max(0, pt.y - min_y_distance));
|
||||
std::max(0, pt.y - min_y_distance));
|
||||
cv::Point bottom_left = cv::Point(std::max(0, pt.x - min_x_distance),
|
||||
std::min(max_y, pt.y + min_y_distance));
|
||||
std::min(max_y, pt.y + min_y_distance));
|
||||
cv::Point bottom_right = cv::Point(std::min(max_x, pt.x + min_x_distance),
|
||||
std::min(max_y, pt.y + min_y_distance));
|
||||
std::min(max_y, pt.y + min_y_distance));
|
||||
if (hit_mask.at<double>(top_left.y, top_left.x) > 0)
|
||||
continue;
|
||||
if (hit_mask.at<double>(top_right.y, top_right.x) > 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user