JuliaImages / JuliaImages/ImageFeatures.jl

corner.jl: ERROR: MethodError: no method matching dotc(::RGBA{Float64}, ::RGBA{Float64})

Open
#65 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
49
Forks
31
PR merge metrics
No merged PRs in 30d

Description

where is dotc defined?: It is not the LinearAlgebra BLAS.dotc
Thought using ColorVectorSpace.dotc might be a solution but to no avail.

function gradcovs(img::AbstractArray, border::AbstractString = "replicate"; weights::Function = meancovs, args...)
(grad_x, grad_y) = imgradients(img, KernelFactors.sobel, border)

cov_xx = dotc(grad_x, grad_x)
cov_xy = dotc.(grad_x, grad_y)
cov_yy = dotc.(grad_y, grad_y)

weights(cov_xx, cov_xy, cov_yy, args...)

end
Any Suggestions?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the MethodError in gradcovs with an RGBA{Float64} image, then trace which dotc definition is resolved for the calls shown in the issue. Confirm the intended dotc behavior for grad_x and grad_y and add or update coverage demonstrating that gradcovs handles RGBA inputs without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.