Skip to content

Commit

Permalink
NTuple{N,UnitRange{Int}}(border_range)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Holters <[email protected]>
  • Loading branch information
wheeheee and martinholters authored Nov 28, 2023
1 parent f04e60d commit a86b86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unwrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ end
function get_border_range(size_img::NTuple{N, T}, border_dim, border_idx) where {N, T}
border_range = [2:(size_img[dim]-1) for dim=1:N]
border_range[border_dim] = border_idx:border_idx
return Tuple(border_range)
return NTuple{N,UnitRange{Int}}(border_range)
end

function calculate_pixel_reliability(pixel_image::AbstractArray{Pixel{T},N}, pixel_index, pixel_shifts, range) where {T,N}
Expand Down

0 comments on commit a86b86d

Please sign in to comment.