#include "stdint.h"
#include "common.h"
typedef int64_t int64;
#include <iostream>
#include "opencv2/opencv_modules.hpp"
#include <string>
#include "common_opencv.h"
using namespace cv;
#include "types.h"
extern "C" {
#include "return_types.h"
void* cv_new_VectorOfRange() {
return new std::vector<cv::Range>();
}
void cv_delete_VectorOfRange(void* ptr) {
delete reinterpret_cast<std::vector<cv::Range>*>(ptr);
}
void cv_push_VectorOfRange(void* ptr, void* ptr2) {
cv::Range* val = reinterpret_cast<cv::Range*>(ptr2);
reinterpret_cast<std::vector<cv::Range>*>(ptr)->push_back(*val);
}
cv::Range* cv_VectorOfRange_front_item(void* ptr) {
cv::Range val = reinterpret_cast<std::vector<cv::Range>*>(ptr)->front();
return new cv::Range(val);
}
cv::Range* cv_VectorOfRange_back_item(void* ptr) {
cv::Range val = reinterpret_cast<std::vector<cv::Range>*>(ptr)->back();
return new cv::Range(val);
}
int cv_VectorOfRange_len(void* ptr) {
return reinterpret_cast<std::vector<cv::Range>*>(ptr)->size();
}
cv::Range* cv_VectorOfRange_get(void* ptr, int index) {
cv::Range val = reinterpret_cast<std::vector<cv::Range>*>(ptr)->data()[index];
return new cv::Range(val);
}
void** cv_VectorOfRange_data(void* ptr) {
return reinterpret_cast<void**>(reinterpret_cast<std::vector<cv::Range>*>(ptr)->data());
}
}