mirror of
https://github.com/hybridgroup/gocv
synced 2025-08-25 08:41:04 +08:00
Add func comments and update readme.
This commit is contained in:
@@ -133,7 +133,7 @@ Your pull requests will be greatly appreciated!
|
|||||||
- [ ] [checkChessboard](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [checkChessboard](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [composeRT](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [composeRT](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [computeCorrespondEpilines](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [computeCorrespondEpilines](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [convertPointsFromHomogeneous](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [X] [convertPointsFromHomogeneous](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [convertPointsHomogeneous](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [convertPointsHomogeneous](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [convertPointsToHomogeneous](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [convertPointsToHomogeneous](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [correctMatches](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [correctMatches](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
@@ -175,7 +175,7 @@ Your pull requests will be greatly appreciated!
|
|||||||
- [ ] [stereoCalibrate](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [stereoCalibrate](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [stereoRectify](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [stereoRectify](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [stereoRectifyUncalibrated](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [stereoRectifyUncalibrated](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [triangulatePoints](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [X] [triangulatePoints](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [validateDisparity](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [validateDisparity](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
|
|
||||||
- [ ] **Fisheye - WORK STARTED** The following functions still need implementation:
|
- [ ] **Fisheye - WORK STARTED** The following functions still need implementation:
|
||||||
|
11
calib3d.go
11
calib3d.go
@@ -258,10 +258,19 @@ func EstimateAffine2DWithParams(from Point2fVector, to Point2fVector, inliers Ma
|
|||||||
return newMat(C.EstimateAffine2DWithParams(from.p, to.p, inliers.p, C.int(method), C.double(ransacReprojThreshold), C.size_t(maxIters), C.double(confidence), C.size_t(refineIters)))
|
return newMat(C.EstimateAffine2DWithParams(from.p, to.p, inliers.p, C.int(method), C.double(ransacReprojThreshold), C.size_t(maxIters), C.double(confidence), C.size_t(refineIters)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TriangulatePoints(projMatr1 Mat, projMatr2 Mat, projPoints1, projPoints2 Point2fVector, points4D *Mat) {
|
// TriangulatePoints reconstructs 3-dimensional points (in homogeneous coordinates)
|
||||||
|
// by using their observations with a stereo camera.
|
||||||
|
//
|
||||||
|
// For further details, please see:
|
||||||
|
// https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html#gad3fc9a0c82b08df034234979960b778c
|
||||||
|
func TriangulatePoints(projMatr1, projMatr2 Mat, projPoints1, projPoints2 Point2fVector, points4D *Mat) {
|
||||||
C.TriangulatePoints(projMatr1.Ptr(), projMatr2.Ptr(), projPoints1.p, projPoints2.p, points4D.Ptr())
|
C.TriangulatePoints(projMatr1.Ptr(), projMatr2.Ptr(), projPoints1.p, projPoints2.p, points4D.Ptr())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ConvertPointsFromHomogeneous converts points from homogeneous to Euclidean space.
|
||||||
|
//
|
||||||
|
// For further details, please see:
|
||||||
|
// https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html#gac42edda3a3a0f717979589fcd6ac0035
|
||||||
func ConvertPointsFromHomogeneous(src Mat, dst *Mat) {
|
func ConvertPointsFromHomogeneous(src Mat, dst *Mat) {
|
||||||
C.ConvertPointsFromHomogeneous(src.Ptr(), dst.Ptr())
|
C.ConvertPointsFromHomogeneous(src.Ptr(), dst.Ptr())
|
||||||
}
|
}
|
||||||
|
@@ -668,7 +668,3 @@ func TestEstimateAffine2DWithParams(t *testing.T) {
|
|||||||
t.Errorf("TestEstimateAffine2DWithParams(): unexpected rows = %v, want = %v", m.Rows(), 2)
|
t.Errorf("TestEstimateAffine2DWithParams(): unexpected rows = %v, want = %v", m.Rows(), 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTriangulatePoints(t *testing.T) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
5
core.go
5
core.go
@@ -1468,9 +1468,8 @@ func MinMaxLoc(input Mat) (minVal, maxVal float32, minLoc, maxLoc image.Point) {
|
|||||||
// MinMaxLocWithMask finds the global minimum and maximum in an array with a mask used to select a sub-array.
|
// MinMaxLocWithMask finds the global minimum and maximum in an array with a mask used to select a sub-array.
|
||||||
//
|
//
|
||||||
// For further details, please see:
|
// For further details, please see:
|
||||||
// https://docs.opencv.org/trunk/d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707
|
// https://docs.opencv.org/4.x/d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707
|
||||||
//
|
func MinMaxLocWithMask(input, mask Mat) (minVal, maxVal float32, minLoc, maxLoc image.Point) {
|
||||||
func MinMaxLocWithMask(input Mat, mask Mat) (minVal, maxVal float32, minLoc, maxLoc image.Point) {
|
|
||||||
var cMinVal C.double
|
var cMinVal C.double
|
||||||
var cMaxVal C.double
|
var cMaxVal C.double
|
||||||
var cMinLoc C.struct_Point
|
var cMinLoc C.struct_Point
|
||||||
|
Reference in New Issue
Block a user