Skip to content

Commit

Permalink
More feature tracking and flow also todo on consol
Browse files Browse the repository at this point in the history
  • Loading branch information
Affie committed Feb 15, 2024
1 parent f6da0c9 commit 9ca55c2
Show file tree
Hide file tree
Showing 3 changed files with 469 additions and 32 deletions.
24 changes: 21 additions & 3 deletions ext/PyCaesarImagesExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ using ProgressMeter
using JSON3
using TensorCast
using SHA: sha256
using Caesar
using DocStringExtensions

import PyCaesar: calcFlow, getPose, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
import PyCaesar: calcFlow, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
import PyCaesar: trackFeaturesFrames, trackFeaturesForwardsBackwards
import PyCaesar: makeBlobFeatureTracksPerImage_FwdBck!, makeORBParams
import PyCaesar: pycv
import PyCaesar: getPoseEssential, getPoseFundamental
import PyCaesar: getPose # deprecating
import PyCaesar: getPoseSIFT # deprecating

export calcFlow, getPose, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
export calcFlow, getPoseEssential, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
export trackFeaturesFrames, trackFeaturesForwardsBackwards, makeBlobFeatureTracksPerImage_FwdBck!, makeORBParams

pyutilpath = joinpath(@__DIR__, "Utils")
Expand All @@ -25,16 +31,28 @@ const cv = PyNULL()
# const SscPy = PyNULL()
SscPy = pyimport("PySSCFeatures")

# reset the pointers between precompile and using
function __init__()
copy!(np, pyimport("numpy"))
copy!(cv, pyimport("cv2"))
# copy!(SscPy, pyimport("PySSCFeatures"))
end

"""
$SIGNATURES
ssc = SscPy."ssc"
Function to expose the modules internal cv pointer.
"""
pycv() = cv

pyssc = SscPy."ssc"


include("services/OpenCVFeatures.jl")


# deprecation
@deprecate getPose(p1, p2, K) getPoseEssential(p1, p2, K)


end
Loading

0 comments on commit 9ca55c2

Please sign in to comment.