mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge branch 4.x
This commit is contained in:
@@ -98,7 +98,7 @@ static bool updateIdx(cv::Mat* mat, std::vector<int>& indices, size_t inc) {
|
||||
- (instancetype)initWithSize:(Size2i*)size type:(int)type {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_nativePtr = new cv::Mat(size.width, size.height, type);
|
||||
_nativePtr = new cv::Mat(size.height, size.width, type);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ static bool updateIdx(cv::Mat* mat, std::vector<int>& indices, size_t inc) {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
cv::Scalar scalerTemp(scalar.val[0].doubleValue, scalar.val[1].doubleValue, scalar.val[2].doubleValue, scalar.val[3].doubleValue);
|
||||
_nativePtr = new cv::Mat(size.width, size.height, type, scalerTemp);
|
||||
_nativePtr = new cv::Mat(size.height, size.width, type, scalerTemp);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user