Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgradients documentation is confusing #211

Open
alok opened this issue Dec 17, 2020 · 1 comment
Open

imgradients documentation is confusing #211

alok opened this issue Dec 17, 2020 · 1 comment

Comments

@alok
Copy link

alok commented Dec 17, 2020

if i try to do

imgradients(testimage("chelsea"))

i get

MethodError: no method matching imgradients(::Array{RGB{Normed{UInt8,8}},2})
Closest candidates are:
  imgradients(::AbstractArray, !Matched::Function) at ~/.julia/packages/ImageFiltering/nipv3/src/specialty.jl:500
  imgradients(::AbstractArray, !Matched::Function, !Matched::Any) at ~/.julia/packages/ImageFiltering/nipv3/src/specialty.jl:500

the documentation seems to suggest that this should work?

@johnnychen94 johnnychen94 transferred this issue from JuliaImages/Images.jl Mar 28, 2021
@ashwani-rathee
Copy link
Member

Hey @alok , Can you provide the link to which part creates confusion?
You would need to specify the filtering kernel,the error handler shows what you need for the imgradient to work properly
It's well documented here :https://juliaimages.org/ImageFiltering.jl/stable/function_reference/#ImageFiltering.imgradients

Example would be

    imgradients(img, kernelfun=KernelFactors.ando3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants