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

function bypassed (returning input) for now #33

Open
hematthi opened this issue May 19, 2022 · 0 comments
Open

function bypassed (returning input) for now #33

hematthi opened this issue May 19, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@hematthi
Copy link
Collaborator

function smooth_blaze(x::AbstractArray{T1,2}; degree::Integer = default_smooth_blaze_degree, smooth_length::Integer = default_smooth_blaze_length) where { T1 <: Real }
return x # WARNING bypassing this for now
smooth_2d = fill(NaN,size(x))
for i in 1:size(x,2)
num_pix_nonnan = length(minmax_col_nonnan[i])
deg = num_pix_nonnan > degree-2 ? degree : num_pix_nonnan-2
if num_pix_nonnan > 1
#println("# Smoothing order idx ", i, " pixels ", minmax_col_nonnan[i])
smooth_2d[minmax_col_nonnan[i],i] .= smooth_blaze(view(x,minmax_col_nonnan[i],size(x,2)), degree=deg, smooth_length=smooth_length)
end
end
smooth_2d
end

Otherwise, minmax_col_nonnan would need to be an input or defined

@hematthi hematthi added the help wanted Extra attention is needed label May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant