opencv_contrib
opencv_contrib copied to clipboard
Julia bindings have createCLAHE but not apply
In Julia its possible to create a CLAHE object but not actually call apply:
using OpenCV
const cv2 = OpenCV
img = UInt8.(round.(255.0*rand(1, 224, 224)))
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=cv2.Size(Int32(4), Int32(4)))
clahe.apply(img)
Results in:
type cv_PtrAllocated has no field apply
Stacktrace:
[1] getproperty(m::OpenCV.cv_PtrAllocated{OpenCV.CLAHE}, s::Symbol)
@ OpenCV ~/.julia/artifacts/dcc70861ed0ffc5427898f6aeb436620f33fa02f/OpenCV/src/cv_cxx_wrap.jl:478
Of course Julia doesn't support OOP in the binding so we would need the apply function, but there isn't one in the list of exported functions. Going to look into making a pull request for this.