Skip to content

OpenCV.projectPoints input type are confusing (maybe incorrect?) #40

@tomerarnon

Description

@tomerarnon

OpenCV documentation for projectPoints describes all of the InputArray parameters as vectors or matrices. This agrees with how I see the function used by others in python from cv2.
The julia type signature of OpenCV.projectPoints requires AbstractArray{T, 3} for all of these, and it's not clear why these extra dimensions are needed or how they will be handled. This is the signature listed by methods(projectPoints):

projectPoints(objectPoints::Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}},
              rvec::Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}},
              tvec::Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}},
              cameraMatrix::Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}},
              distCoeffs::Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}}
              ; imagePoints, jacobian, aspectRatio)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions