Open felixcremer opened 2 weeks ago
Do I have a PR for you... https://github.com/rafaqz/DimensionalData.jl/pull/717
The idea is to allow Near
and At
to accept a Tuple{A,B}
and return a range in that case. I think that branch should already do what you want with Near(ypos1, ypos2)
. Although you wont always get the same size range back...
Nice. I will try to test that PR.
It's possible it will break on reverse lookups 😅
With Near I can select the nearest pixel at a given position. Is there an easy way to select multiple pixels surrounding this position. This is what I came up with:
This is a bit annoying to writeout and also one has to make sure, that the direction is correct when the stepsize is negative.